[pynac] 03/06: Added a patch to fix the libtool versioning

$DEBFULLNAME julien.puydt at laposte.net
Thu Apr 10 14:41:18 UTC 2014


This is an automated email from the git hooks/post-receive script.

jpuydt-guest pushed a commit to branch master
in repository pynac.

commit e082df16902898ffd0a2a2bf1d99481ce6782ed6
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Wed Apr 9 22:58:47 2014 +0200

    Added a patch to fix the libtool versioning
---
 debian/patches/lt_version_info.patch | 61 ++++++++++++++++++++++++++++++++++++
 debian/patches/series                |  1 +
 2 files changed, 62 insertions(+)

diff --git a/debian/patches/lt_version_info.patch b/debian/patches/lt_version_info.patch
new file mode 100644
index 0000000..29ded5f
--- /dev/null
+++ b/debian/patches/lt_version_info.patch
@@ -0,0 +1,61 @@
+Description: clear the libtool versioning scheme
+Forwarded: to Volker Braun, by mail 2014-04-01
+Author: Julien Puydt <julien.puydt at laposte.net>
+
+diff -r e4e79a3b3d46 configure.ac
+--- a/configure.ac	Thu Mar 20 09:44:13 2014 -0400
++++ b/configure.ac	Tue Apr 01 09:04:16 2014 +0200
+@@ -2,21 +2,32 @@
+ 
+ dnl GiNaC library version information.
+ dnl
+-dnl Making releases:
+-dnl   ginac_micro_version += 1;
+-dnl   ginac_interface_age += 1;
+-dnl   ginac_binary_age += 1;
+-dnl if any functions have been added, set ginac_interface_age to 0.
+-dnl if backwards compatibility has been broken,
+-dnl set ginac_binary_age and ginac_interface_age to 0.
++dnl When making releases do whatever you want with the major,
++dnl minor and micro project version numbers ; but for the library
++dnl version, you must be more careful (the following lines are
++dnl to be read as an algorithm, don't stop at the first one!) :
++dnl 1. increment lt_revision
++dnl 2. if any interface has been added, removed or modified since the
++dnl    last release, then increment lt_current and set lt_revision to 0
++dnl 3. if any interface has been added, then increment lt_age
++dnl 4. if any interface has been removed, then set lt_age to zero
++dnl
++dnl In case you wonder why such instructions:
++dnl http://www.sourceware.org/autobook/autobook/autobook_91.html#SEC91
++dnl The following article is helpful too:
++dnl http://www.freesoftwaremagazine.com/articles/building_shared_libraries_once_using_autotools
+ 
+ m4_define([ginac_major_version], [0])
+ m4_define([ginac_minor_version], [3])
+ m4_define([ginac_micro_version], [2])
++
++m4_define([lt_current], [0])
++m4_define([lt_revision], [0])
++m4_define([lt_age], [0])
++
++
+ m4_define([ginac_version], [ginac_major_version.ginac_minor_version.ginac_micro_version])
+ m4_define([ginac_release], [ginac_major_version.ginac_minor_version])
+-m4_define([ginac_interface_age], [0])
+-m4_define([ginac_binary_age], [1])
+ 
+ AC_INIT([pynac], ginac_version, [<pynac-devel at googlegroups.com>])
+ AC_PREREQ(2.59)
+@@ -73,11 +84,7 @@
+ AC_DEFINE_UNQUOTED(ARCHIVE_AGE, $ARCHIVE_AGE, [GiNaC archive file version age])
+ 
+ dnl libtool versioning
+-m4_define([lt_revision], [ginac_interface_age])
+-m4_define([lt_current], [m4_eval(ginac_micro_version - ginac_interface_age)])
+-m4_define([lt_age], [m4_eval(ginac_binary_age - ginac_interface_age)])
+ LT_VERSION_INFO="lt_current:lt_revision:lt_age"
+-
+ AC_SUBST(LT_VERSION_INFO)
+ 
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 045cb53..71324ff 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 comments.patch
+lt_version_info.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pynac.git



More information about the debian-science-commits mailing list