{"thread":{"id":"2810","subject":"make install bug?","startedAt":"2005-12-12T15:35:58Z","lastAt":"2005-12-16T15:06:44Z","messageCount":3,"participants":["eschvoca","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"13510","messageId":"2b05065b0512120735v26c8343aged48165f3ccc5892@mail.gmail.com","threadId":"2810","inReplyTo":null,"subject":"make install bug?","fromName":"eschvoca","fromEmail":"eschvoca@gmail.com","sentAt":"2005-12-12T15:35:58Z","receivedAt":"2005-12-12T15:35:58Z","isPatch":false,"sender":{"key":"eschvoca@gmail.com","avatar":null},"body":"Using the latest git on \"make prefix=/home/eschvoca/apps/git-0.99.9m\ninstall\" I get the following error:\n\nmake[1]: Entering directory `/home/eschvoca/downloads/git-0.99.9m/templates'\n: no custom templates yet\ninstall -d -m755 '/home/eschvoca/share/git-core/templates/'\n(cd blt && tar cf - .) | \\\n(cd '/home/eschvoca/share/git-core/templates/' && tar xf -)\ntar: This does not look like a tar archive\ntar: Skipping to next header\ntar: Error exit delayed from previous errors\nmake[1]: *** [install] Error 2\n\n\nI can fix the problem by changing templates/Makefile to the following:\n\ninstall: all\n    $(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(template_dir))\n    (cd blt && $(TAR) cf - . > /tmp/a.tar) | \\\n    (cd $(call shellquote,$(DESTDIR)$(template_dir)) && $(TAR) xf /tmp/a.tar)\n"},{"id":"13517","messageId":"7vzmn6i4kf.fsf@assigned-by-dhcp.cox.net","threadId":"2810","inReplyTo":"2b05065b0512120735v26c8343aged48165f3ccc5892@mail.gmail.com","subject":"Re: make install bug?","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-12-12T17:54:40Z","receivedAt":"2005-12-12T17:54:40Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"eschvoca <eschvoca@gmail.com> writes:\n\n> I can fix the problem by changing templates/Makefile to the following:\n>\n> install: all\n>     $(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(template_dir))\n>     (cd blt && $(TAR) cf - . > /tmp/a.tar) | \\\n>     (cd $(call shellquote,$(DESTDIR)$(template_dir)) && $(TAR) xf /tmp/a.tar)\n\nHere is my guess.  Could you try, from your interactive shell:\n\n\t$ (unset CDPATH; make install)\n\nfirst without the above \"fix\" (your \"fixed\" pipe does not make\nany sense --- what are the data passed between pipe upstream and\ndownstream?)?\n\nIf that makes the problem go away, then your environment is\nbroken --- my guess is that you are exporting CDPATH to\nnon-interactive scripts.  Don't do that.\n\nI once googled for \"CDPATH\" and saw many \"guide to unix\" type\nwebpages talk about \"CDPATH environment variable\"; they are the\nreal culprit to cause this confusion in peoples' .bash_profile.\nCDPATH might be a nice variable for interactive shells, but is a\nhorrible one if made environment.\n"},{"id":"13725","messageId":"2b05065b0512160706o1a6a3fa5kcc34a108f5149a8f@mail.gmail.com","threadId":"2810","inReplyTo":"7vzmn6i4kf.fsf@assigned-by-dhcp.cox.net","subject":"Re: make install bug?","fromName":"eschvoca","fromEmail":"eschvoca@gmail.com","sentAt":"2005-12-16T15:06:44Z","receivedAt":"2005-12-16T15:06:44Z","isPatch":false,"sender":{"key":"eschvoca@gmail.com","avatar":null},"body":"You are right, CDPATH is the problem.  I am no longer exporting CDPATH.\n\ne\n\nOn 12/12/05, Junio C Hamano <junkio@cox.net> wrote:\n> eschvoca <eschvoca@gmail.com> writes:\n>\n> > I can fix the problem by changing templates/Makefile to the following:\n> >\n> > install: all\n> >     $(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(template_dir))\n> >     (cd blt && $(TAR) cf - . > /tmp/a.tar) | \\\n> >     (cd $(call shellquote,$(DESTDIR)$(template_dir)) && $(TAR) xf /tmp/a.tar)\n>\n> Here is my guess.  Could you try, from your interactive shell:\n>\n>         $ (unset CDPATH; make install)\n>\n> first without the above \"fix\" (your \"fixed\" pipe does not make\n> any sense --- what are the data passed between pipe upstream and\n> downstream?)?\n>\n> If that makes the problem go away, then your environment is\n> broken --- my guess is that you are exporting CDPATH to\n> non-interactive scripts.  Don't do that.\n>\n> I once googled for \"CDPATH\" and saw many \"guide to unix\" type\n> webpages talk about \"CDPATH environment variable\"; they are the\n> real culprit to cause this confusion in peoples' .bash_profile.\n> CDPATH might be a nice variable for interactive shells, but is a\n> horrible one if made environment.\n>\n>\n"}]}