From 8ab61d308942de33c7c2ef581a0cf0032f4a45b1 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Wed, 14 Sep 2005 17:51:06 +0000 Subject: [PATCH] 6.1 Shared libraries: - mention prefered naming scheme of shared library files - add few words about bumping PORTREVISION of consumers on shlib version raise 8 Shared library versions - kill without replacement; it's hardly useful in the modern autotools world Approved by: keramida (mentor) --- .../books/porters-handbook/book.sgml | 46 ++++--------------- 1 file changed, 10 insertions(+), 36 deletions(-) diff --git a/en_US.ISO8859-1/books/porters-handbook/book.sgml b/en_US.ISO8859-1/books/porters-handbook/book.sgml index a018472c65..ab1c7d314f 100644 --- a/en_US.ISO8859-1/books/porters-handbook/book.sgml +++ b/en_US.ISO8859-1/books/porters-handbook/book.sgml @@ -3887,6 +3887,16 @@ LDCONFIG_DIRS= %%PREFIX%%/lib/foo %%PREFIX%%/lib/bar PREFIX, %%LOCALBASE%% for LOCALBASE and %%X11BASE%% for X11BASE. + + Try to keep shared library version numbers in the + libfoo.so.0 format. Our runtime linker only + cares for the major (first) number. + + When the major library version number increments in the update + to the new port version, all other ports that link to the affected + library should have their PORTREVISION incremented, + to force recompilation with the new library version. + @@ -5953,42 +5963,6 @@ etc/orbit.conf.sample - - Shared library versions - - Please read our policy on - shared library versioning to understand what to do with - shared library versions in general. Do not blindly assume software - authors know what they are doing; many of them do not. It is very - important that these details are carefully considered, as we have - quite a unique situation where we are trying to have dozens of - potentially incompatible software pairs co-exist. Careless port - imports have caused great trouble regarding shared libraries in the - past (ever wondered why the port jpeg-6b has a - shared library version of 9?). If in doubt, send a message to the - &a.ports;. Most of the time, your job ends by determining the right - shared library version and making appropriate patches to implement - it. - - - - The <filename>pkg-<replaceable>*</replaceable></filename> files