* make install bug?
@ 2005-12-12 15:35 eschvoca
2005-12-12 17:54 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: eschvoca @ 2005-12-12 15:35 UTC (permalink / raw)
To: git
Using the latest git on "make prefix=/home/eschvoca/apps/git-0.99.9m
install" I get the following error:
make[1]: Entering directory `/home/eschvoca/downloads/git-0.99.9m/templates'
: no custom templates yet
install -d -m755 '/home/eschvoca/share/git-core/templates/'
(cd blt && tar cf - .) | \
(cd '/home/eschvoca/share/git-core/templates/' && tar xf -)
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors
make[1]: *** [install] Error 2
I can fix the problem by changing templates/Makefile to the following:
install: all
$(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(template_dir))
(cd blt && $(TAR) cf - . > /tmp/a.tar) | \
(cd $(call shellquote,$(DESTDIR)$(template_dir)) && $(TAR) xf /tmp/a.tar)
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: make install bug?
2005-12-12 15:35 make install bug? eschvoca
@ 2005-12-12 17:54 ` Junio C Hamano
2005-12-16 15:06 ` eschvoca
0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2005-12-12 17:54 UTC (permalink / raw)
To: eschvoca; +Cc: git
eschvoca <eschvoca@gmail.com> writes:
> I can fix the problem by changing templates/Makefile to the following:
>
> install: all
> $(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(template_dir))
> (cd blt && $(TAR) cf - . > /tmp/a.tar) | \
> (cd $(call shellquote,$(DESTDIR)$(template_dir)) && $(TAR) xf /tmp/a.tar)
Here is my guess. Could you try, from your interactive shell:
$ (unset CDPATH; make install)
first without the above "fix" (your "fixed" pipe does not make
any sense --- what are the data passed between pipe upstream and
downstream?)?
If that makes the problem go away, then your environment is
broken --- my guess is that you are exporting CDPATH to
non-interactive scripts. Don't do that.
I once googled for "CDPATH" and saw many "guide to unix" type
webpages talk about "CDPATH environment variable"; they are the
real culprit to cause this confusion in peoples' .bash_profile.
CDPATH might be a nice variable for interactive shells, but is a
horrible one if made environment.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: make install bug?
2005-12-12 17:54 ` Junio C Hamano
@ 2005-12-16 15:06 ` eschvoca
0 siblings, 0 replies; 3+ messages in thread
From: eschvoca @ 2005-12-16 15:06 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
You are right, CDPATH is the problem. I am no longer exporting CDPATH.
e
On 12/12/05, Junio C Hamano <junkio@cox.net> wrote:
> eschvoca <eschvoca@gmail.com> writes:
>
> > I can fix the problem by changing templates/Makefile to the following:
> >
> > install: all
> > $(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(template_dir))
> > (cd blt && $(TAR) cf - . > /tmp/a.tar) | \
> > (cd $(call shellquote,$(DESTDIR)$(template_dir)) && $(TAR) xf /tmp/a.tar)
>
> Here is my guess. Could you try, from your interactive shell:
>
> $ (unset CDPATH; make install)
>
> first without the above "fix" (your "fixed" pipe does not make
> any sense --- what are the data passed between pipe upstream and
> downstream?)?
>
> If that makes the problem go away, then your environment is
> broken --- my guess is that you are exporting CDPATH to
> non-interactive scripts. Don't do that.
>
> I once googled for "CDPATH" and saw many "guide to unix" type
> webpages talk about "CDPATH environment variable"; they are the
> real culprit to cause this confusion in peoples' .bash_profile.
> CDPATH might be a nice variable for interactive shells, but is a
> horrible one if made environment.
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-12-16 15:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-12 15:35 make install bug? eschvoca
2005-12-12 17:54 ` Junio C Hamano
2005-12-16 15:06 ` eschvoca
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox