Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
FS#2750 - PATCH: run ldconfig only once
|
DetailsSee for details http://bbs.archlinux.org/viewtopic.php?p=88721
Patch also at http://nul.nu/~indan/pacman-2.9.5-ldconfig.patch Currently Pacman runs ldconfig multiple times, or more precisely, numpackages + 1 times. Another advantage is that the ldconfig is done in the background so the user doesn't have to wait on it. |
This task depends upon
ldconfig.patch
Also ldconfig is run when removing a package, so perhaps by package update ldconfig is run twice currently, or something similar happens. Even if this would be totally unnecessary because it already happens once currently, this patch reduces the total code and does the ldconfig in the background. It may be a bug that it's run multiple times currently.
Interesting, I found this in gnome-common's installscript:
post_install() {
if ! grep '/opt/gnome/lib' etc/ld.so.conf >/dev/null 2>&1; then
echo "/opt/gnome/lib" >> etc/ld.so.conf
sbin/ldconfig -r .
fi
}
Same for the post_install.
It seems that either those can be removed, or that they can be mandated. Removing them and just letting Pacman do it is probably safest. So just close this bug, rerunning ldconfig doesn't take that long if the file cache isn't pushed away by some big package, and then the download time is much longer anyway, making it insignificant (or a luxery problem).
Though I would take the part of the patch which moves the ldconfig call into it's own function, avoiding code duplication.