Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jun 2009 12:55:09 +0200
From:      Dominic Fandrey <kamikaze@bsdforen.de>
To:        Boris Samorodov <bsam@ipt.ru>
Cc:        freebsd-ports@FreeBSD.org
Subject:   Re: pkg_libchk: a missing library is not detected
Message-ID:  <4A36288D.2080402@bsdforen.de>
In-Reply-To: <88733235@bb.ipt.ru>
References:  <88733235@bb.ipt.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A36288D.2080402>