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

Bug#98928: marked as done (build fails with fakeroot, because LD_LIBRARY_PATH is clobbered)



Your message dated Mon, 20 Aug 2001 22:46:30 -0600 (MDT)
with message-id <Pine.LNX.3.96.1010820224454.12485A-100000@wakko.deltatee.com>
and subject line Fixed in apt 0.5.4
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Darren Benham
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 27 May 2001 16:09:48 +0000
>From iyhi@yahoo.com Sun May 27 11:09:48 2001
Return-path: <iyhi@yahoo.com>
Received: from smtp011.mail.yahoo.com [216.136.173.31] 
	by master.debian.org with smtp (Exim 3.12 1 (Debian))
	id 15436y-0004Th-00; Sun, 27 May 2001 11:09:48 -0500
Received: from h24-66-207-71.cg.shawcable.net (24.66.207.71)
  by smtp.mail.vip.sc5.yahoo.com with SMTP; 27 May 2001 16:09:47 -0000
X-Apparently-From: <iyhi@yahoo.com>
Received: from iyhi by localhost with local (MasqMail 0.1.14) id
 15435u-7Zb-00 for submit@bugs.debian.org; Sun, 27 May 2001 16:08:42
 +0000
To: Debian Bug Tracking System <submit@bugs.debian.org> 
Subject: build fails with fakeroot, because LD_LIBRARY_PATH is clobbered
From: Peter Muir <iyhi@yahoo.com>
Date: 27 May 2001 16:08:41 +0000
Message-ID: <87snhqpyeu.fsf@yahoo.com>
Lines: 157
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Delivered-To: submit@bugs.debian.org


Package: apt
Version: 0.5.3
Severity: wishlist

PROBLEM

bash-2.05$ /usr/bin/fakeroot debian/rules binary
...
dh_installdeb -papt-utils
LD_LIBRARY_PATH=`pwd`/debian/apt/usr/lib:`pwd`/debian/apt-utils/usr/lib dh_shlibdeps -papt-utils -- -Ldebian/shlibs.local.apt-utils
/usr/bin/perl: error while loading shared libraries: libfakeroot.so.0: cannot open shared object file: No such file or directory
make: *** [apt-utils] Error 127
bash-2.05$ pwd

CAUSE

fakeroot was changing recently and now uses LD_LIBRARY_PATH in
addition to LD_PRELOAD. The following is the debian/changelog from fakeroot package:

fakeroot (0.4.4-9.2) unstable; urgency=low

  * NMU, for sparc64 environment
  * Added debian/rules section to build a 64bit libfakeroot
  * Updated libtool, since the old one didn't like the -m64 option with
    the --mode=link
  * exclude libfakeroot from dh_shlibdeps call. The faked binary provides
    all the deps we need, and this avoids the 64bit library from pulling
    in libc6-sparc
  * fakeroot: Use LD_LIBRARY_PATH for setting directory, and only
    LD_PRELOAD the library name. This makes it so the the 32/64 libs for
    sparc/sparc64 will load which ever one is needed.

 -- Ben Collins <bcollins@debian.org>  Fri, 27 Apr 2001 10:14:03 -0400


SOLUTION

Append to LD_LIBRARY_PATH.

SEE ALSO

Bug#98766: Acknowledgement (fakeroot sets LD_LIBRARY_PATH: affects apt build)

In regard to #98766, on Sat, 26 May 2001 07:46:40 -0400, Ben Collins <bcollins@debian.org> writes:

> On Sat, May 26, 2001 at 08:14:07AM +0000, Peter Muir wrote:
> > 
> > 1) Set policy: do not overwrite LD_LIBRARY_PATH.
> > 2) Any other method for sparc64 binaries to find the correct library?
> > 
> 
> Since this doesn't affect many packages, I suggest filing bugs on them
> to not clobber LD_LIBRARY_PATH, but instead append to it.
> 
> There is no other method for the 32bit/64bit setup for sparc
> libfakeroot, without causing security problems.
> 
> -- 
>  -----------=======-=-======-=========-----------=====------------=-=------
> /  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
> `  bcollins@debian.org  --  bcollins@openldap.org  --  bcollins@linux.com  '
>  `---=========------=======-------------=-=-----=-===-======-------=--=---'
> 


PATCH

original version: debian_version_0_5_3
patched version: debian_version_0_5_3-0_1

Index: debian/apt/debian/changelog
diff -u debian/apt/debian/changelog:1.1.1.3 debian/apt/debian/changelog:1.2
--- debian/apt/debian/changelog:1.1.1.3	Sat May 26 18:26:29 2001
+++ debian/apt/debian/changelog	Sun May 27 15:05:36 2001
@@ -1,3 +1,9 @@
+apt (0.5.3-0.1) unstable; urgency=low
+
+  * Append to LD_LIBRARY_PATH so fakeroot can build. 
+
+ -- Peter Muir <iyhi@yahoo.com>  Sun, 27 May 2001 15:03:06 +0000
+
 apt (0.5.3) unstable; urgency=low
 
   * JoeyH's dpkg::preconfig not working. Closes: #88675
Index: debian/apt/debian/rules
diff -u debian/apt/debian/rules:1.1.1.3 debian/apt/debian/rules:1.2
--- debian/apt/debian/rules:1.1.1.3	Sat May 26 18:26:29 2001
+++ debian/apt/debian/rules	Sun May 27 15:05:36 2001
@@ -187,7 +187,7 @@
 	dh_fixperms -p$@
 	dh_installdeb -p$@
 	dh_shlibdeps -papt -l`pwd`/debian/apt/usr/lib -- -Ldebian/shlibs.local.apt
-#	LD_LIBRARY_PATH=`pwd`/debian/apt/usr/lib dh_shlibdeps -papt
+#	LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:`pwd`/debian/apt/usr/lib dh_shlibdeps -papt
 	dh_gencontrol -p$@ -u -Vlibapt-pkg:provides=$(LIBAPTPKG_PROVIDE)
 	dh_makeshlibs -m$(LIBAPTPKG_MAJOR) -V '$(LIBAPTPKG_PROVIDE)' -papt
 	dh_md5sums -p$@
@@ -244,7 +244,7 @@
 	dh_compress -p$@
 	dh_fixperms -p$@
 	dh_installdeb -p$@
-	LD_LIBRARY_PATH=`pwd`/debian/apt/usr/lib:`pwd`/debian/$@/usr/lib dh_shlibdeps -p$@ -- -Ldebian/shlibs.local.apt-utils
+	LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:`pwd`/debian/apt/usr/lib:`pwd`/debian/$@/usr/lib dh_shlibdeps -p$@ -- -Ldebian/shlibs.local.apt-utils
 	dh_gencontrol -p$@ -u -Vlibapt-inst:major=$(LIBAPTINST_MAJOR)
 	dh_makeshlibs -m$(LIBAPTINST_MAJOR) -V '$(LIBAPTINST_PROVIDE)' -p$@
 	dh_md5sums -p$@

SUCCESSFUL BUILD AFTER PATCH

...
dh_installdeb -papt-utils
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`/debian/apt/usr/lib:`pwd`/debian/apt-utils/usr/lib dh_shlibdeps -papt-utils -- -Ldebian/shlibs.local.apt-utils
dh_gencontrol -papt-utils -u -Vlibapt-inst:major=1.0
dpkg-gencontrol: warning: unknown substitution variable ${libapt-inst:provides}
dh_makeshlibs -m1.0 -V 'libapt-inst-libc6.2-3-2-1.0' -papt-utils
dh_md5sums -papt-utils
dh_builddeb -papt-utils
dpkg-deb: building package `apt-utils' in `../apt-utils_0.5.3-0.1_i386.deb'.
 dpkg-genchanges
dpkg-genchanges: including full source code in upload
dpkg-buildpackage: full upload (original source is included)
Password:

(Reading database ... 117769 files and directories currently installed.)
Preparing to replace apt-utils 0.5.3 (using .../apt-utils_0.5.3-0.1_i386.deb) ...
Unpacking replacement apt-utils ...
Preparing to replace apt 0.5.3 (using .../apt/apt_0.5.3-0.1_i386.deb) ...
Unpacking replacement apt ...
Preparing to replace libapt-pkg-dev 0.5.3 (using .../libapt-pkg-dev_0.5.3-0.1_i386.deb) ...
Unpacking replacement libapt-pkg-dev ...
Preparing to replace libapt-pkg-doc 0.5.3 (using .../libapt-pkg-doc_0.5.3-0.1_all.deb) ...
Unpacking replacement libapt-pkg-doc ...
Setting up apt (0.5.3-0.1) ...

Setting up libapt-pkg-dev (0.5.3-0.1) ...

Setting up libapt-pkg-doc (0.5.3-0.1) ...

Setting up apt-utils (0.5.3-0.1) ...

bash-2.05$

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux peter 2.4.4 #1 SMP Thu May 24 04:27:09 UTC 2001 i586
Locale: LANG=C, LC_CTYPE=C

Versions of packages apt depends on:
ii  libc6                  2.2.3-4           GNU C Library: Shared libraries an
ii  libstdc++2.10-glibc2.2 1:2.95.4-0.010506 The GNU stdc++ library

ii  fakeroot       0.4.4-9.2      Gives a fake root environment.

-- 


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


---------------------------------------
Received: (at 98928-done) by bugs.debian.org; 21 Aug 2001 04:46:46 +0000
>From jgg@debian.org Mon Aug 20 23:46:46 2001
Return-path: <jgg@debian.org>
Received: from cast-ext.ab.videon.ca [206.75.216.34] 
	by master.debian.org with smtp (Exim 3.12 1 (Debian))
	id 15Z3R3-0000yL-00; Mon, 20 Aug 2001 23:46:46 -0500
Received: (qmail 1390 invoked from network); 21 Aug 2001 04:46:39 -0000
Received: from unknown (HELO wakko.deltatee.com) ([24.108.173.63]) (envelope-sender <jgg@debian.org>)
          by cast-ext.ab.videon.ca (qmail-ldap-1.03) with SMTP
          for <56708-done@bugs.debian.org>; 21 Aug 2001 04:46:39 -0000
Received: from localhost
	([127.0.0.1] helo=wakko.deltatee.com ident=jgg)
	by wakko.deltatee.com with smtp (Exim 3.16 #1 (Debian))
	id 15Z3Qt-0003KS-00; Mon, 20 Aug 2001 22:46:31 -0600
Date: Mon, 20 Aug 2001 22:46:30 -0600 (MDT)
From: Jason Gunthorpe <jgg@debian.org>
X-Sender: jgg@wakko.deltatee.com
To: 56708-done@bugs.debian.org, 59432-done@bugs.debian.org, 
    65691-done@bugs.debian.org, 86954-done@bugs.debian.org, 
    88913-done@bugs.debian.org, 89066-done@bugs.debian.org, 
    89066-done@bugs.debian.org, 89121-done@bugs.debian.org, 
    89152-done@bugs.debian.org, 89671-done@bugs.debian.org, 
    89762-done@bugs.debian.org, 89854-done@bugs.debian.org, 
    90027-done@bugs.debian.org, 92025-done@bugs.debian.org, 
    92033-done@bugs.debian.org, 92757-done@bugs.debian.org, 
    93057-done@bugs.debian.org, 93652-done@bugs.debian.org, 
    94286-done@bugs.debian.org, 94618-done@bugs.debian.org, 
    95823-done@bugs.debian.org, 97364-done@bugs.debian.org, 
    97520-done@bugs.debian.org, 97520-done@bugs.debian.org, 
    97809-done@bugs.debian.org, 98272-done@bugs.debian.org, 
    98353-done@bugs.debian.org, 98468-done@bugs.debian.org, 
    98695-done@bugs.debian.org, 98928-done@bugs.debian.org, 
    99671-done@bugs.debian.org, 99974-done@bugs.debian.org, 
    100046-done@bugs.debian.org, 100325-done@bugs.debian.org, 
    100590-done@bugs.debian.org, 101071-done@bugs.debian.org, 
    101565-done@bugs.debian.org, 102293-done@bugs.debian.org, 
    102421-done@bugs.debian.org, 102867-done@bugs.debian.org, 
    102951-done@bugs.debian.org, 103020-done@bugs.debian.org, 
    105377-done@bugs.debian.org, 105606-done@bugs.debian.org, 
    106591-done@bugs.debian.org, 106911-done@bugs.debian.org, 
    106914-done@bugs.debian.org, 107362-done@bugs.debian.org, 
    107362-done@bugs.debian.org, 107395-done@bugs.debian.org, 
    107395-done@bugs.debian.org, 108968-done@bugs.debian.org
Subject: Fixed in apt 0.5.4
Message-ID: <Pine.LNX.3.96.1010820224454.12485A-100000@wakko.deltatee.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Delivered-To: 98928-done@bugs.debian.org

 apt (0.5.4) unstable; urgency=low
 
   * M68k config.guess patch. Closes: #88913
   * Bi-yearly test on OpenBSD and Solaris
   * Doc updates. Closes: #89121, #89854, #99671, #98353, #95823, #93057,
           #97520, #102867, #101071, #102421, #101565, #98272, #106914,
           #105606, #105377
   * Various cosmetic code updates. Closes: #89066, #89066, #89152
   * Add "pre-auto" as an option for DSelect::Clean (run autoclean after
     update).
   * More patches from Alfredo for Vendors and more SHA-1 stuff
   * Fix for AJ's 'desire to remove perl-5.005' and possibly other
     similar situations. Closes: #56708, #59432
   * no_proxy and ftp. Closes: #89671
   * Philippe Batailler's man page patches.
   * Fix for display bug. Closes: #92033, #93652, #98468
   * Use more than 16bits for the dep ID. Some people ran out..
     Closes: #103020, #97809, #102951, #99974, #107362, #107395, #107362,
             #106911, #107395, #108968
   * Reordered some things to make dante and FTP happier. Closes: #92757
   * James R. Van Zandt's guide.sgml updates. Closes: #90027
   * apt-ftparchive copes with no uncompressed package files + contents.
   * French man pages from philippe batailler - well sort of. They
     don't build yet..
   * run-parts. Closes: #94286
   * 'apt-cache policy' preferences debug tool.
   * Whatever. Closes: #89762
   * libstdc++ and HURD. Closes: #92025
   * More apt-utils verbage. Closes: #86954
   * Fliped comparision operator. Closes: #94618
   * Used the right copyright file. Closes: #65691
   * Randolph's G++3 patches.
   * Fixed no_proxy tokanizing. Closes: #100046
   * Strip Config-Version when copying status to available. Closes: #97520
   * Segfault with missing source files. Closes: #100325
   * EINTR check. Closes: #102293
   * Various changes to the locking metholodgy for --print-uris.
     Closes: #100590
   * Lame LD_LIBRARY_PATH thing. Closes: #98928
   * apt-cache search searchs provide names too now. Closes: #98695
   * Checksum and long lines problem. Closes: #106591
   * .aptignr and empty files are just a warning. Closes: #97364




Reply to: