Subject: Re: Fwd: pkg/26633: package ABI is often broken on NetBSD due to
To: Todd Vierling <tv@duh.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 08/13/2004 11:49:04
On Fri, 13 Aug 2004, Todd Vierling wrote:
> > Is this related at all with the so versioning for Linux too?
> >
> > For example, packages from pkgsrc used on Linux have different filenames
> > than found on other Linux systems.
>
> Yes. This is because of the explicit "version_type=sunos" being set in
> patch-ac of pkgsrc's libtool. It's not binary incompatible, because only
> the .so.major version matters at runtime, but it might be visually confusing
> when comparing systems.
More than just visually confusing, but when using binary downloads
(prebuilt for Linux) like firefox, opera, et cetera, the libraries
expected have different names.
For example look at these symlinks I had to make:
lrwxrwxrwx 1 root root 26 Aug 5 21:15 libatk-1.0.so.0 -> /usr/pkg/lib/libatk-1.0.so
lrwxrwxrwx 1 root root 30 Aug 5 21:15 libgdk-x11-2.0.so.0 -> /usr/pkg/lib/libgdk-x11-2.0.so
lrwxrwxrwx 1 root root 33 Aug 5 21:16 libgdk_pixbuf-2.0.so.0 -> /usr/pkg/lib/libgdk_pixbuf-2.0.so
lrwxrwxrwx 1 root root 27 Aug 5 21:17 libglib-2.0.so.0 -> /usr/pkg/lib/libglib-2.0.so
lrwxrwxrwx 1 root root 30 Aug 5 21:17 libgmodule-2.0.so.0 -> /usr/pkg/lib/libgmodule-2.0.so
lrwxrwxrwx 1 root root 30 Aug 5 21:17 libgobject-2.0.so.0 -> /usr/pkg/lib/libgobject-2.0.so
lrwxrwxrwx 1 root root 30 Aug 5 21:14 libgtk-x11-2.0.so.0 -> /usr/pkg/lib/libgtk-x11-2.0.so
lrwxrwxrwx 1 root root 28 Aug 5 21:16 libpango-1.0.so.0 -> /usr/pkg/lib/libpango-1.0.so
lrwxrwxrwx 1 root root 29 Aug 5 21:16 libpangox-1.0.so.0 -> /usr/pkg/lib/libpangox-1.0.so
lrwxrwxrwx 1 root root 31 Aug 5 21:16 libpangoxft-1.0.so.0 -> /usr/pkg/lib/libpangoxft-1.0.so
(All above had ".0" after "so". This was from ready-to-use binary from
mozilla.org.)
> If we go forward with PKGREVISION Bump Day for libtool, this is precisely
> what will change: going to "version_type=linux" (libtool's out-of-the-box
> default) for most systems.
Does this need to be done before pkgsrc-2004Q3? It will be tagged around
September 20 (with freeze starting Sept. 6).
> Which reminds me; one thing I didn't note on my list of things which would
> be fixed in the One Big Commit is PLISTs. The versions of libs change, so
> of course, so will the PLISTs.
Hopefully, the PLIST handling for the shared libraries will work to handle
all this.
Jeremy C. Reed
BSD News, BSD tutorials, BSD links
http://www.bsdnewsletter.com/