apr-util

Details
Source
FROM stagex/pallet-gcc-gnu-busybox AS build
ARG VERSION
COPY --from=stagex/core-expat . /
COPY --from=stagex/core-gdbm . /
COPY --from=stagex/core-sqlite3 . /
COPY --from=stagex/core-openssl . /
COPY --from=stagex/user-apr . /
COPY --from=stagex/user-openldap . /
COPY --from=stagex/user-postgresql . /
ADD fetch/apr-util-${VERSION}.tar.bz2 .
WORKDIR /apr-util-${VERSION}
COPY *.patch .
RUN --network=none <<-EOF
	set -eux
	patch -p1 < musl-fix-testsuite.patch
	./configure \
		--prefix=/usr \
		--with-apr=/usr \
		--with-ldap \
		--with-pgsql \
		--with-mysql \
		--with-sqlite3 \
		--with-crypto \
		--with-openssl \
		--without-sqlite2 \
		--with-dbm=ndbm \
		--with-ndbm
	make -j "$(nproc)"
	make DESTDIR=/rootfs install
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /