Hi,

On Thu, 17 Apr 2014 23:00:27 +0000 jhcha54008 <jhcha54...@free.fr> wrote:
> as stated in the man page :
> "Statically linked binaries doesn't work, especially ldconfig(8),"
> 
> However, after leaving the fakechroot environment, one may run 
> ldconfig with option -r :
> ldconfig -r /tmp/sid
> 
> Is it worth mentioning it in the man page ?
> 
> By the way, according to the man page :
> "It is suggested to substitute at least:
> ...
> ยท "/sbin/ldconfig=/bin/ldconfig"
> ...
> to make debootstrap(8) working correctly."
> 
> But fakechroot version 2.17.2 no longer ships a ldconfig.fakechroot
> script, and debootstrap.env substitutes :
> "/sbin/ldconfig=/bin/true"

unfortunately, after having left the fakechroot environment, absolute symlinks
inside the chroot are broken when seen from the outside. So before one can run
`ldconfig -r /path/to/chroot` one has to rewrite all those symlinks to working
relative ones and then back to their originals after ldconfig is done.

I wrote a script that does exactly that as part of the package mmdebstrap. You
can use the script like this:

    export 
FAKECHROOT_CMD_SUBST=/sbin/ldconfig=/usr/libexec/mmdebstrap/ldconfig.fakechroot

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to