1 |
commit: 7f0de70518fc3643b7d2f8309b216d2ef5227bde |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 29 02:10:01 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 29 04:17:54 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f0de705 |
7 |
|
8 |
mail-filter/dcc: fix configure with clang16 |
9 |
|
10 |
Doesn't look like will get to use eautoreconf here. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/870646 |
13 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
14 |
|
15 |
mail-filter/dcc/dcc-1.3.158-r2.ebuild | 1 + |
16 |
mail-filter/dcc/files/dcc-1.3.158-clang16.patch | 30 +++++++++++++++++++++++++ |
17 |
2 files changed, 31 insertions(+) |
18 |
|
19 |
diff --git a/mail-filter/dcc/dcc-1.3.158-r2.ebuild b/mail-filter/dcc/dcc-1.3.158-r2.ebuild |
20 |
index 7a01e900a63e..7aac567ecd12 100644 |
21 |
--- a/mail-filter/dcc/dcc-1.3.158-r2.ebuild |
22 |
+++ b/mail-filter/dcc/dcc-1.3.158-r2.ebuild |
23 |
@@ -35,6 +35,7 @@ dcc_rundir=var/run/dcc |
24 |
PATCHES=( |
25 |
"${FILESDIR}"/${PN}-1.3.140-freebsd.patch |
26 |
"${FILESDIR}"/${P}-fno-common.patch |
27 |
+ "${FILESDIR}"/${P}-clang16.patch |
28 |
) |
29 |
|
30 |
src_configure() { |
31 |
|
32 |
diff --git a/mail-filter/dcc/files/dcc-1.3.158-clang16.patch b/mail-filter/dcc/files/dcc-1.3.158-clang16.patch |
33 |
new file mode 100644 |
34 |
index 000000000000..adf518944408 |
35 |
--- /dev/null |
36 |
+++ b/mail-filter/dcc/files/dcc-1.3.158-clang16.patch |
37 |
@@ -0,0 +1,30 @@ |
38 |
+configure.ac is missing, so need to edit this manually |
39 |
+ |
40 |
+https://bugs.gentoo.org/870646 |
41 |
+--- a/configure |
42 |
++++ b/configure |
43 |
+@@ -796,3 +796,3 @@ |
44 |
+ |
45 |
+-main(){return(0);} |
46 |
++int main(void){return(0);} |
47 |
+ EOF |
48 |
+@@ -1100,3 +1100,3 @@ |
49 |
+ #include "confdefs.h" |
50 |
+-main() |
51 |
++int main(void) |
52 |
+ {exit(sizeof(void*)==8 ? 0 : sizeof(void*));} |
53 |
+@@ -1463,3 +1463,3 @@ |
54 |
+ #include <sys/types.h> |
55 |
+-main() |
56 |
++int main(void) |
57 |
+ { |
58 |
+@@ -3330,3 +3330,3 @@ |
59 |
+ #define min(a,b) ((a) < (b) ? (a) : (b)) |
60 |
+-main() |
61 |
++int main(void) |
62 |
+ { |
63 |
+@@ -3596,3 +3596,3 @@ |
64 |
+ #include "include/dcc_paths.h" |
65 |
+-main() |
66 |
++int main(void) |
67 |
+ { |