summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-12-01 13:25:31 +0100
committerHans de Graaff <graaff@gentoo.org>2023-12-01 13:26:33 +0100
commit132cdde44707185d0aa87107e6e8904803d38b8b (patch)
treee008aec574eb2b4b86f80e05f9e478b891752d6c /dev-libs
parentmedia-gfx/pqiv: Stabilize 2.12 amd64, #918949 (diff)
downloadgentoo-132cdde44707185d0aa87107e6e8904803d38b8b.tar.gz
gentoo-132cdde44707185d0aa87107e6e8904803d38b8b.tar.bz2
gentoo-132cdde44707185d0aa87107e6e8904803d38b8b.zip
dev-libs/apr-util: fix configure for strict C99 compilers
Closes: https://bugs.gentoo.org/918938 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/apr-util/apr-util-1.6.3.ebuild1
-rw-r--r--dev-libs/apr-util/files/apr-util-1.6.3-configure-int.patch28
2 files changed, 29 insertions, 0 deletions
diff --git a/dev-libs/apr-util/apr-util-1.6.3.ebuild b/dev-libs/apr-util/apr-util-1.6.3.ebuild
index a89798ba780f..3645b9fdae6b 100644
--- a/dev-libs/apr-util/apr-util-1.6.3.ebuild
+++ b/dev-libs/apr-util/apr-util-1.6.3.ebuild
@@ -51,6 +51,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-1.6.1-my_bool.patch
"${FILESDIR}"/${PN}-1.6.1-drop-my_init.patch
"${FILESDIR}"/${PN}-1.6.3-fix-pkgconfig-libs.patch
+ "${FILESDIR}"/${PN}-1.6.3-configure-int.patch
)
src_prepare() {
diff --git a/dev-libs/apr-util/files/apr-util-1.6.3-configure-int.patch b/dev-libs/apr-util/files/apr-util-1.6.3-configure-int.patch
new file mode 100644
index 000000000000..fd394adbe309
--- /dev/null
+++ b/dev-libs/apr-util/files/apr-util-1.6.3-configure-int.patch
@@ -0,0 +1,28 @@
+commit 4286faefa6fe9ee83e30bacd4e4c498981ac92b7
+Author: jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>
+Date: Fri Feb 3 16:36:17 2023 +0000
+
+ Merge r1906347 from trunk:
+
+ Fix configure for compilers which don't accept implicit
+ int (no longer part of C since C99).
+
+ Submitted by: Florian Weimer <fweimer redhat.com>
+ PR: 66396
+
+
+ git-svn-id: https://svn.apache.org/repos/asf/apr/apr-util/branches/1.6.x@1907246 13f79535-47bb-0310-9956-ffa450edef68
+
+diff --git a/build/dbm.m4 b/build/dbm.m4
+index 57bd131..e8c51b5 100644
+--- a/build/dbm.m4
++++ b/build/dbm.m4
+@@ -235,7 +235,7 @@ AC_DEFUN([APU_TRY_BERKELEY_DB],
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <$apu_try_berkeley_db_header>
+-main ()
++int main (void)
+ {
+ int major, minor, patch;
+