As a not-so-gentle reminder: if you are packaging shared libraries,
follow the Shared Library Policy. No exceptions.

The name of a package that installs public shared library files *must*
*must* *must* change when the install_name of the .dylib changes. I
just spent over an hour debugging a weird linker error build because
gnutls broke that rule in 10.3 and 10.4-transitional, with:

--- 10.3/unstable/crypto/finkinfo/gnutls.info   15 Nov 2004 23:57:27 -0000      
1.14
+++ 10.3/unstable/crypto/finkinfo/gnutls.info   29 Jan 2005 16:03:13 -0000      
1.15
   Files: 
-    lib/libgnutls.11*.dylib
+    lib/libgnutls.12*.dylib
   Shlibs: <<
-    %p/lib/libgnutls.11.1.15.dylib         13.0.0 %n (>= 1.0.15-1)
+    %p/lib/libgnutls.12.1.24.dylib         14.0.0 %n (>= 1.2.0-1)

When this happens, everything built against the "old" filename becomes
broken when the new-filename package gets installed (and vice versa),
and that breakage can lurk quietly and propagate up through things
that link against them. Recursively. Forever.

I created a new "gnutls12" package for the new files, i.e., what
should have been done originally. If you follow the policy, that's
about all you have to do. But since that's not how it was done, I
wound up spending another hour+ adding new versioned-dependencies for
it and all packages that uses it at any level of their dependency
graph to all such packages in order to make sure they build
deterministically, link to files that actually exist, and have
dependencies that reflect those files. And any user who keeps
up-to-date with unstable gets to join me in this rebuild fest.

This is not how I had planned to spend my afternoon.

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to