[med-svn] [lambda-align] 01/01: enforce linking of -lrt and -lpthread

Sascha Steinbiss satta at debian.org
Sun Oct 9 15:15:10 UTC 2016


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

satta pushed a commit to branch master
in repository lambda-align.

commit bd76177722b0e847bcb3afe715fa0f2338766dde
Author: Sascha Steinbiss <satta at debian.org>
Date:   Sun Oct 9 15:06:20 2016 +0000

    enforce linking of -lrt and -lpthread
---
 debian/changelog                           |  3 +++
 debian/patches/force-link-rt-pthread.patch | 17 +++++++++++++++++
 debian/patches/series                      |  1 +
 3 files changed, 21 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 670ec44..9913550 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,9 @@ lambda-align (1.0.0-2) UNRELEASED; urgency=medium
   * Make build reproducible.
     Thanks to Chris Lamb for the patch.
     Closes: #840156
+  * Force linking of librt and libpthread as a workaround until
+    #840030 gets fixed in libseqan2-dev.
+    This fixes builds on kFreeBSD, thanks to Aaron M. Ucko.
 
  -- Sascha Steinbiss <satta at debian.org>  Sun, 09 Oct 2016 10:35:38 +0000
 
diff --git a/debian/patches/force-link-rt-pthread.patch b/debian/patches/force-link-rt-pthread.patch
new file mode 100644
index 0000000..e941b96
--- /dev/null
+++ b/debian/patches/force-link-rt-pthread.patch
@@ -0,0 +1,17 @@
+Description: enforce linking of -lrt -lpthread
+ This patch makes sure that these get linked even though they might
+ be missing in $SEQAN_LIBRARIES (until this is fixed in libseqan2-dev).
+Author: Sascha Steinbiss <satta at debian.org>
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -204,8 +204,8 @@
+                 radix_inplace.h)
+ 
+ # Add dependencies found by find_package (SeqAn).
+-target_link_libraries (lambda ${SEQAN_LIBRARIES})
+-target_link_libraries (lambda_indexer ${SEQAN_LIBRARIES})
++target_link_libraries (lambda ${SEQAN_LIBRARIES} rt pthread)
++target_link_libraries (lambda_indexer ${SEQAN_LIBRARIES} rt pthread)
+ 
+ # Add CXX flags found by find_package (SeqAn).
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SEQAN_CXX_FLAGS}")
diff --git a/debian/patches/series b/debian/patches/series
index f232c0f..e8e5e53 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 cmake-seqan-modules.patch
 do-not-install-separate-license-files.patch
 fix-documentation.patch
+force-link-rt-pthread.patch

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



More information about the debian-med-commit mailing list