summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2023-12-25 23:28:01 +0000
committerJames Le Cuirot <chewi@gentoo.org>2023-12-25 23:28:01 +0000
commite37b1ab4b48975628e7eab7791fd9e18417d3e77 (patch)
tree7aed4cf137ea6fb6edfdb2acfbf1358ca814bab5 /sci-libs
parentdev-libs/apache-arrow: drop 11.0.0-r2, 12.0.0, 12.0.1-r1 (diff)
downloadgentoo-e37b1ab4b48975628e7eab7791fd9e18417d3e77.tar.gz
gentoo-e37b1ab4b48975628e7eab7791fd9e18417d3e77.tar.bz2
gentoo-e37b1ab4b48975628e7eab7791fd9e18417d3e77.zip
sci-libs/kissfft: Forgot to commit the patch
No one noticed, right? ;) Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/kissfft/files/kissfft-131.1.0-cross.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/sci-libs/kissfft/files/kissfft-131.1.0-cross.patch b/sci-libs/kissfft/files/kissfft-131.1.0-cross.patch
new file mode 100644
index 000000000000..137a5a939872
--- /dev/null
+++ b/sci-libs/kissfft/files/kissfft-131.1.0-cross.patch
@@ -0,0 +1,30 @@
+From 8b308c28e5c3684ac002289b0eebc64500bbed1c Mon Sep 17 00:00:00 2001
+From: James Le Cuirot <chewi@gentoo.org>
+Date: Sun, 24 Dec 2023 16:37:38 +0000
+Subject: [PATCH] GNUInstallDirs is not supposed to be used conditionally
+
+Always include it to fix cross-compiling. This should not break Windows.
+
+Closes: https://github.com/mborgerding/kissfft/issues/65
+---
+ CMakeLists.txt | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 0213798..c4d7d3e 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -105,9 +105,7 @@ endif()
+ # Add GNUInstallDirs for GNU infrastructure before target)include_directories
+ #
+
+-if(CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU)$" AND NOT CMAKE_CROSSCOMPILING)
+- include(GNUInstallDirs)
+-endif()
++include(GNUInstallDirs)
+
+ #
+ # Declare PKGINCLUDEDIR for kissfft include path
+--
+2.43.0
+