[clblas] 05/07: d/p: add patch fixing missing pthread linkage

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Aug 4 15:35:43 UTC 2015


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

ghisvail-guest pushed a commit to branch debian/sid
in repository clblas.

commit a71e799a6c5060e3cef517aac6d70e09eddfd53e
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Thu Jul 30 18:28:14 2015 +0100

    d/p: add patch fixing missing pthread linkage
---
 debian/changelog                         |  3 ++-
 debian/patches/fix-pthread-linkage.patch | 18 ++++++++++++++++++
 debian/patches/series                    |  4 ++++
 3 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 11af3a9..af02c79 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 clblas (2.6-1) UNRELEASED; urgency=medium
 
-  * 
+  * New upstream release.
+  * d/patches: add patch fixing missing linkage with pthread. 
 
  -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Thu, 30 Jul 2015 17:29:37 +0100
 
diff --git a/debian/patches/fix-pthread-linkage.patch b/debian/patches/fix-pthread-linkage.patch
new file mode 100644
index 0000000..9b80c36
--- /dev/null
+++ b/debian/patches/fix-pthread-linkage.patch
@@ -0,0 +1,18 @@
+Description: fix missing linkage with pthread
+Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Forwarded: no 
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/src/library/CMakeLists.txt
++++ b/src/library/CMakeLists.txt
+@@ -490,6 +490,10 @@
+ set_target_properties( clBLAS PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/staging" )
+ target_link_libraries(clBLAS ${OPENCL_LIBRARIES} ${MATH_LIBRARY})
+ 
++set(THREADS_PREFER_PTHREAD_FLAG ON)
++find_package(Threads REQUIRED)
++target_link_libraries(clBLAS ${CMAKE_THREAD_LIBS_INIT})
++
+ # CPack configuration; include the executable into the package
+ install( TARGETS clBLAS
+          EXPORT Library
diff --git a/debian/patches/series b/debian/patches/series
index 05c4cc3..88e1bbb 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,7 @@
 fix-doxygen-settings.patch
 debian-enable-multiarch.patch
 disable-multilib-cflags.patch
+fix-pthread-linkage.patch
+fix-docs-output.patch
+use-system-mathjax.patch
+reproducible-build.patch

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



More information about the debian-science-commits mailing list