bug-hurd
[Top][All Lists]
Advanced

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

Re: Confusing results when trying to debug fakeroot-hurd


From: Samuel Thibault
Subject: Re: Confusing results when trying to debug fakeroot-hurd
Date: Mon, 8 Dec 2014 13:08:25 +0100
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

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

[Prev in Thread] Current Thread [Next in Thread]