summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-01-10 17:09:52 -0500
committerIonen Wolkens <ionen@gentoo.org>2022-01-10 17:12:55 -0500
commit48c0b0fc94c19694b7fe2a98fc90ffa38a7519c4 (patch)
tree050ed95a413e8550ce34ddb4f0481a458dcc7ab1 /media-gfx/waifu2x-ncnn-vulkan
parentdev-libs/libgusb: Version bump to 0.3.10 (diff)
downloadgentoo-48c0b0fc94c19694b7fe2a98fc90ffa38a7519c4.tar.gz
gentoo-48c0b0fc94c19694b7fe2a98fc90ffa38a7519c4.tar.bz2
gentoo-48c0b0fc94c19694b7fe2a98fc90ffa38a7519c4.zip
media-gfx/waifu2x-ncnn-vulkan: remove automatic lto check
Closes: https://bugs.gentoo.org/830950 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'media-gfx/waifu2x-ncnn-vulkan')
-rw-r--r--media-gfx/waifu2x-ncnn-vulkan/files/waifu2x-ncnn-vulkan-20210521-no-lto.patch18
-rw-r--r--media-gfx/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20210521.ebuild6
2 files changed, 23 insertions, 1 deletions
diff --git a/media-gfx/waifu2x-ncnn-vulkan/files/waifu2x-ncnn-vulkan-20210521-no-lto.patch b/media-gfx/waifu2x-ncnn-vulkan/files/waifu2x-ncnn-vulkan-20210521-no-lto.patch
new file mode 100644
index 000000000000..301f6fca4276
--- /dev/null
+++ b/media-gfx/waifu2x-ncnn-vulkan/files/waifu2x-ncnn-vulkan-20210521-no-lto.patch
@@ -0,0 +1,18 @@
+Users should be the ones to choose to add -flto or not and how. The test
+may also cause unnecessary noise wrt https://bugs.gentoo.org/830950
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -42,13 +42,4 @@
+
+ # enable global link time optimization
+-cmake_policy(SET CMP0069 NEW)
+-set(CMAKE_POLICY_DEFAULT_CMP0069 NEW)
+-include(CheckIPOSupported)
+-check_ipo_supported(RESULT ipo_supported OUTPUT ipo_supported_output)
+-if(ipo_supported)
+- set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
+-else()
+- message(WARNING "IPO is not supported: ${ipo_supported_output}")
+-endif()
+
+ if(USE_SYSTEM_NCNN)
diff --git a/media-gfx/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20210521.ebuild b/media-gfx/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20210521.ebuild
index 3079c5c096f0..cc5fc8bd42a0 100644
--- a/media-gfx/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20210521.ebuild
+++ b/media-gfx/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20210521.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -23,6 +23,10 @@ DEPEND="
${RDEPEND}
dev-util/vulkan-headers"
+PATCHES=(
+ "${FILESDIR}"/${PN}-20210521-no-lto.patch
+)
+
src_prepare() {
CMAKE_USE_DIR="${S}/src"
cmake_src_prepare