Hi Steffen!

I restored the (correct) subjet...

On Thu, 19 Mar 2009 19:57:01 +0100, Steffen Moeller wrote:
> attached the two patches that I consider to address the issues
[...]
>>From 81db5387ef3da45ed9a74373fcf52f7c17f0b6b9 Mon Sep 17 00:00:00 2001
> From: Steffen Moeller <[email protected]>
> Date: Thu, 19 Mar 2009 17:31:34 +0100
> Subject: [PATCH 2/2] tar -> $TAR_APPLICATION
>
> And a new installation of GNU tar will have that variable reset
> to /usr/local/bin/tar

This is a perfect workaround (the same I thought), but I would like to
understand what is going on with the install.sh script before.

Again, here an example which explains the problem:
=====
gismo:/home/luca# cat test-binary-path.sh
#!/bin/sh

set -e

echo "which tar: `which tar`"
tar --version
cp /usr/bin/find /usr/local/bin/tar
echo "which tar: `which tar`"
tar --version

gismo:/home/luca# ./test-binary-path.sh
which tar: /bin/tar
tar (GNU tar) 1.20
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
which tar: /usr/local/bin/tar
tar (GNU tar) 1.20
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.

gismo:/home/luca#
=====

Thus, it seems that once PATH is set, anything which is changed inside
is not taken into consideration.  Re-setting PATH solves the issue:
=====
gismo:/home/luca# cat test-binary-path.sh
#!/bin/sh

set -e

echo "which tar: `which tar`"
tar --version
cp /usr/bin/find /usr/local/bin/tar
echo "which tar: `which tar`"
export PATH=$PATH
tar --version

gismo:/home/luca# ./test-binary-path.sh
which tar: /bin/tar
tar (GNU tar) 1.20
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
which tar: /usr/local/bin/tar
find (GNU findutils) 4.4.0
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Built using GNU gnulib version e5573b1bad88bfabcda181b9e0125fb0c52b7d3b
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS() 
CBO(level=0)

gismo:/home/luca#
=====

If my notes above are correct, the simplest solution would be to re-set
PATH after having installed the Debian tar.  I will test this and if it
is correct I will commit it.

Thx, bye,
Gismo / Luca

Attachment: pgp5a7mi12l3N.pgp
Description: PGP signature

_______________________________________________
pkg-fso-maint mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-fso-maint

Reply via email to