xbps-src: fix bootstrap target with gcc being part of it.
This commit is contained in:
parent
14a5ef4503
commit
c09b2df7a7
11
xbps-src
11
xbps-src
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue