[med-svn] [ncbi-vdb] 02/02: Fix strange upstream handling of static libs

Andreas Tille tille at debian.org
Wed Jul 20 10:04:04 UTC 2016


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

tille pushed a commit to branch master
in repository ncbi-vdb.

commit f0901484abc297f669d4fe68fc3f0cfacc151f33
Author: Andreas Tille <tille at debian.org>
Date:   Wed Jul 20 12:03:28 2016 +0200

    Fix strange upstream handling of static libs
---
 debian/rules | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index afe2a01..aa2b284 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,6 +11,7 @@ CPU := $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)
 BUILDTYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 # since build-results are not ending up in the proper dir its saver to use "*" instead of "$(CPU)"
 SODIR := $(DEBPKGNAME)/$(DEBPKGNAME)/$(OS)/gcc
+LIBINSTALLDIR := debian/tmp/usr/$(DEBPKGNAME)/$(OS)/gcc/$(CPU)/dbg/lib
 
 %:
 	dh $@
@@ -41,9 +42,16 @@ endif
 override_dh_auto_install:
 	dh_auto_install
 	find . -name "*.so"
+	find $(LIBINSTALLDIR) -name "*-static.a" -delete
+	# upstream installs versioned *.a libs - we only want a single version
+	for slib in $(LIBINSTALLDIR)/*.a ; do \
+	    mv $(LIBINSTALLDIR)/`readlink $$slib` $$slib ; \
+	    mv $(LIBINSTALLDIR)/`readlink $$slib` $$slib ; \
+	done
 	d-shlibmove --commit \
 		    --multiarch \
 		    --devunversioned \
-		    --movedev debian/tmp/usr/$(SODIR)/dbg/lib/*.a usr/lib/$(BUILDTYPE) \
+		    --exclude-la \
+		    --movedev debian/tmp/usr/$(DEBPKGNAME)/$(OS)/gcc/$(CPU)/dbg/lib/*.a usr/lib/$(BUILDTYPE) \
 		    --movedev interfaces/ngs/ncbi/NGS.hpp usr/include/$(DEBPKGNAME) \
 		    debian/tmp/usr/$(DEBPKGNAME)/$(OS)/gcc/$(CPU)/dbg/lib/libncbi-vdb.so

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/ncbi-vdb.git



More information about the debian-med-commit mailing list