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

Re: make install error

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 28, 2010, 08:56 UTC
Message-ID
<7vockemwu3.fsf@alter.siamese.dyndns.org>
In-Reply-To
<81b0412b1001280048y6f91ad25t5c636f959630825@mail.gmail.com>
Alex Riesen <raa.lkml@gmail.com> writes:
Show 13 quoted lines
> On Thu, Jan 28, 2010 at 03:53, Junio C Hamano <gitster@pobox.com> wrote:
>> kap4lin <kap4lin@gmail.com> writes:
>>
>>> (cd blt && gtar cf - .) | \
>>>         (cd '/scratch/kap4lin/usr/share/git-core/templates' && umask
>>> 022 && gtar xof -)
>>> gtar: This does not look like a tar archive
>>
>> Perhaps "unset CDPATH".
>>
>
> BTW, will "cd ./blt &>/dev/null" also help and prevent this problem from
> happening ever again?

Except that (1) it would be ">/dev/null", and (2) why contaminate Makefile command lines with such unreadability to work around stupid misdesign of CDPATH?

I _could_ live with something like this that won't affect the main part of the Makefile, though.

 Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
index af08c8f..20b0b34 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,10 @@
 # The default target of this Makefile is...
 all::
 
+# Work around CDPATH exported to the environment that would
+# break "(cd there && tar cf - ) | tar xf -" and the like.
+CDPATH :=
+
 # Define V=1 to have a more verbose compile.
 #
 # Define SHELL_PATH to a POSIX shell if your /bin/sh is broken.
Previous: Alex RiesenNext: Alex Riesen
Message 4 of 6 in “make install error”
  1. kap4linJan 28, 2010
  2. Junio C HamanoJan 28, 2010
  3. Alex RiesenJan 28, 2010
  4. Junio C HamanoJan 28, 2010
  5. Alex RiesenJan 28, 2010
  6. kap4linJan 28, 2010

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.