From 216442b78b7f544aad6a6cb0ce78ea6b8b66f1fc Mon Sep 17 00:00:00 2001 From: oreo639 Date: Thu, 18 Jan 2024 21:33:23 -0800 Subject: [PATCH] apr: depends on libxcrypt-devel Otherwise apr.h will say that crypt.h is not avaliable which will cause apr-util not to include crypt.h and fail to compile. --- srcpkgs/apr/template | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/srcpkgs/apr/template b/srcpkgs/apr/template index de8ca7c0c8f..38b6d1e4927 100644 --- a/srcpkgs/apr/template +++ b/srcpkgs/apr/template @@ -24,6 +24,12 @@ if [ "$CROSS_BUILD" ]; then configure_args+=" ac_cv_func_sem_open=sem_open" fi +# The apr package doesn't use crypt_r, however apr-util does, +# and apr-util uses the apr.h generated by apr's ./configure. +if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then + makedepends+=" libxcrypt-devel" +fi + pre_build() { if [ "$CROSS_BUILD" ]; then vsed -i Makefile \