summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-09-28 22:10:01 -0400
committerIonen Wolkens <ionen@gentoo.org>2022-09-29 00:17:54 -0400
commit7f0de70518fc3643b7d2f8309b216d2ef5227bde (patch)
tree454b80c6a8d8477763ebd45faa43c7c5e871295b /mail-filter/dcc
parentwww-apache/pwauth: fix build with clang (diff)
downloadgentoo-7f0de70518fc3643b7d2f8309b216d2ef5227bde.tar.gz
gentoo-7f0de70518fc3643b7d2f8309b216d2ef5227bde.tar.bz2
gentoo-7f0de70518fc3643b7d2f8309b216d2ef5227bde.zip
mail-filter/dcc: fix configure with clang16
Doesn't look like will get to use eautoreconf here. Closes: https://bugs.gentoo.org/870646 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'mail-filter/dcc')
-rw-r--r--mail-filter/dcc/dcc-1.3.158-r2.ebuild1
-rw-r--r--mail-filter/dcc/files/dcc-1.3.158-clang16.patch30
2 files changed, 31 insertions, 0 deletions
diff --git a/mail-filter/dcc/dcc-1.3.158-r2.ebuild b/mail-filter/dcc/dcc-1.3.158-r2.ebuild
index 7a01e900a63e..7aac567ecd12 100644
--- a/mail-filter/dcc/dcc-1.3.158-r2.ebuild
+++ b/mail-filter/dcc/dcc-1.3.158-r2.ebuild
@@ -35,6 +35,7 @@ dcc_rundir=var/run/dcc
PATCHES=(
"${FILESDIR}"/${PN}-1.3.140-freebsd.patch
"${FILESDIR}"/${P}-fno-common.patch
+ "${FILESDIR}"/${P}-clang16.patch
)
src_configure() {
diff --git a/mail-filter/dcc/files/dcc-1.3.158-clang16.patch b/mail-filter/dcc/files/dcc-1.3.158-clang16.patch
new file mode 100644
index 000000000000..adf518944408
--- /dev/null
+++ b/mail-filter/dcc/files/dcc-1.3.158-clang16.patch
@@ -0,0 +1,30 @@
+configure.ac is missing, so need to edit this manually
+
+https://bugs.gentoo.org/870646
+--- a/configure
++++ b/configure
+@@ -796,3 +796,3 @@
+
+-main(){return(0);}
++int main(void){return(0);}
+ EOF
+@@ -1100,3 +1100,3 @@
+ #include "confdefs.h"
+-main()
++int main(void)
+ {exit(sizeof(void*)==8 ? 0 : sizeof(void*));}
+@@ -1463,3 +1463,3 @@
+ #include <sys/types.h>
+-main()
++int main(void)
+ {
+@@ -3330,3 +3330,3 @@
+ #define min(a,b) ((a) < (b) ? (a) : (b))
+-main()
++int main(void)
+ {
+@@ -3596,3 +3596,3 @@
+ #include "include/dcc_paths.h"
+-main()
++int main(void)
+ {