[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Script to fix library dependencies



Christoph Lameter writes:
-> Here is a script that fixes the .shlibs files in
-> /var/lib/dpkg/info/*.shlibs according to what we discussed recently.
-> It will allow the use of any library with the same major and minor but
-> will leave freedom to use any patchlevel and delta

No, no no no no no no, and NO!

This is not correct. It will break things. It violates the
programmer's Manual. It is a Very Bad Idea. From said manual:

   For example, if the package foo contains libfoo.so.1.2.3, where the
   soname of the library is libfoo.so.1, and the first version of the
   package which contained a minor number of at least 2.3 was 1.2.3-1,
   then the package's shlibs could say:
libfoo 1        foo (>= 1.2.3-1)


   vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
   The version-specific dependency is to avoid warnings from ld.so about
   using older shared libraries with newer binaries.                
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Please take some time to collect information and understand the
technical details involved before proposing hare-brained 'solutions'
such as this.

The proper thing to do is to have shared libraries appropriate to the
release you wish to build for installed on your system.

-Larry


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: