git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* make install error
@ 2010-01-28  0:58 kap4lin
  2010-01-28  2:53 ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: kap4lin @ 2010-01-28  0:58 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: make install error
  2010-01-28  0:58 make install error kap4lin
@ 2010-01-28  2:53 ` Junio C Hamano
  2010-01-28  8:48   ` Alex Riesen
  2010-01-28 16:25   ` kap4lin
  0 siblings, 2 replies; 6+ messages in thread
From: Junio C Hamano @ 2010-01-28  2:53 UTC (permalink / raw)
  To: kap4lin; +Cc: git

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: make install error
  2010-01-28  2:53 ` Junio C Hamano
@ 2010-01-28  8:48   ` Alex Riesen
  2010-01-28  8:56     ` Junio C Hamano
  2010-01-28 16:25   ` kap4lin
  1 sibling, 1 reply; 6+ messages in thread
From: Alex Riesen @ 2010-01-28  8:48 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: kap4lin, git

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?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: make install error
  2010-01-28  8:48   ` Alex Riesen
@ 2010-01-28  8:56     ` Junio C Hamano
  2010-01-28 10:27       ` Alex Riesen
  0 siblings, 1 reply; 6+ messages in thread
From: Junio C Hamano @ 2010-01-28  8:56 UTC (permalink / raw)
  To: Alex Riesen; +Cc: kap4lin, git

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.

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: make install error
  2010-01-28  8:56     ` Junio C Hamano
@ 2010-01-28 10:27       ` Alex Riesen
  0 siblings, 0 replies; 6+ messages in thread
From: Alex Riesen @ 2010-01-28 10:27 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: kap4lin, git

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 :)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: make install error
  2010-01-28  2:53 ` Junio C Hamano
  2010-01-28  8:48   ` Alex Riesen
@ 2010-01-28 16:25   ` kap4lin
  1 sibling, 0 replies; 6+ messages in thread
From: kap4lin @ 2010-01-28 16:25 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-01-28 16:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-28  0:58 make install error kap4lin
2010-01-28  2:53 ` Junio C Hamano
2010-01-28  8:48   ` Alex Riesen
2010-01-28  8:56     ` Junio C Hamano
2010-01-28 10:27       ` Alex Riesen
2010-01-28 16:25   ` kap4lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).