chroot.sh: split between glibc and musl path
This commit is contained in:
parent
9fe1dba9c7
commit
2035d46d91
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue