Subject: glib2 and maybe a missed BUILDLINK_RECOMMENDED?
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 03/01/2005 08:15:42
(elrdet of tin.it mentioned gobject missing library on netbsd-help. This
reminded me that I forgot to send the following email that I composed on
Feb. 1.)

I packaged kino and then tried to run it on another system.

montecristo:/home/packages$ kino
kino: error while loading shared libraries: libgobject-2.0.so.400: cannot
open shared object file: No such file or directory

montecristo:/home/packages$ ls -ld /usr/lib/libgobject-2.0.*
-rw-r--r--    1 root     root      1219960 Dec 29 09:21
/usr/lib/libgobject-2.0.a
-rwxr-xr-x    1 root     root          972 Dec 29 09:21
/usr/lib/libgobject-2.0.la
lrwxrwxrwx    1 root     root           25 Jan 31 12:56
/usr/lib/libgobject-2.0.so -> libgobject-2.0.so.0.600.0
lrwxrwxrwx    1 root     root           25 Jan 31 12:56
/usr/lib/libgobject-2.0.so.0 -> libgobject-2.0.so.0.600.0
-rwxr-xr-x    1 root     root       953823 Dec 29 09:21
/usr/lib/libgobject-2.0.so.0.600.0

Installed is glib2-2.6.0 on this system built by me on Dec. 29.

The build system has glib2-2.6.1.

Update to 2.6.1 happened on Jan. 9. But buildlink3.mk has not been touched
for over eight months. It has:
BUILDLINK_DEPENDS.glib2+=       glib2>=2.4.0

Also somehow it was missed in the pkgsrc bump around Sept. 22 for the
libtool changes.

IGNORE_RECOMMENDED has not been used on this build system for a while.
None of the packages installed have that recorded in +BUILD_INFO. And the
glib2-2.6.0 packages +BUILD_INFO doesn't say IGNORE_RECOMMENDED.

So I added a BUILDLINK_RECOMMENDED.glib2+=   glib2>=2.6.1
to ../../devel/glib2/buildlink3.mk.

And now it depends on correct version. So I pkg_add -u my glib2 on the
system. And now many other packages break:

/usr/lib/libgnomeui-2.so.0 has:
        libgobject-2.0.so.400 => not found
        libgmodule-2.0.so.400 => not found
        libgthread-2.0.so.400 => not found
        libglib-2.0.so.400 => not found
Same with /usr/lib/libbonoboui-2.so.0 and /usr/lib/libgnome-2.so.0 and
/usr/lib/libgnomevfs-2.so.0 and /usr/lib/libbonobo-2.so.0 and
/usr/lib/libbonobo-activation.so.4 and others.

Does anyone see the same? Or am I mistaken?

Also does glib2-2.6.2 have different sonames?

My kino now needs libgobject-2.0.so.0 (and missing libgobject-2.0.so.400).

If I am right, then we need to add a BUILDLINK_RECOMMENDED.glib2.
I think it is too late to bump PKGREVISIONS for packages needing it.

 Jeremy C. Reed

 	  	 	 open source, Unix, *BSD, Linux training
	  	 	 http://www.pugetsoundtechnology.com/