1 |
commit: 9c7b2300d3e47284bbe33a18a20ae80ec5c334c1 |
2 |
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net> |
3 |
AuthorDate: Sat Jun 5 20:53:44 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 5 21:26:58 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c7b2300 |
7 |
|
8 |
dev-libs/gf2x: add missing includes |
9 |
|
10 |
Add include statement for MIN and MAX declarations |
11 |
|
12 |
Closes: https://bugs.gentoo.org/719982 |
13 |
Package-Manager: Portage-3.0.19, Repoman-3.0.3 |
14 |
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net> |
15 |
Closes: https://github.com/gentoo/gentoo/pull/21137 |
16 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
17 |
|
18 |
...t.c-add-include-statement-for-MIN-and-MAX.patch | 29 ++++++++++++++++++++++ |
19 |
dev-libs/gf2x/gf2x-1.3.0.ebuild | 7 ++++-- |
20 |
2 files changed, 34 insertions(+), 2 deletions(-) |
21 |
|
22 |
diff --git a/dev-libs/gf2x/files/gf2x-1.3.0-0001-src-tunefft.c-add-include-statement-for-MIN-and-MAX.patch b/dev-libs/gf2x/files/gf2x-1.3.0-0001-src-tunefft.c-add-include-statement-for-MIN-and-MAX.patch |
23 |
new file mode 100644 |
24 |
index 00000000000..cc1bd0f46a9 |
25 |
--- /dev/null |
26 |
+++ b/dev-libs/gf2x/files/gf2x-1.3.0-0001-src-tunefft.c-add-include-statement-for-MIN-and-MAX.patch |
27 |
@@ -0,0 +1,29 @@ |
28 |
+From 292b5784d907f420886e50d5683517b8fe1abe3c Mon Sep 17 00:00:00 2001 |
29 |
+From: Bernd Waibel <waebbl-gentoo@××××××.net> |
30 |
+Date: Sat, 5 Jun 2021 18:29:08 +0200 |
31 |
+Subject: [PATCH] src/tunefft.c: add include statement for MIN and MAX |
32 |
+ |
33 |
+Add #include <sys/param.h> to have MIN and MAX available |
34 |
+for next_step function. |
35 |
+ |
36 |
+Bug: https://bugs.gentoo.org/719982 |
37 |
+Signed-off-by: Bernd Waibel <waebbl-gentoo@××××××.net> |
38 |
+--- |
39 |
+ src/tunefft.c | 1 + |
40 |
+ 1 file changed, 1 insertion(+) |
41 |
+ |
42 |
+diff --git a/src/tunefft.c b/src/tunefft.c |
43 |
+index a08d82a..f5abc82 100644 |
44 |
+--- a/src/tunefft.c |
45 |
++++ b/src/tunefft.c |
46 |
+@@ -65,6 +65,7 @@ |
47 |
+ #include <float.h> /* for DBL_MAX */ |
48 |
+ #include <time.h> |
49 |
+ #include <sys/utsname.h> /* for uname */ |
50 |
++#include <sys/param.h> /* for MIN, MAX */ |
51 |
+ #include "gf2x.h" |
52 |
+ #include "gf2x/gf2x-impl.h" |
53 |
+ #include "timing.h" |
54 |
+-- |
55 |
+2.31.1 |
56 |
+ |
57 |
|
58 |
diff --git a/dev-libs/gf2x/gf2x-1.3.0.ebuild b/dev-libs/gf2x/gf2x-1.3.0.ebuild |
59 |
index 0ff8c7a7a42..d879f80de12 100644 |
60 |
--- a/dev-libs/gf2x/gf2x-1.3.0.ebuild |
61 |
+++ b/dev-libs/gf2x/gf2x-1.3.0.ebuild |
62 |
@@ -1,4 +1,4 @@ |
63 |
-# Copyright 1999-2020 Gentoo Authors |
64 |
+# Copyright 1999-2021 Gentoo Authors |
65 |
# Distributed under the terms of the GNU General Public License v2 |
66 |
|
67 |
EAPI=7 |
68 |
@@ -17,7 +17,10 @@ IUSE="fft static-libs custom-tune" |
69 |
IUSE_CPU_FLAGS=" pclmul sse2 sse3 sse4_1 ssse3" |
70 |
IUSE+=" ${IUSE_CPU_FLAGS// / cpu_flags_x86_}" |
71 |
|
72 |
-PATCHES=( "${FILESDIR}/fno-common.patch" ) |
73 |
+PATCHES=( |
74 |
+ "${FILESDIR}/fno-common.patch" |
75 |
+ "${FILESDIR}/${P}-0001-src-tunefft.c-add-include-statement-for-MIN-and-MAX.patch" |
76 |
+) |
77 |
|
78 |
src_prepare() { |
79 |
default |