Thread (16 messages) flat view 16 messages, 5 authors, 2016-06-15

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

From: Bill Lear <hidden>
Date: 2016-06-15 22:43:17

On Tuesday, June 19, 2007 at 17:12:14 (+0200) David Kastrup writes:
Bill Lear [off-list ref] writes:
quoted
...
However, I still get this:

install -d -m755 '/opt/git-1.5.2.2/share//git-core/templates/'
                                        ^^^
quoted
(cd blt && tar cf - .) | \
	(cd '/opt/git-1.5.2.2/share//git-core/templates/' && tar xf -)
                                  ^^^
quoted
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 -)
                                  ^^^
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help