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 <[email protected]>
--- pacman-3.3.0.orig/lib/libalpm/util.c
+++ pacman-3.3.0/lib/libalpm/util.c
@@ -562,7 +562,7 @@ int _alpm_ldconfig(const char *root)
 	if(access(line, F_OK) == 0) {
 		snprintf(line, PATH_MAX, "%ssbin/ldconfig", root);
 		if(access(line, X_OK) == 0) {
-			_alpm_run_chroot(root, "ldconfig");
+			_alpm_run_chroot(root, "/sbin/ldconfig");
 		}
 	}
 
_______________________________________________
pacman-dev mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/pacman-dev

Reply via email to