Svante Signell, le Mon 08 Dec 2014 13:04:50 +0100, a écrit :
> On Mon, 2014-12-08 at 12:40 +0100, Samuel Thibault wrote:
> > Svante Signell, le Mon 08 Dec 2014 12:05:13 +0100, a écrit :
> > > Which translators are restarted when installing,
> > 
> > > exec /my_chroot/DEBs/test_fakeroot-hurd/settrans --chroot \
> > >      /my_chroot/DEBs/test_fakeroot-hurd/fakeauth \
> > 
> > See ./hurd/debugging/translator/gdb on the wiki: you need to use env to
> > properly set LD_LIBRARY_PATH for a translator.
> 
> problem is that fakeroot-hurd is a script so adding /usr/bin/env
> LD_LIBRARY_PATH=... to 
> /my_chroot/DEBs/test_fakeroot-hurd/fakeroot-hurd dh_install
> -plocales-all
> does not make things better. I've asked before: how to call
> the fakeroot-hurd script directly from the commandline?

You don't, you use the script. But you can modify the script to put the
env, can't you? I.e.:

exec /bin/settrans --chroot \
     /usr/bin/env LD_LIBRARY_PATH=/some/where \
     /bin/fakeauth \
     /bin/sh -c 'cd "$1" || exit ; shift ; exec "$@"' \
     "$1" "$PWD" "$@" \
     -- / /hurd/fakeroot

Samuel

Reply via email to