[libdbi] Prevent undesirable change in library soname version number

Tom Lane tgl at fedoraproject.org
Mon Jul 23 19:36:28 UTC 2012


commit 0f88be96d7704814e0aee8a4f48d10947ff06acf
Author: Tom Lane <tgl at redhat.com>
Date:   Mon Jul 23 15:36:17 2012 -0400

    Prevent undesirable change in library soname version number

 libdbi-version.patch |   20 ++++++++++++++++++++
 libdbi.spec          |    7 ++++++-
 2 files changed, 26 insertions(+), 1 deletions(-)
---
diff --git a/libdbi-version.patch b/libdbi-version.patch
new file mode 100644
index 0000000..78bbd60
--- /dev/null
+++ b/libdbi-version.patch
@@ -0,0 +1,20 @@
+libdbi 0.8.4 increased the library soname version number from 0 to 1,
+but this seems rather inappropriate considering there was neither any
+functionality change nor a bump in the package's major version number.
+We will keep the soname where it was for now.
+
+
+diff -Naur libdbi-0.8.4.orig/configure libdbi-0.8.4/configure
+--- libdbi-0.8.4.orig/configure	2010-08-31 19:22:52.000000000 -0400
++++ libdbi-0.8.4/configure	2012-07-23 15:27:02.827240360 -0400
+@@ -2543,8 +2543,8 @@
+ 
+ 
+ 
+-LIB_CURRENT=1
+-LIB_REVISION=0
++LIB_CURRENT=0
++LIB_REVISION=5
+ LIB_AGE=0
+ 
+ 
diff --git a/libdbi.spec b/libdbi.spec
index 711b1b1..a18822c 100644
--- a/libdbi.spec
+++ b/libdbi.spec
@@ -1,7 +1,7 @@
 Summary: Database Independent Abstraction Layer for C
 Name: libdbi
 Version: 0.8.4
-Release: 1%{?dist}
+Release: 2%{?dist}
 Group: Development/Libraries
 License: LGPLv2+
 URL: http://libdbi.sourceforge.net/
@@ -10,6 +10,7 @@ Source: http://prdownloads.sourceforge.net/libdbi/%{name}-%{version}.tar.gz
 
 Patch1: libdbi-cflags.patch
 Patch2: libdbi-leak.patch
+Patch3: libdbi-version.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires: openjade docbook-style-dsssl
@@ -43,6 +44,7 @@ needed to develop applications with libdbi.
 
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %configure
@@ -79,6 +81,9 @@ rm -f ${RPM_BUILD_ROOT}%{_libdir}/libdbi.la
 %{_libdir}/libdbi.so
 
 %changelog
+* Mon Jul 23 2012 Tom Lane <tgl at redhat.com> 0.8.4-2
+- Prevent undesirable change in library soname version number
+
 * Sun Jul 22 2012 Tom Lane <tgl at redhat.com> 0.8.4-1
 - Update to version 0.8.4 (seems to contain only configure-support updates,
   but might as well adopt it)


More information about the scm-commits mailing list