git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: make install bug?

From
Eeschvoca <eschvoca@gmail.com>
Date
Dec 16, 2005, 15:06 UTC
Message-ID
<2b05065b0512160706o1a6a3fa5kcc34a108f5149a8f@mail.gmail.com>
In-Reply-To
<7vzmn6i4kf.fsf@assigned-by-dhcp.cox.net>
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:
Show 28 quoted lines
> 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.
>
>
Previous: Junio C Hamano
Message 3 of 3 in “make install bug?”
  1. eschvocaDec 12, 2005
  2. Junio C HamanoDec 12, 2005
  3. eschvocaDec 16, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.