]> code.ossystems Code Review - openembedded-core.git/commitdiff
apr: Fix to work with autoconf 2.70
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 28 Jan 2021 21:55:57 +0000 (21:55 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 7 Feb 2021 22:26:38 +0000 (22:26 +0000)
Fix an issue with autoconf 2.70 where duplicate macro includes
caused configure failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@arm.com>
meta/recipes-support/apr/apr/autoconf270.patch [new file with mode: 0644]
meta/recipes-support/apr/apr_1.7.0.bb

diff --git a/meta/recipes-support/apr/apr/autoconf270.patch b/meta/recipes-support/apr/apr/autoconf270.patch
new file mode 100644 (file)
index 0000000..9f7b5c6
--- /dev/null
@@ -0,0 +1,22 @@
+With autoconf 2.70 confdefs.h is already included. Including it twice generates
+compiler warnings and since this macros is to error on warnings, it breaks.
+
+Fix by not including the file.
+
+Upstream-Status: Pending
+RP - 2021/1/28
+
+Index: apr-1.7.0/build/apr_common.m4
+===================================================================
+--- apr-1.7.0.orig/build/apr_common.m4
++++ apr-1.7.0/build/apr_common.m4
+@@ -505,8 +505,7 @@ AC_DEFUN([APR_TRY_COMPILE_NO_WARNING],
+  fi
+  AC_COMPILE_IFELSE(
+   [AC_LANG_SOURCE(
+-   [#include "confdefs.h"
+-   ]
++   []
+    [[$1]]
+    [int main(int argc, const char *const *argv) {]
+    [[$2]]
index c9b9bf0f50bea92035fb8ae4a9787153d4f3a1dd..f879e2864a7ca2483758d8b6840b9b0db8d1a735 100644 (file)
@@ -23,6 +23,7 @@ SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.bz2 \
            file://0007-explicitly-link-libapr-against-phtread-to-make-gold-.patch \
            file://libtoolize_check.patch \
            file://0001-Add-option-to-disable-timed-dependant-tests.patch \
+           file://autoconf270.patch \
            "
 
 SRC_URI[md5sum] = "7a14a83d664e87599ea25ff4432e48a7"