Re: Errors building git-1.5.2.2 on 64-bit Centos 5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday, June 19, 2007 at 17:12:14 (+0200) David Kastrup writes:
>Bill Lear <rael@xxxxxxxxxx> writes:
>>...
>> However, I still get this:
>>
>> install -d -m755 '/opt/git-1.5.2.2/share//git-core/templates/'
>                                         ^^^
>> (cd blt && tar cf - .) | \
>> 	(cd '/opt/git-1.5.2.2/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
>>
>> So, I did a make -k and it worked ok, aside from this error.
>>
>> I copied this line:
>>
>> (cd blt && tar cf - .) | \
>> 	(cd '/opt/git-1.5.2.2/share//git-core/templates/' && tar xf -)
>                                   ^^^
>> into a file, chmod +x'd that file, and cd'd into templates and ran
>> the script.  I got the same error.  I then tried running it by
>> hand from the command line:
>>
>> % cd templates
>> % (cd blt && tar cf - .) | (cd /opt/git-1.5.2.2/share/git-core/templates
>>                                                     ^^^
>> && tar xf -)
>>
>> and it worked fine.
>
>Not sure whether this is the problem: either cd does not understasnd
>the double slashes, or your shell used for scripts has modified cd to
>output some stuff when it is working (people sometimes imprudently
>make shell functions or aliases for this).
>
>Try writing something like
>
>type cd
>
>in a script file and see what output you get.

% echo 'type cd' > foo
% chmod +x foo
% ./foo
cd is a shell builtin
% bash --version
GNU bash, version 3.1.17(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.

I also tried using the double-slash on the command line.  It worked
fine.  I tried a single slash from the script and it did not work.

% cd templates
% cat foo
set -x
type tar
type cd
(cd blt && tar cf - .) | (cd /opt/git-1.5.2.2/share/git-core/templates && tar xf -)
% ./foo
++ type tar
tar is /bin/tar
++ type cd
cd is a shell builtin
++ cd blt
++ tar cf - .
++ cd /opt/git-1.5.2.2/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


Bill
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux