From acf7fbc1e59b1c0f35960af8bcb9c3edbc702cab Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 18 Aug 2022 10:32:14 +0200 Subject: extra/apr: fixed download location and uint64 probing --- extra/apr/PKGBUILD | 30 +++++++++++++++++++++- ...1.7.0-no-explicit-confdefs-uint64-probing.patch | 15 +++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 extra/apr/apr-1.7.0-no-explicit-confdefs-uint64-probing.patch (limited to 'extra/apr') diff --git a/extra/apr/PKGBUILD b/extra/apr/PKGBUILD index f11a97b8..6f7149dc 100644 --- a/extra/apr/PKGBUILD +++ b/extra/apr/PKGBUILD @@ -1,4 +1,32 @@ -# disable compiler atomics on u486 +# download location broken (FS#75636) +source[0]="https://dlcdn.apache.org/apr/apr-$pkgver.tar.bz2" +source[1]="https://dlcdn.apache.org/apr/apr-$pkgver.tar.bz2.asc" + +# uint64_t probing broken, see +# https://github.com/apache/apr/pull/25 +# https://github.com/apache/apr/commit/0a763c5e500f4304b7c534fae0fad430d64982e8?diff=unified +source+=('apr-1.7.0-no-explicit-confdefs-uint64-probing.patch') +sha256sums+=('bac28c5519081e3854a11e97ff4493719a98c140b17d9980f8ea8380cbb9bfa3') +eval "$( + { + declare -f prepare || \ + printf 'prepare() { cd "${pkgname}-${pkgver}"\n}\n' + } \ + | sed ' + /buildconf/ i patch -Rp1 -i "../apr-1.7.0-no-explicit-confdefs-uint64-probing.patch" + ' +)" + +# i486-specific, missing atomics +if [ "${CARCH}" = "i486" ]; then + eval "$( + declare -f build | \ + sed ' + s|./configure |LDFLAGS="-latomic" ./configure |g + '; + )" +fi + if [ "${CARCH}" = "i486" ]; then eval "$( declare -f build | \ diff --git a/extra/apr/apr-1.7.0-no-explicit-confdefs-uint64-probing.patch b/extra/apr/apr-1.7.0-no-explicit-confdefs-uint64-probing.patch new file mode 100644 index 00000000..a50e9fed --- /dev/null +++ b/extra/apr/apr-1.7.0-no-explicit-confdefs-uint64-probing.patch @@ -0,0 +1,15 @@ +diff -rauN apr-1.7.0/build/apr_common.m4 apr-1.7.0-no-explicit-confdefs-uint64-probing-patch/build/apr_common.m4 +--- apr-1.7.0/build/apr_common.m4 2022-08-18 09:25:07.178587001 +0200 ++++ apr-1.7.0-no-explicit-confdefs-uint64-probing-patch/build/apr_common.m4 2022-08-18 09:19:29.618091904 +0200 +@@ -505,10 +505,7 @@ + fi + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( +- [ +-#ifndef PACKAGE_NAME +-#include "confdefs.h" +-#endif ++ [#include "confdefs.h" + ] + [[$1]] + [int main(int argc, const char *const *argv) {] -- cgit v1.2.3-70-g09d2