[med-svn] [ncbi-blast+] 03/04: debian/rules: Automatically determine which libraries are needed.

Aaron M. Ucko ucko at moszumanska.debian.org
Fri Aug 5 03:24:03 UTC 2016


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

ucko pushed a commit to branch master
in repository ncbi-blast+.

commit 56a1d08176f27131ba04cabaad51719331a941d4
Author: Aaron M. Ucko <ucko at debian.org>
Date:   Thu Aug 4 23:04:57 2016 -0400

    debian/rules: Automatically determine which libraries are needed.
    
    The hand-maintained blacklist was incomplete.
---
 debian/changelog | 4 +++-
 debian/rules     | 9 ++++++---
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 0f032c3..ee54968 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,8 +3,10 @@ ncbi-blast+ (2.4.0-2) UNRELEASED; urgency=medium
   * NOT RELEASED YET.
   * Import upstream patch for remaining Boost compatibility issues
     as debian/patches/support_recent_boost.  (Closes: #833451.)
+  * debian/rules: Automatically determine which libraries are needed.
+    (The hand-maintained blacklist was incomplete.)
 
- -- Aaron M. Ucko <ucko at debian.org>  Thu, 04 Aug 2016 23:02:18 -0400
+ -- Aaron M. Ucko <ucko at debian.org>  Thu, 04 Aug 2016 23:04:57 -0400
 
 ncbi-blast+ (2.4.0-1) unstable; urgency=medium
 
diff --git a/debian/rules b/debian/rules
index 968ab4f..ae92289 100755
--- a/debian/rules
+++ b/debian/rules
@@ -61,7 +61,7 @@ override_dh_auto_test:
 instroot = debian/ncbi-blast+/usr
 leg_bin = debian/ncbi-blast+-legacy/usr/share/ncbi-blast+/bin
 override_dh_auto_install-arch:
-	cp c++/BUILD/lib/*.so $(instroot)/lib/ncbi-blast+/
+	# cp c++/BUILD/lib/*.so $(instroot)/lib/ncbi-blast+/
 	cp c++/BUILD/bin/*    $(instroot)/bin/
 
 override_dh_auto_install-indep:
@@ -78,8 +78,11 @@ override_dh_install-arch:
 # Clean up tests, demos, and internal build tools
 	rm -f $(instroot)/bin/*test* $(instroot)/bin/seqdb_demo \
 	    $(instroot)/bin/datatool \
-	    $(instroot)/bin/project_tree_builder \
-	    $(instroot)/lib/ncbi-blast+/libtest_*.so
+	    $(instroot)/bin/project_tree_builder
+	for x in $(instroot)/bin/*; do \
+	    LD_LIBRARY_PATH=c++/BUILD/lib ldd $$x; \
+	done 2>/dev/null | awk '/BUILD/ { print $$3 }' | sort -u | \
+	xargs cp -v -t $(instroot)/lib/ncbi-blast+
 
 override_dh_install-indep:
 	if test -d $(leg_bin); then cp debian/legacy/legacy.sh $(leg_bin)/; fi

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



More information about the debian-med-commit mailing list