[pacman-dev] [PATCH]libalpm: fix ldconfig inside of chroot...
Xavier
shiningxc at gmail.com
Mon Aug 3 08:06:03 EDT 2009
On Mon, Aug 3, 2009 at 11:55 AM, Marc - A. Dahlhaus [ Administration |
Westermann GmbH ]<mad at wol.de> wrote:
> Hello,
>
> i found an error in pacman 3.3.0:
>
> If you execute pacman as ordinary user (with sudo) and don't have
> ldconfig in your PATH pacman can't find ldconfig...
>
> Outputs after upgrade to 3.3.0:
>
> $ sudo pacman -S swat
> resolving dependencies...
> looking for inter-conflicts...
>
> Targets (1): swat-3.3.7-0.79.0
>
> Total Download Size: 0.00 MB
> Total Installed Size: 15.04 MB
>
> Proceed with installation? [Y/n]
> checking package integrity...
> (1/1) checking for file conflicts [######################] 100%
> (1/1) installing swat [######################] 100%
> sh: ldconfig: command not found
> error: command failed to execute correctly
>
> Attached patch fixes this...
>
> Signed-off-by: Marc - A. Dahlhaus <mad at wol.de>
>
I always had /sbin in the PATH so never caught this (and this is set
in /etc/profile by default).
I suppose we cannot assume that?
Anyway, the code was quite funny, it checked for /sbin/ldconfig but
then executed ldconfig. So your patch looks good to me. Pushed to my
git tree.
Thanks :)
More information about the pacman-dev
mailing list