Le vendredi 11 juillet à 17h 27mn 37s (-0400), Daniel Kahn Gillmor a écrit : > On 07/11/2014 08:41 AM, jhcha54008 wrote: > > The following patch replaces fakechroot ldd and ldconfig by > > original versions, and build /etc/ld.so.cache. > > > > Regards, > > JH Chatenet > > > > diff -Naur a/usr/share/debirf/modules/z1_clean-root > > b/usr/share/debirf/modules/z1_clean-root > > --- a/usr/share/debirf/modules/z1_clean-root 2014-07-09 > > 22:28:14.000000000 +0200 > > +++ b/usr/share/debirf/modules/z1_clean-root 2014-07-09 > > 22:37:49.000000000 +0200 > > @@ -28,3 +28,16 @@ > > > > # setup dynamically updated /etc/mtab > > ln -sf /proc/mounts "$DEBIRF_ROOT/etc/mtab" > > + > > +# remove diversions added by debootstrap > > +# (debootstrap 1.0.60, function install_fakechroot_tools, > > +# file /usr/share/debootstrap/functions lines 1397-1582 ) > > +if [ "$ROOT_BUILD" = 'false' ]; then > > + debirf_exec dpkg-divert --remove /sbin/ldconfig > > + mv -f "$DEBIRF_ROOT/sbin/ldconfig.REAL" "$DEBIRF_ROOT/sbin/ldconfig" > > + debirf_exec dpkg-divert --remove /usr/bin/ldd > > + mv -f "$DEBIRF_ROOT/usr/bin/ldd.REAL" "$DEBIRF_ROOT/usr/bin/ldd" > > +fi > > + > > +# setup ld.so cache > > +/sbin/ldconfig -r "$DEBIRF_ROOT" > > This all seems reasonable to me, but i wonder if we shouldn't try to > debirf_exec ldconfig instead of using the host's ldconfig with -r. did > you try it the other way and reject it for some reason? > > Thanks for your feedback and useful suggestions on debirf! > > --dkg >
Thank you for your answer. >From fakechroot's man page, it seems that ldconfig can't work in a fakechroot >environment : ldconfig is statically linked, and fakechroot can't preload symbols of libraries. Hence the dummy version installed by debootstrap : it just advertises "doing nothing" By contrast, the host's ldconfig should work, in a fakechroot environment or as real root. Regards, JH Chatenet -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org