On Mon, Aug 3, 2009 at 11:55 AM, Marc - A. Dahlhaus [ Administration | Westermann GmbH ]<mad@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@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 :)