1 |
commit: 23139790af0807c7a92d0861e4601f02dd2ee808 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 1 15:59:12 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 1 16:25:43 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23139790 |
7 |
|
8 |
media-gfx/sam2p: fix configure with clang |
9 |
|
10 |
Closes: https://bugs.gentoo.org/827925 |
11 |
Thanks-to: <nvinson234 <AT> gmail.com> |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
.../sam2p-0.49.4_p20190718-fix-configure-clang.patch | 15 +++++++++++++++ |
15 |
media-gfx/sam2p/sam2p-0.49.4_p20190718-r1.ebuild | 7 +++++-- |
16 |
2 files changed, 20 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/media-gfx/sam2p/files/sam2p-0.49.4_p20190718-fix-configure-clang.patch b/media-gfx/sam2p/files/sam2p-0.49.4_p20190718-fix-configure-clang.patch |
19 |
new file mode 100644 |
20 |
index 000000000000..0d8e769e903d |
21 |
--- /dev/null |
22 |
+++ b/media-gfx/sam2p/files/sam2p-0.49.4_p20190718-fix-configure-clang.patch |
23 |
@@ -0,0 +1,15 @@ |
24 |
+https://bugs.gentoo.org/827925 |
25 |
+--- a/configure.in |
26 |
++++ b/configure.in |
27 |
+@@ -79,11 +79,11 @@ else |
28 |
+ fi |
29 |
+ |
30 |
+ dnl Checks for programs. |
31 |
+ dnl AC_PROG_CC |
32 |
+ AC_LANG_CPLUSPLUS |
33 |
+-CXXFLAGS=" " |
34 |
++CXXFLAGS="-fPIC" |
35 |
+ dnl ^^^ set it to non-empty, so AC_PROG_CXX won't include `-g' |
36 |
+ CCC="$CCC g++" |
37 |
+ dnl ^^^ check g++ before c++ (see acspecific.m4, grep AC_PROG_CXX) |
38 |
+ AC_PROG_CXX |
39 |
|
40 |
diff --git a/media-gfx/sam2p/sam2p-0.49.4_p20190718-r1.ebuild b/media-gfx/sam2p/sam2p-0.49.4_p20190718-r1.ebuild |
41 |
index 43f217aba10d..3adddb11fdbc 100644 |
42 |
--- a/media-gfx/sam2p/sam2p-0.49.4_p20190718-r1.ebuild |
43 |
+++ b/media-gfx/sam2p/sam2p-0.49.4_p20190718-r1.ebuild |
44 |
@@ -21,7 +21,10 @@ BDEPEND="dev-lang/perl" |
45 |
|
46 |
S="${WORKDIR}/${PN}-${COMMIT}" |
47 |
|
48 |
-PATCHES=( "${FILESDIR}"/${PN}-build-fixes.patch ) |
49 |
+PATCHES=( |
50 |
+ "${FILESDIR}"/${PN}-build-fixes.patch |
51 |
+ "${FILESDIR}"/${PN}-0.49.4_p20190718-fix-configure-clang.patch |
52 |
+) |
53 |
|
54 |
src_prepare() { |
55 |
default |
56 |
@@ -30,7 +33,7 @@ src_prepare() { |
57 |
mv configure.{in,ac} || die |
58 |
|
59 |
# missing include for memset |
60 |
- sed -i '1s;^;#include <string.h>\n;' pts_defl.c |
61 |
+ sed -i '1s;^;#include <string.h>\n;' pts_defl.c || die |
62 |
|
63 |
# eautoreconf is still needed or you get bad warnings |
64 |
eautoreconf |