summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-09-16 22:15:11 +0100
committerSam James <sam@gentoo.org>2022-09-16 22:18:25 +0100
commiteb0a0dc8f6ae4d69b7cd25bde99fc490edb96617 (patch)
tree3dcb26d09bbdcb5c69a815781754e20fc83b238f /mail-filter
parentprofiles: remove ksh-2020 mask, package is gone (diff)
downloadgentoo-eb0a0dc8f6ae4d69b7cd25bde99fc490edb96617.tar.gz
gentoo-eb0a0dc8f6ae4d69b7cd25bde99fc490edb96617.tar.bz2
gentoo-eb0a0dc8f6ae4d69b7cd25bde99fc490edb96617.zip
mail-filter/gld: fix build with -Werror=strict-prototypes (Clang 15+)
No need for revbump this time, although often will with these fixes (implicit func. decls in particular, but not exclusively), as configure failed hard rather than wrong results. Closes: https://bugs.gentoo.org/870487 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/gld/files/gld-1.7-configure-strict-prototypes.patch12
-rw-r--r--mail-filter/gld/gld-1.7-r4.ebuild4
2 files changed, 16 insertions, 0 deletions
diff --git a/mail-filter/gld/files/gld-1.7-configure-strict-prototypes.patch b/mail-filter/gld/files/gld-1.7-configure-strict-prototypes.patch
new file mode 100644
index 000000000000..e0016336e307
--- /dev/null
+++ b/mail-filter/gld/files/gld-1.7-configure-strict-prototypes.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/870487
+--- a/configure
++++ b/configure
+@@ -719,7 +719,7 @@ cat > conftest.$ac_ext << EOF
+ #line 720 "configure"
+ #include "confdefs.h"
+
+-main(){return(0);}
++int main(){return(0);}
+ EOF
+ if { (eval echo configure:725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ ac_cv_prog_cc_works=yes
diff --git a/mail-filter/gld/gld-1.7-r4.ebuild b/mail-filter/gld/gld-1.7-r4.ebuild
index f5e55acbd877..fcebb96bfe7e 100644
--- a/mail-filter/gld/gld-1.7-r4.ebuild
+++ b/mail-filter/gld/gld-1.7-r4.ebuild
@@ -20,6 +20,10 @@ DEPEND="sys-libs/zlib
postgres? ( dev-db/postgresql:*[server] )"
RDEPEND="${DEPEND}"
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.7-configure-strict-prototypes.patch
+)
+
src_prepare() {
sed -i gld.conf \
-e 's:^LOOPBACKONLY=.*:LOOPBACKONLY=1:' \