* [PATCH] Fix `make install` when configured with autoconf
@ 2013-03-05 12:43 Kirill Smelkov
2013-03-05 16:56 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Kirill Smelkov @ 2013-03-05 12:43 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Dmitry Komissarov, git, Kirill Smelkov
Commit d8cf908c (config.mak.in: remove unused definitions) removed
exec_prefix = @exec_prefix@
from config.mak.in, because nobody directly used ${exec_prefix}, but
overlooked that other autoconf definitions could indirectly expand that
variable.
For example the following snippet from config.mak.in
prefix = @prefix@
bindir = @bindir@
gitexecdir = @libexecdir@/git-core
datarootdir = @datarootdir@
template_dir = @datadir@/git-core/templates
sysconfdir = @sysconfdir@
is expanded to
prefix = /home/kirr/local/git
bindir = ${exec_prefix}/bin <-- HERE
gitexecdir = ${exec_prefix}/libexec/git-core <--
datarootdir = ${prefix}/share
template_dir = ${datarootdir}/git-core/templates
sysconfdir = ${prefix}/etc
on my system, after `configure --prefix=$HOME/local/git`
and withot exec_prefix being defined there I get an error on
install:
install -d -m 755 '/bin'
install -d -m 755 '/libexec/git-core'
install: cannot create directory `/libexec': Permission denied
Makefile:2292: recipe for target `install' failed
Fix it.
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
---
config.mak.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/config.mak.in b/config.mak.in
index 7440687..e6a6d0f 100644
--- a/config.mak.in
+++ b/config.mak.in
@@ -12,6 +12,7 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
#INSTALL = @INSTALL@ # needs install-sh or install.sh in sources
prefix = @prefix@
+exec_prefix = @exec_prefix@
bindir = @bindir@
gitexecdir = @libexecdir@/git-core
datarootdir = @datarootdir@
--
1.8.2.rc2.353.gd2380b4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix `make install` when configured with autoconf
2013-03-05 12:43 [PATCH] Fix `make install` when configured with autoconf Kirill Smelkov
@ 2013-03-05 16:56 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2013-03-05 16:56 UTC (permalink / raw)
To: Kirill Smelkov; +Cc: Dmitry Komissarov, git
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-05 16:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-05 12:43 [PATCH] Fix `make install` when configured with autoconf Kirill Smelkov
2013-03-05 16:56 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).