Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions srcpkgs/apr-util/patches/fix-cross-libtool.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Taken from: https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-libs/apr-util/files/apr-util-1.6.1-libtool.patch

https://bugs.gentoo.org/779487

From: orbea <orbea@riseup.net>
Date: Sat, 18 Jun 2022 20:20:09 -0700
Subject: [PATCH] configure: Add missing LT_INIT

This fixes the build with rlibtool which requires the generated libtool
to determine if building shared or static libraries.

--- a/configure.in
+++ b/configure.in
@@ -8,6 +8,8 @@ AC_INIT(export_vars.sh.in)
AC_CONFIG_HEADER(include/private/apu_config.h)
AC_CONFIG_AUX_DIR(build)

+LT_INIT
+
sinclude(build/apu-conf.m4)
sinclude(build/apu-iconv.m4)
sinclude(build/apu-hints.m4)
15 changes: 0 additions & 15 deletions srcpkgs/apr-util/patches/mysql.patch

This file was deleted.

40 changes: 19 additions & 21 deletions srcpkgs/apr-util/template
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# 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
--with-pgsql --with-ldap --with-apr=${XBPS_CROSS_BASE}/usr
--with-expat=${XBPS_CROSS_BASE}/usr --with-gdbm=${XBPS_CROSS_BASE}/usr
--with-sqlite3=${XBPS_CROSS_BASE}/usr --with-mysql=${XBPS_CROSS_BASE}/usr
--with-berkeley-db=${XBPS_CROSS_BASE}/usr --with-odbc=${XBPS_CROSS_BASE}/usr
--with-dbm=db53 --with-crypto --with-openssl --without-oracle --enable-util-dso"
hostmakedepends="libtool apr-devel"
hostmakedepends="libtool apr-devel automake"
makedepends="zlib-devel openssl-devel apr-devel db-devel expat-devel
gdbm-devel libldap-devel libmariadbclient-devel unixodbc-devel
postgresql-libs-devel sqlite-devel"
Expand All @@ -18,7 +18,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://apr.apache.org/"
distfiles="https://archive.apache.org/dist/apr/${pkgname}-${version}.tar.bz2"
checksum=d3e12f7b6ad12687572a3a39475545a072608f4ba03a6ce8a3778f607dd0035b
checksum=a41076e3710746326c3945042994ad9a4fcac0ce0277dd8fea076fec3c9772b5
# fails to build tests
make_check=no

Expand All @@ -27,26 +27,24 @@ if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
fi

pre_configure() {
sed -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"
else
configure_args+=" --with-apr=/usr/bin/apr-1-config"
fi
autoreconf -fi
}

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 "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 "/^CC=/s:=.*:=${CC}:"
fi
vsed -i build/rules.mk \
-e "/^LIBTOOL=/s;(apr_builddir);(top_builddir);" \
-e "s;\(top_builddir=\)\(.*\);\1${wrksrc};" \
-e "/^CFLAGS=/s:=.*:=${CFLAGS}:" \
-e '/^LTFLAGS/s:--silent::'
}

post_install() {
Expand Down