[Debichem-devel] Bug#925261: mpqc3: link against shared libpapi
Andreas Beckmann
anbe at debian.org
Thu Mar 21 21:46:44 GMT 2019
Source: mpqc3
Version: 0.0~git20170114-4.1
Severity: important
Tags: patch
Hi,
while rebuilding all reverse build depends of papi with the latest papi
version, I noticed that mpqc3 statically links against papi.
The attached patch fixes that.
I also noticed that the mpqc3 binary package depends on
mpi-default-bin
libmpich12
which looks inconsistent, but I didn't investigate further.
Andreas
-------------- next part --------------
diff -Nru mpqc3-0.0~git20170114/debian/changelog mpqc3-0.0~git20170114/debian/changelog
--- mpqc3-0.0~git20170114/debian/changelog 2018-12-01 08:45:19.000000000 +0100
+++ mpqc3-0.0~git20170114/debian/changelog 2019-03-21 21:24:56.000000000 +0100
@@ -1,3 +1,10 @@
+mpqc3 (0.0~git20170114-4.2) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Link against the shared libpapi.
+
+ -- Andreas Beckmann <anbe at debian.org> Thu, 21 Mar 2019 21:24:56 +0100
+
mpqc3 (0.0~git20170114-4.1) unstable; urgency=low
* Non-maintainer upload.
diff -Nru mpqc3-0.0~git20170114/debian/patches/link_against_shared_libpapi.patch mpqc3-0.0~git20170114/debian/patches/link_against_shared_libpapi.patch
--- mpqc3-0.0~git20170114/debian/patches/link_against_shared_libpapi.patch 1970-01-01 01:00:00.000000000 +0100
+++ mpqc3-0.0~git20170114/debian/patches/link_against_shared_libpapi.patch 2019-03-21 21:24:56.000000000 +0100
@@ -0,0 +1,15 @@
+Author: Andreas Beckmann <anbe at debian.org>
+Description: link against the shared libpapi
+
+--- a/cmake/modules/FindPAPI.cmake
++++ b/cmake/modules/FindPAPI.cmake
+@@ -22,8 +22,7 @@ find_path(PAPI_PREFIX
+ )
+
+ find_library(PAPI_LIBRARIES
+- # Pick the static library first for easier run-time linking.
+- NAMES libpapi.a papi
++ NAMES papi
+ HINTS ${PAPI_PREFIX}/lib ${HILTIDEPS}/lib
+ )
+
diff -Nru mpqc3-0.0~git20170114/debian/patches/series mpqc3-0.0~git20170114/debian/patches/series
--- mpqc3-0.0~git20170114/debian/patches/series 2017-01-20 09:21:11.000000000 +0100
+++ mpqc3-0.0~git20170114/debian/patches/series 2019-03-21 21:24:56.000000000 +0100
@@ -5,3 +5,4 @@
disable_problematic_tests.patch
fix_build_failure_with_eigen3_3.patch
fix_cmake_find_boost.patch
+link_against_shared_libpapi.patch
More information about the Debichem-devel
mailing list