Bug#636192: Bug#694827: Bug#636192: make fakeroot multiarch

2013-11-27 Thread Piotr Roszatycki
2013/11/27 Clint Adams cl...@debian.org:
 Running find on every invocation is pretty annoying, but I'll take
 a look shortly.

There is another possibility: use the default dynamic linker feature
and simply add the path to fakeroot library to /etc/ld.so.conf.d so it
should work with empty LD_LIBRARY_PATH

binary_arch:
# ...
echo /usr/lib/$(DEB_HOST_MULTIARCH)/libfakeroot 
debian/libfakeroot/etc/ld.so.conf.d/fakeroot-$(DEB_HOST_MULTIARCH).conf

You can see the difference between fakeroot and fakechroot:

(sid)dexter@sony-vaio-sve1112m1ep:/$ fakeroot env | grep LD | sort
LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/libfakeroot:/usr/lib64/libfakeroot:/usr/lib32/libfakeroot
LD_PRELOAD=libfakeroot-sysv.so

(sid)dexter@sony-vaio-sve1112m1ep:/$ fakechroot env | grep LD | sort
LD_LIBRARY_PATH=
LD_PRELOAD=libfakechroot.so

(sid)dexter@sony-vaio-sve1112m1ep:/$ cat
/etc/ld.so.conf.d/fakechroot-x86_64-linux-gnu.conf
/usr/lib/x86_64-linux-gnu/fakechroot

(sid)dexter@sony-vaio-sve1112m1ep:/$ cat
/etc/ld.so.conf.d/fakechroot-i386-linux-gnu.conf
/usr/lib/i386-linux-gnu/fakechroot

Each architecture adds own ld.so.conf config so dynamic linker can
load proper file by itself.

Regards,
-- 
 .''`.Piotr Roszatycki
: :' :mailto:piotr.roszaty...@gmail.com
`. `' mailto:dex...@debian.org
  `-


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#636192: Bug#694827: Bug#636192: make fakeroot multiarch

2013-11-27 Thread Clint Adams
On Wed, Nov 27, 2013 at 07:08:56PM +0100, Piotr Roszatycki wrote:
 There is another possibility: use the default dynamic linker feature
 and simply add the path to fakeroot library to /etc/ld.so.conf.d so it
 should work with empty LD_LIBRARY_PATH

Doesn't that defeat the purpose of having a separate directory?
If so we might as well put libfakeroot into /usr/lib/$triple
and be done with it.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#636192: Bug#694827: Bug#636192: make fakeroot multiarch

2013-11-27 Thread Piotr Roszatycki
2013/11/27 Clint Adams cl...@debian.org:
 On Wed, Nov 27, 2013 at 07:08:56PM +0100, Piotr Roszatycki wrote:
 There is another possibility: use the default dynamic linker feature
 and simply add the path to fakeroot library to /etc/ld.so.conf.d so it
 should work with empty LD_LIBRARY_PATH

 Doesn't that defeat the purpose of having a separate directory?
 If so we might as well put libfakeroot into /usr/lib/$triple
 and be done with it.

There is a reason to put it separately. I think it doesn't mess with
gcc because libfakeroot.so or libfakechroot.so are not intended to
linking by compile time.
I'm afraid that such shared library in standard directory would also
violate the Debian Policy because it hadn't proper symlink
(libfakeroot.so.0 or something) and archive file (libfakechroot.a).

-- 
 .''`.Piotr Roszatycki
: :' :mailto:piotr.roszaty...@gmail.com
`. `' mailto:dex...@debian.org
  `-


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org