diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2023-05-07 10:10:58 +0200 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2023-05-07 10:12:47 +0200 |
commit | c78ecbd3fdf9b33e307023baf0de12c4448dd283 (patch) | |
tree | 507693a1428c830a85f949ea78539c4ab207b1ec /sci-libs | |
parent | dev-db/libzdb: add 3.2.3, drop 3.1-r1 (diff) | |
download | gentoo-c78ecbd3fdf9b33e307023baf0de12c4448dd283.tar.gz gentoo-c78ecbd3fdf9b33e307023baf0de12c4448dd283.tar.bz2 gentoo-c78ecbd3fdf9b33e307023baf0de12c4448dd283.zip |
sci-libs/metis: ensure GKlib is marked as NEEDED
Closes: https://bugs.gentoo.org/905822
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/metis/files/metis-5.2.1-add-gklib-as-required.patch | 15 | ||||
-rw-r--r-- | sci-libs/metis/metis-5.2.1-r2.ebuild (renamed from sci-libs/metis/metis-5.2.1-r1.ebuild) | 2 |
2 files changed, 17 insertions, 0 deletions
diff --git a/sci-libs/metis/files/metis-5.2.1-add-gklib-as-required.patch b/sci-libs/metis/files/metis-5.2.1-add-gklib-as-required.patch new file mode 100644 index 000000000000..5fedf17b8051 --- /dev/null +++ b/sci-libs/metis/files/metis-5.2.1-add-gklib-as-required.patch @@ -0,0 +1,15 @@ +diff --git a/libmetis/CMakeLists.txt b/libmetis/CMakeLists.txt +index fc6cec6..758835f 100644 +--- a/libmetis/CMakeLists.txt ++++ b/libmetis/CMakeLists.txt +@@ -7,6 +7,10 @@ file(GLOB metis_sources *.c) + # Build libmetis. + add_library(metis ${METIS_LIBRARY_TYPE} ${metis_sources}) + ++if(SHARED) ++ target_link_libraries(metis GKlib) ++endif() ++ + if(METIS_INSTALL) + install(TARGETS metis + LIBRARY DESTINATION lib diff --git a/sci-libs/metis/metis-5.2.1-r1.ebuild b/sci-libs/metis/metis-5.2.1-r2.ebuild index 804862ce6017..593b9797c249 100644 --- a/sci-libs/metis/metis-5.2.1-r1.ebuild +++ b/sci-libs/metis/metis-5.2.1-r2.ebuild @@ -18,6 +18,8 @@ IUSE="double-precision examples int64 openmp" PATCHES=( "${FILESDIR}"/${P}-multilib.patch "${FILESDIR}"/${P}-respect-user-flags.patch + # https://github.com/KarypisLab/METIS/pull/52 Bug 905822 + "${FILESDIR}"/${P}-add-gklib-as-required.patch ) DEPEND="sci-libs/gklib" |