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

bug in make install

From
MMMarco Maggi <marco.maggi-ipsu@poste.it>
Date
Apr 2, 2008, 19:43 UTC
Message-ID
<JYPQSO$FF146173479D39756CA6CA952130001D@poste.it>
Ciao,

upon installing GIT I was bitten by the following behaviour of GNU Bash 3.1 (from the Info node "Bourne Shell Builtins"):

| If a non-empty directory name from `CDPATH' is used, or if
| `-'  is the first  argument, and  the directory  change is
| successful,  the  absolute  pathname  of the  new  working
| directory is written to the standard output.

this is triggered by setting "CDPATH=.", that is including "." in the list, when "templates/Makefile" does:

| (cd blt && $(TAR) cf - .) \
| (cd '$(DESTDIR_SQ)$(template_dir_SQ)' && umask 022 &&
$(TAR) xf -)

the absolute file name goes into the pipe and the "tar xf -" fails with a "this does not look like a tar archive" error. The problem is fixed by:

| (cd ./blt && $(TAR) cf - .)
|     ^^
Do not bother me asking why I put "." in CDPATH.

By the way: the use of tar annoys me a little because the installed files are 0640, rather than 0644, and I have to fix it while building my custom Slackware package. :/

-- 
Marco Maggi

"Now feel the funk blast!"
Rage Against the Machine - "Calm like a bomb"
Next: Johannes Schindelin
Message 1 of 4 in “bug in make install”
  1. Marco MaggiApr 2, 2008
  2. Johannes SchindelinApr 2, 2008
  3. Junio C HamanoApr 3, 2008
  4. Johannes SchindelinApr 3, 2008

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.