Re: dkpg tries to run external programs
Hello,
On Wed, May 26, 1999 at 12:38:52PM +0400, Pavel Roskin wrote:
>
> dpkg: `ldconfig' not found on PATH.
> dpkg: `start-stop-daemon' not found on PATH.
> dpkg: `update-rc.d' not found on PATH.
> dpkg: 3 expected program(s) not found on PATH.
> NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and
> /sbin.
> dpkg: `ldconfig' not found on PATH.
> dpkg: `start-stop-daemon' not found on PATH.
> dpkg: `update-rc.d' not found on PATH.
> dpkg: 3 expected program(s) not found on PATH.
> NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and
> /sbin.
>
> Why does dpkg try to run the above programs? I'm almost sure that it is
> not needed for cross-install. Is it possible to disable running external
> programs from dpkg?
It does not exactly try to run them, it doesn only check if they are
available. This is some safety check for root-ness and PATH.
> My solution was to make symlinks
> /sbin/ldconfig -> ~/bin/ldconfig
> /bin/true -> ~/bin/start-stop-daemon
> /bin/true -> ~/bin/update-rc.d
Yes.
> I don't have start-stop-daemon and update-rc.d, because my Linux is RedHat
> (sorry, Debian fans).
That's okay :)
Can you do me a favour and try it WITHOUT the symlinks, but with the
following change to dpkg-hurd:
Wherever it does say (two locations at the end of the script):
dpkg --root=. --admindir=${vld} --force-architecture ...
make that
dpkg --root=. --admindir=${vld} --force-architecture --force-not-root ...
If this works, I will make the change in the script.
Thanks for stress testing the installation under Red Hat,
Marcus
--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org finger brinkmd@
Marcus Brinkmann GNU http://www.gnu.org master.debian.org
Marcus.Brinkmann@ruhr-uni-bochum.de for public PGP Key
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/ PGP Key ID 36E7CD09
Reply to: