From 90d6461a7c99c1e777793a766cde424089b844e6 Mon Sep 17 00:00:00 2001 From: Klara Modin Date: Wed, 1 Feb 2023 15:25:33 +0100 Subject: [PATCH] apr-util: update to 1.6.3 failed to download distfiles when revbumping - update mirror - remove upstreamed patch - switch to vsed - use wrapperdir for libtool to enable overriding CC --- srcpkgs/apr-util/patches/mysql.patch | 15 ------------- srcpkgs/apr-util/template | 33 ++++++++++++++++------------ 2 files changed, 19 insertions(+), 29 deletions(-) delete mode 100644 srcpkgs/apr-util/patches/mysql.patch diff --git a/srcpkgs/apr-util/patches/mysql.patch b/srcpkgs/apr-util/patches/mysql.patch deleted file mode 100644 index bf1792ed6ebb..000000000000 --- a/srcpkgs/apr-util/patches/mysql.patch +++ /dev/null @@ -1,15 +0,0 @@ -fixes: https://github.com/void-linux/void-packages/issues/39510 -taken from upstream: https://svn.apache.org/viewvc/apr/apr/trunk/dbd/apr_dbd_mysql.c?r1=1872059&r2=1872060&diff_format=h - ---- a/dbd/apr_dbd_mysql.c -+++ b/dbd/apr_dbd_mysql.c -@@ -1262,7 +1262,9 @@ - - static void dbd_mysql_init(apr_pool_t *pool) - { -+#if MYSQL_VERSION_ID < 100000 - my_init(); -+#endif - mysql_thread_init(); - - /* FIXME: this is a guess; find out what it really does */ diff --git a/srcpkgs/apr-util/template b/srcpkgs/apr-util/template index f1cd4363365a..f527d68aa6d4 100644 --- a/srcpkgs/apr-util/template +++ b/srcpkgs/apr-util/template @@ -1,7 +1,7 @@ # Template file for 'apr-util' pkgname=apr-util -version=1.6.1 -revision=13 +version=1.6.3 +revision=1 build_style=gnu-configure configure_args=" --with-pgsql --with-ldap @@ -17,8 +17,8 @@ short_desc="Apache Portable Runtime Utility Library" maintainer="Orphaned " license="Apache-2.0" homepage="https://apr.apache.org/" -distfiles="https://www.apache.org/dist/apr/${pkgname}-${version}.tar.bz2" -checksum=d3e12f7b6ad12687572a3a39475545a072608f4ba03a6ce8a3778f607dd0035b +distfiles="https://downloads.apache.org/apr/${pkgname}-${version}.tar.bz2" +checksum=a41076e3710746326c3945042994ad9a4fcac0ce0277dd8fea076fec3c9772b5 # fails to build tests make_check=no @@ -28,7 +28,7 @@ if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then fi pre_configure() { - sed -i configure \ + vsed -i configure \ -e "s;^\( APR_BUILD_DIR=\).*$;\1${XBPS_CROSS_BASE}/usr/share/apr-1/build;" if [ "$CROSS_BUILD" ]; then configure_args+=" --with-apr=${XBPS_WRAPPERDIR}/apr-1-config" @@ -39,15 +39,20 @@ pre_configure() { post_configure() { # Hacks to make cross compiling work - sed -i build/rules.mk \ - -e "s;\(apr_builddir=\)\(/usr/share/apr-1\);\1${XBPS_CROSS_BASE}\2;" \ - -e "s;\(apr_builders=\)\(/usr/share/apr-1\);\1${XBPS_CROSS_BASE}\2;" \ - -e "s;--mode=link;& --tag=CC;g" \ - -e "s;--mode=compile;& --tag=CC;g" \ - -e "s;^INTERNAL_CPPFLAGS.*;& -I${XBPS_CROSS_BASE}/usr/include/apr-1;" \ - -e "s;\$(apr_builddir)/libtool;${XBPS_CROSS_BASE}/usr/bin/libtool;" \ - -e '/^LINK /s;$(COMPILE);$(CC);' - + if [ "$CROSS_BUILD" ]; then + vsed -i build/rules.mk \ + -e "/^LIBTOOL=/s;(apr_builddir);{XBPS_WRAPPERDIR};" \ + -e "s;\(apr_builddir=\)\(/usr/share/apr-1\);\1${XBPS_CROSS_BASE}\2;" \ + -e "s;\(apr_builders=\)\(/usr/share/apr-1\);\1${XBPS_CROSS_BASE}\2;" \ + -e "s;--mode=link;& --tag=CC;g" \ + -e "s;--mode=compile;& --tag=CC;g" \ + -e "s;^INTERNAL_CPPFLAGS.*;& -I${XBPS_CROSS_BASE}/usr/include/apr-1;" \ + -e '/^LINK /s;$(COMPILE);$(CC);' + # Allow environment to override CC, otherwise the host linker is used + sed ${XBPS_CROSS_BASE}/usr/bin/libtool \ + -e 's;^\(CC\)="\(.\+\)"$;\1="${\1:=\2}";g' \ + > ${XBPS_WRAPPERDIR}/libtool + fi } post_install() {