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

RE: [GIT PATCH] Makefile missing git-runstatus in PROGRAMS list

From
BDBhavesh Davda <bhavesh@vmware.com>
Date
Nov 15, 2006, 18:42 UTC
Message-ID
<FE74AC4E0A23124DA52B99F17F44159701A11D6D@PA-EXCH03.vmware.com>
Show 28 quoted lines
> 
> > Attached is my attempt at the same command "make 
> prefix=/var/tmp/ggg clean
> > all install"
> >
> > make install failes for the templates directory, leading to 
> the entire make
> > install failing:
> >
> > make -C templates DESTDIR='' install
> > make[1]: Entering directory `/VMware/kernel/git/git/templates'
> > : no custom templates yet
> > install -d -m755 '/var/tmp/ggg/share/git-core/templates/'
> > (cd blt && tar cf - .) | \
> > (cd '/var/tmp/ggg/share/git-core/templates/' && tar xf -)
> > tar: This does not look like a tar archive
> > tar: Skipping to next header
> > tar: Archive contains obsolescent base-64 headers
> > tar: Error exit delayed from previous errors
> 
> I have a feeling that you have CDPATH exported to the
> environment, which is a braindamage.  It is a fine usability
> helper for interactive shells so I do not have problem with
> people setting that in shell as shell variables, though.
> 
> In other words, never do "export CDPATH=..." nor "export CDPATH".
> 
> 
Indeed! I had "export CDPATH=.:$HOME" in my $HOME/.bash_profile.

"export -n CDPATH", and now "make install" works, setting up those hard links too.

If this is a common gotcha in building and installing git, maybe you should add it near the top of the INSTALL instructions.

I haven't run into this issue with other projects. Is there something that can be changed in git's Makefile so it works even if CDPATH is set and exported in people's environments? What about simply not naming the subdir blt for both source and install directories under templates?

Thanks!
Next: Junio C Hamano
Message 1 of 2 in “RE: [GIT PATCH] Makefile missing git-runstatus in PROGRAMS list”
  1. Bhavesh DavdaNov 15, 2006
  2. Junio C HamanoNov 15, 2006

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.