summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-09-07 14:36:11 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2021-09-07 14:52:28 +0200
commit0dbe576f6001ea47c6062c4208c21361cd8add32 (patch)
tree6d1bc88ea3e90c6816b8eb36ea3ac8f5bb40e029 /sci-visualization
parentsci-visualization/kst: Fix build w/ >=dev-util/cmake-3.20 (diff)
downloadgentoo-0dbe576f6001ea47c6062c4208c21361cd8add32.tar.gz
gentoo-0dbe576f6001ea47c6062c4208c21361cd8add32.tar.bz2
gentoo-0dbe576f6001ea47c6062c4208c21361cd8add32.zip
sci-visualization/kst: Fix FindGetdata.cmake
Closes: https://bugs.gentoo.org/593848 Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'sci-visualization')
-rw-r--r--sci-visualization/kst/files/kst-2.0.8-getdata-drop-bogus-lib_debug.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/sci-visualization/kst/files/kst-2.0.8-getdata-drop-bogus-lib_debug.patch b/sci-visualization/kst/files/kst-2.0.8-getdata-drop-bogus-lib_debug.patch
new file mode 100644
index 000000000000..07baa1a32ab1
--- /dev/null
+++ b/sci-visualization/kst/files/kst-2.0.8-getdata-drop-bogus-lib_debug.patch
@@ -0,0 +1,23 @@
+--- a/cmake/modules/FindGetdata.cmake 2014-02-13 10:41:44.000000000 +0100
++++ b/cmake/modules/FindGetdata.cmake 2021-09-07 14:32:16.248930734 +0200
+@@ -49,19 +49,9 @@
+ PATHS ${kst_3rdparty_dir} ${PKGGETDATA_LIBRARY_DIRS})
+ list(APPEND GETDATA_LIBRARIES_RELEASE ${lib_release})
+ list(APPEND GETDATA_LIBRARIES_BOTH optimized ${lib_release})
+- set(lib_debug lib_debug-NOTFOUND CACHE STRING "" FORCE)
+- FIND_LIBRARY(lib_debug ${it}d
+- HINTS ENV GETDATA_DIR PATH_SUFFIXES lib
+- PATHS ${kst_3rdparty_dir} ${PKGGETDATA_LIBRARY_DIRS})
+- list(APPEND GETDATA_LIBRARIES_DEBUG ${lib_debug})
+- list(APPEND GETDATA_LIBRARIES_BOTH debug ${lib_debug})
+ endforeach()
+
+-if(GETDATA_LIBRARIES_DEBUG AND GETDATA_LIBRARIES_RELEASE)
+- set(GETDATA_LIBRARIES ${GETDATA_LIBRARIES_BOTH} CACHE STRING "" FORCE)
+-else()
+- set(GETDATA_LIBRARIES ${GETDATA_LIBRARIES_RELEASE} CACHE STRING "" FORCE)
+-endif()
++set(GETDATA_LIBRARIES ${GETDATA_LIBRARIES_RELEASE} CACHE STRING "" FORCE)
+
+ endif()
+