diff --git a/common/xbps-src/shutils/chroot.sh b/common/xbps-src/shutils/chroot.sh index 4d0426802ef..fc17dae4fdb 100644 --- a/common/xbps-src/shutils/chroot.sh +++ b/common/xbps-src/shutils/chroot.sh @@ -14,7 +14,15 @@ install_base_chroot() { _bootstrap_arch="env XBPS_TARGET_ARCH=$XBPS_TARGET_PKG" fi (export XBPS_MACHINE=$XBPS_TARGET_PKG XBPS_ARCH=$XBPS_TARGET_PKG; chroot_sync_repodata) - ${_bootstrap_arch} $XBPS_INSTALL_CMD ${XBPS_INSTALL_ARGS} -y base-chroot glibc libxcrypt-compat + # Fix cyclic between glibc and libxcrypt-compat + case "$XBPS_MACHINE" in + *-musl) + ${_bootstrap_arch} $XBPS_INSTALL_CMD ${XBPS_INSTALL_ARGS} -y base-chroot + ;; + *) + ${_bootstrap_arch} $XBPS_INSTALL_CMD ${XBPS_INSTALL_ARGS} -y base-chroot glibc libxcrypt-compat + ;; + esac if [ $? -ne 0 ]; then msg_error "xbps-src: failed to install base-chroot!\n" fi diff --git a/srcpkgs/libxcrypt/template b/srcpkgs/libxcrypt/template index 228d758e161..0495974c2ca 100644 --- a/srcpkgs/libxcrypt/template +++ b/srcpkgs/libxcrypt/template @@ -43,7 +43,6 @@ post_check() { pre_install() { make -C compat-build DESTDIR=${DESTDIR} install - # Don't install development files from the compat library rm -r ${DESTDIR}/usr/{include,lib/{lib*.so,pkgconfig},share} }