1 |
commit: 48c0b0fc94c19694b7fe2a98fc90ffa38a7519c4 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 10 22:09:52 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 10 22:12:55 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48c0b0fc |
7 |
|
8 |
media-gfx/waifu2x-ncnn-vulkan: remove automatic lto check |
9 |
|
10 |
Closes: https://bugs.gentoo.org/830950 |
11 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
12 |
|
13 |
.../files/waifu2x-ncnn-vulkan-20210521-no-lto.patch | 18 ++++++++++++++++++ |
14 |
.../waifu2x-ncnn-vulkan-20210521.ebuild | 6 +++++- |
15 |
2 files changed, 23 insertions(+), 1 deletion(-) |
16 |
|
17 |
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 |
18 |
new file mode 100644 |
19 |
index 000000000000..301f6fca4276 |
20 |
--- /dev/null |
21 |
+++ b/media-gfx/waifu2x-ncnn-vulkan/files/waifu2x-ncnn-vulkan-20210521-no-lto.patch |
22 |
@@ -0,0 +1,18 @@ |
23 |
+Users should be the ones to choose to add -flto or not and how. The test |
24 |
+may also cause unnecessary noise wrt https://bugs.gentoo.org/830950 |
25 |
+--- a/src/CMakeLists.txt |
26 |
++++ b/src/CMakeLists.txt |
27 |
+@@ -42,13 +42,4 @@ |
28 |
+ |
29 |
+ # enable global link time optimization |
30 |
+-cmake_policy(SET CMP0069 NEW) |
31 |
+-set(CMAKE_POLICY_DEFAULT_CMP0069 NEW) |
32 |
+-include(CheckIPOSupported) |
33 |
+-check_ipo_supported(RESULT ipo_supported OUTPUT ipo_supported_output) |
34 |
+-if(ipo_supported) |
35 |
+- set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) |
36 |
+-else() |
37 |
+- message(WARNING "IPO is not supported: ${ipo_supported_output}") |
38 |
+-endif() |
39 |
+ |
40 |
+ if(USE_SYSTEM_NCNN) |
41 |
|
42 |
diff --git a/media-gfx/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20210521.ebuild b/media-gfx/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20210521.ebuild |
43 |
index 3079c5c096f0..cc5fc8bd42a0 100644 |
44 |
--- a/media-gfx/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20210521.ebuild |
45 |
+++ b/media-gfx/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20210521.ebuild |
46 |
@@ -1,4 +1,4 @@ |
47 |
-# Copyright 1999-2021 Gentoo Authors |
48 |
+# Copyright 1999-2022 Gentoo Authors |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
|
51 |
EAPI=7 |
52 |
@@ -23,6 +23,10 @@ DEPEND=" |
53 |
${RDEPEND} |
54 |
dev-util/vulkan-headers" |
55 |
|
56 |
+PATCHES=( |
57 |
+ "${FILESDIR}"/${PN}-20210521-no-lto.patch |
58 |
+) |
59 |
+ |
60 |
src_prepare() { |
61 |
CMAKE_USE_DIR="${S}/src" |
62 |
cmake_src_prepare |