xbps-src: fix bootstrap target with gcc being part of it.

This commit is contained in:
Juan RP 2014-05-19 12:42:43 +02:00
parent 14a5ef4503
commit c09b2df7a7
1 changed files with 10 additions and 1 deletions

View File

@ -531,7 +531,16 @@ case "$XBPS_TARGET" in
[ ! -d $XBPS_SRCPKGDIR/base-chroot ] && \
msg_error "Cannot find $XBPS_SRCPKGDIR/base-chroot directory!\n"
XBPS_TARGET_PKG="base-chroot"
setup_pkg $XBPS_TARGET_PKG && install_pkg $XBPS_TARGET
bootstrap_vpkg=${XBPS_MASTERDIR}/etc/xbps/virtualpkg.d/bootstrap.vpkg
mkdir -p ${XBPS_MASTERDIR}/etc/xbps/virtualpkg.d
if [ ! -s ${bootstrap_vpkg} ]; then
# Fool xbps to resolve dependencies.
echo 'virtualpkg=libgcc-4.4.0_1:base-files' >> ${bootstrap_vpkg}
echo 'virtualpkg=libstdc++-4.4.0_1:base-files' >> ${bootstrap_vpkg}
fi
setup_pkg $XBPS_TARGET_PKG
install_pkg $XBPS_TARGET
rm -f ${bootstrap_vpkg}
;;
bootstrap-update)
if [ -n "$CHROOT_READY" -a -z "$IN_CHROOT" ]; then