pkg_libchk: a missing library is not detected

Dominic Fandrey kamikaze at bsdforen.de
Mon Jun 15 10:55:18 UTC 2009


Sorry for the late reply, this was auto-sorted into the ports@ mails
and drowned there.

Boris Samorodov wrote:
> Hi!
> 
> 
> Seems to me like a bug at pkg_libchk:
> -----
> % eog
> /libexec/ld-elf.so.1: Shared object "libgnome-desktop-2.so.7" not found, required by "eog"
> % ldd `which eog` | grep found
>         libgnome-desktop-2.so.7 => not found (0x0)
> % pkg_libchk -vc eog\*

This just means that it's an indirect dependency, meaning that updating
eog wouldn't do any good, but a dependency needs to be updated.

pkg_libchk only displays direct library missings, so the result is
not everything affected, but instead only everything that needs
fixing.

> % pkg_info -xI bsdadmin
> bsdadminscripts-6.1.1 A collection of administration scripts
> %
> -----
> 
> BTW, the library libgnome-desktop-2.so.7 was replaced by a new one
> libgnome-desktop-2.so.11 while updating:
> -----
> 1244027909 - Wed Jun  3 15:18:29 MSD 2009 - DONE: Update <gnome-desktop-2.24.3> to <gnome-desktop-2.26.2_1> (x11/gnome-desktop)
> -----
> 
> As I understand pkg_upgrade does not preserve old libraries at
> /usr/local/lib/compat?

That's true. I consider this common approach a security risk.
I suggest running pkg_libchk -a and reinstalling the packages
listed by it to fix that.

Mostly dependent ports get version bumped if they depend on a
library that was changed. Unfortunately this doesn't always happen.
To ensure that you get the newest packages wipe
/usr/ports/packages/All.

> 
> 
> WBR



More information about the freebsd-ports mailing list