On Jul 31, 2004, at 3:01 PM, Koen van der Drift wrote:
Hi,
I am confused about the naming of shlibs. The docs say to use oTool -L to make sure the numbering is up-to-date. I checked some base packages shlibs to see where the numbers go, and this is the output:
koen$ oTool -L /sw/lib/libbz2.1.0.2.dylib
/sw/lib/libbz2.1.0.2.dylib:
/sw/lib/libbz2.1.dylib (compatibility version 1.0.1, current version 1.0.2)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 71.0.0)
[snip]
So for libbz2 and libapt-pkg the numbers correspond to the current version (1.0.2). However, the docs say to use the compatibility version number. And then libiconv uses a complete different number.
The thing you want to use otool for is to verify that the number in the Shlibs field in the .info file is correct. To give an example from one of my packages:
Shlibs: <<
%p/lib/libpng.3.dylib 3.0.0 %n (>= 1.2.5-1)
%p/lib/libpng12.0.dylib 0.1.2 %n (>= 1.2.5-3)
<<This means that libpng.3.dylib is the install_name of the library and 3.0.0 is the compatibility_version.
Whether those numbers are related to each other or not depends on the build system being used upstream. If the package is using libtool (and using it correctly), then these numbers will be related; otherwise, maybe not.
The important thing is that the number used in the install_name should change whenever a non-backward-compatible change in the library is made. When such a change is made, you want to create a new fink package whose name reflects the new number. (In my example, the Shlibs field was taken from libpng3-shlibs (which replaced libpng-shlibs, the earlier version from before we were numbering things).
-- Dave
------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel
