Package: stk / 4.5.2+dfsg-5

Bump-soname-with-each-release.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
From: Felipe Sateler <fsateler@debian.org>
Date: Mon, 9 Jun 2014 21:01:56 -0400
Subject: Bump soname with each release

Imitate the libtool -release style of versioning, as long as the ABI is not stable
---
 configure.ac    | 10 ++++++----
 src/Makefile.in |  4 ++--
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 0616428..e33dc93 100644
--- a/configure.ac
+++ b/configure.ac
@@ -111,14 +111,16 @@ CXXFLAGS="$CXXFLAGS $cxxflag"
 
 AC_CANONICAL_HOST
 
+basesharedname="libstk-\$(RELEASE)"
+
 AC_SUBST( sharedlib, ["libstk.so"] )
-AC_SUBST( sharedname, ["libstk.so.\$(RELEASE)"] )
-AC_SUBST( libflags, ["-shared -Wl,-soname,\$(SHAREDLIB).\$(MAJOR) -o \$(SHAREDLIB).\$(RELEASE)"] )
+AC_SUBST( sharedname, [${basesharedname}.so] )
+AC_SUBST( libflags, ["-shared -Wl,-soname,${basesharedname}.so -o $sharedname"] )
 case $host in
   *-apple*)
   AC_SUBST( sharedlib, ["libstk.dylib"] )
-  AC_SUBST( sharedname, ["libstk.\$(RELEASE).dylib"] )
-  AC_SUBST( libflags, ["-dynamiclib -o libstk.\$(RELEASE).dylib"] )
+  AC_SUBST( sharedname, ["${basesharedname}.dylib"] )
+  AC_SUBST( libflags, ["-dynamiclib -o ${basesharedname}.dylib"] )
 esac
 
 if test $realtime = yes; then
diff --git a/src/Makefile.in b/src/Makefile.in
index 64da6bf..ffbd329 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -4,7 +4,7 @@
 STATICLIB = libstk.a
 SHAREDLIB = @sharedlib@
 MAJOR = 4
-RELEASE = 4.4.4
+RELEASE = @PACKAGE_VERSION@
 
 AR = ar -rsc
 RM = /bin/rm
@@ -114,4 +114,4 @@ clean :
 	$(RM) -fR *.dSYM
 
 distclean: clean
-	$(RM) Makefile
\ No newline at end of file
+	$(RM) Makefile