Hi,

First: I tried adding a ticket to

Now, the real problem I've encountered with PoDoFo library is described
here: https://bugs.archlinux.org/task/50155

In short, no symlinks are created for major and minor numbers, forcing to
rebuild other programs when the revision or the minor number changes.

While some projects are not ABI compatible between minor number increment
(which I don't know if it is the case for PoDoFo, since there is no stable
major release yet), most of them are. Also, a revision/version number
increment should only fix errors, not change the ABI.

Thus, PoDoFo should at least create a symlink between the full number
(libpodofo.so.major.minor.revision) and the minor number
(libpodofo.so.major.minor).
Probably, a symlink to the major number should also be created (
libpodofo.so.major).

As it is done now, only the full version numbered library
(libpodofo.so.major.minor.revision)
and a generic symlink (no version, libpodofo.so) are created.

Following CMake documentation, the SOVERSION variable should be changed
when the ABI is broken (so it should be set to either major, or major.minor
if the ABI still changes between minor number increment). The VERSION
should be used to identify the full version string.

I think the CMakeLists.txt should be modified as below.
Alexandre Demers

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (révision 1775)
+++ CMakeLists.txt (copie de travail)
@@ -13,9 +13,10 @@
 SET(PODOFO_VERSION_MAJOR "0" CACHE STRING "Major part of PoDoFo version
number")
 SET(PODOFO_VERSION_MINOR "9" CACHE STRING "Minor part of PoDoFo version
number")
 SET(PODOFO_VERSION_PATCH "5" CACHE STRING "Patchlevel part of PoDoFo
version number")
-SET(PODOFO_SOVERSION
"${PODOFO_VERSION_MAJOR}.${PODOFO_VERSION_MINOR}.${PODOFO_VERSION_PATCH}")
-SET(PODOFO_LIBVERSION "${PODOFO_SOVERSION}")
+SET(PODOFO_VERSION
"${PODOFO_VERSION_MAJOR}.${PODOFO_VERSION_MINOR}.${PODOFO_VERSION_PATCH}")

+SET(PODOFO_SOVERSION ${PODOFO_VERSION_MAJOR})
+SET(PODOFO_LIBVERSION ${PODOFO_VERSION})

 #
 # Main includes
------------------------------------------------------------------------------
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to