# make install error

6 messages from 2010-01-28 to 2010-01-28. Participants: kap4lin, Junio C Hamano, Alex Riesen.
Thread: https://gitlist.dev/t/22417

## kap4lin, 2010-01-28 00:58

Subject: make install error
Message-ID: <daef5be81001271658y4188445bofea2e3d576df91e5@mail.gmail.com>
URL: https://gitlist.dev/e/daef5be81001271658y4188445bofea2e3d576df91e5%40mail.gmail.com

```
Hi,

(Kindly Cc me, I am not subscribed)

Process followed:
$ make configure
$ ./configure --prefix=/scratch/kap4lin/usr
$ make all
$ make install

The make install step is giving the following error:

make -C templates DESTDIR='' install
make[1]: Entering directory `/scratch/kap4lin/softwares/git-1.6.6.1/templates'
install -d -m 755 '/scratch/kap4lin/usr/share/git-core/templates'
(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
gtar: Skipping to next header
gtar: Archive contains obsolescent base-64 headers
gtar: Error exit delayed from previous errors
make[1]: *** [install] Error 2
make[1]: Leaving directory `/scratch/kap4lin/softwares/git-1.6.6.1/templates'
make: *** [install] Error 2

Any help?
-- 
Regards
Kap4Lin
--------------------------------------
http://counter.li.org  #402424

```

## Junio C Hamano, 2010-01-28 02:53

Subject: Re: make install error
Message-ID: <7v8wbjndn6.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7v8wbjndn6.fsf%40alter.siamese.dyndns.org
In-Reply-To: <daef5be81001271658y4188445bofea2e3d576df91e5@mail.gmail.com>

```
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
> gtar: Skipping to next header
> gtar: Archive contains obsolescent base-64 headers
> gtar: Error exit delayed from previous errors
> make[1]: *** [install] Error 2
> make[1]: Leaving directory `/scratch/kap4lin/softwares/git-1.6.6.1/templates'
> make: *** [install] Error 2
>
> Any help?

Perhaps "unset CDPATH".

Also look for "export CDPATH" in your .bash_profile and remove it (and
either remove CDPATH=... from your .bashrc or make it conditional only to
interactive sessions).  Setting CDPATH for non-interactive sessions does
not make any sense and asking for troubles.

```

## Alex Riesen, 2010-01-28 08:48

Subject: Re: make install error
Message-ID: <81b0412b1001280048y6f91ad25t5c636f959630825@mail.gmail.com>
URL: https://gitlist.dev/e/81b0412b1001280048y6f91ad25t5c636f959630825%40mail.gmail.com
In-Reply-To: <7v8wbjndn6.fsf@alter.siamese.dyndns.org>

```
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?

```

## Junio C Hamano, 2010-01-28 08:56

Subject: Re: make install error
Message-ID: <7vockemwu3.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vockemwu3.fsf%40alter.siamese.dyndns.org
In-Reply-To: <81b0412b1001280048y6f91ad25t5c636f959630825@mail.gmail.com>

```
Alex Riesen <raa.lkml@gmail.com> writes:

> 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.

```

## Alex Riesen, 2010-01-28 10:27

Subject: Re: make install error
Message-ID: <81b0412b1001280227q6ab45a52i8df56ef4cfb4219c@mail.gmail.com>
URL: https://gitlist.dev/e/81b0412b1001280227q6ab45a52i8df56ef4cfb4219c%40mail.gmail.com
In-Reply-To: <7vockemwu3.fsf@alter.siamese.dyndns.org>

```
On Thu, Jan 28, 2010 at 09:56, Junio C Hamano <gitster@pobox.com> wrote:
> Alex Riesen <raa.lkml@gmail.com> writes:
>>
>> 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?

Eh... Right :)

```

## kap4lin, 2010-01-28 16:25

Subject: Re: make install error
Message-ID: <daef5be81001280825y7d2fefd7x9c41c4f202294fd5@mail.gmail.com>
URL: https://gitlist.dev/e/daef5be81001280825y7d2fefd7x9c41c4f202294fd5%40mail.gmail.com
In-Reply-To: <7v8wbjndn6.fsf@alter.siamese.dyndns.org>

```
Hi,

(Kindly Cc me, thanks.)

On Wed, Jan 27, 2010 at 9:53 PM, 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
>> gtar: Skipping to next header
>> gtar: Archive contains obsolescent base-64 headers
>> gtar: Error exit delayed from previous errors
>> make[1]: *** [install] Error 2
>> make[1]: Leaving directory `/scratch/kap4lin/softwares/git-1.6.6.1/templates'
>> make: *** [install] Error 2
>>
>> Any help?
>
> Perhaps "unset CDPATH".

Thanks. This solved the issue. I'll make a note of this in future.

-- 
Regards
Kap4Lin
--------------------------------------
http://counter.li.org  #402424

```
