[liblinear] 63/123: Disable symbols file with older dpkg-dev

Christian Kastner chrisk-guest at moszumanska.debian.org
Tue Aug 26 03:42:09 UTC 2014


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

chrisk-guest pushed a commit to branch master
in repository liblinear.

commit 135e080006b9c4a1f9b34f39888816275297d571
Author: Christian Kastner <debian at kvr.at>
Date:   Sun Feb 27 17:46:02 2011 +0100

    Disable symbols file with older dpkg-dev
    
    dpkg-gensymbols(1) in dpkg-dev versions earlier than 1.15.6 because c++ symbol
    patterns are not understood. This poses a problem for backporters. The correct
    solution would be to backport dpkg-dev as well; however, as a temporary
    stop-gap solution, we just remove the symbols file on those
    systems prior to dpkg-gensymbols(1) doing its work.
    
    See http://lists.debian.org/debian-devel/2011/01/msg00719.html
---
 debian/TODO  | 15 +++++++++++++++
 debian/rules | 12 ++++++++++++
 2 files changed, 27 insertions(+)

diff --git a/debian/TODO b/debian/TODO
new file mode 100644
index 0000000..a476801
--- /dev/null
+++ b/debian/TODO
@@ -0,0 +1,15 @@
+Concerning upstream sources
+---------------------------
+
+No TODOs at this time.
+
+
+
+Concerning Debian packaging
+---------------------------
+
+2011-02-27 (CK):
+  As a convenience to backporters, we remove the liblinear1.symbols file on
+  systems with a dpkg version earlier than 1.15.6. However, this should be
+  considered only a temporary measure, until a more satisfactory solution is
+  found.
diff --git a/debian/rules b/debian/rules
index c5be819..0135aa8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,6 +11,9 @@ LSUBVER = $(shell echo $(DVER) | sed -e 's/Version: .*\.\([0-9]*\).*/\1/')
 export LVER
 export LSUBVER
 
+# Get Dpkg version (needed for override_dh_makeshlibs)
+DPKGVER := $(shell dpkg -l dpkg-dev | grep '^i' | awk '{print $$3}')
+
 CFLAGS += -Wall
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 ifeq (amd64,$(DEB_HOST_ARCH))
@@ -22,8 +25,17 @@ endif
 %:
 	dh $@ 
 
+
+# Help out backporters on platforms not supporting c++ tags in symbols files
+override_dh_makeshlibs:
+	dpkg --compare-versions "$(DPKGVER)" ge "1.15.6" || \
+		rm -f debian/liblinear1.symbols debian/liblinear1.symbols
+	dh_makeshlibs
+
+
 override_dh_compress:
 	dh_compress -Xexamples
 
+
 override_dh_strip:
 	dh_strip --dbg-package=liblinear-dbg

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



More information about the debian-science-commits mailing list