xbps-src: do not sync xbps repos in chroot mode.
If XBPS_CHROOT_CMD == uchroot with overlayfs (-O), the temporary masterdir will be removed completely after synchronizing remote repositories, and later on, when the build starts the repos are unsynchronized. So do the sync on the real masterdir before entering the chroot.
This commit is contained in:
@@ -145,9 +145,7 @@ chroot_sync_repos() {
|
|||||||
|
|
||||||
if [ -z "$XBPS_SKIP_REMOTEREPOS" ]; then
|
if [ -z "$XBPS_SKIP_REMOTEREPOS" ]; then
|
||||||
# Make sure to sync index for remote repositories.
|
# Make sure to sync index for remote repositories.
|
||||||
$XBPS_COMMONDIR/chroot-style/${XBPS_CHROOT_CMD:=uunshare}.sh \
|
xbps-install -r $XBPS_MASTERDIR -S
|
||||||
$XBPS_MASTERDIR $XBPS_DISTDIR "$XBPS_HOSTDIR" \
|
|
||||||
"$XBPS_CHROOT_CMD_ARGS" xbps-install -S
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$XBPS_CROSS_BUILD" ]; then
|
if [ -n "$XBPS_CROSS_BUILD" ]; then
|
||||||
@@ -158,9 +156,7 @@ chroot_sync_repos() {
|
|||||||
# Make sure to sync index for remote repositories.
|
# Make sure to sync index for remote repositories.
|
||||||
if [ -z "$XBPS_SKIP_REMOTEREPOS" ]; then
|
if [ -z "$XBPS_SKIP_REMOTEREPOS" ]; then
|
||||||
env XBPS_TARGET_ARCH=$XBPS_TARGET_ARCH \
|
env XBPS_TARGET_ARCH=$XBPS_TARGET_ARCH \
|
||||||
$XBPS_COMMONDIR/chroot-style/${XBPS_CHROOT_CMD:=uunshare}.sh \
|
xbps-install -r $XBPS_MASTERDIR/$XBPS_CROSS_BASE -S
|
||||||
$XBPS_MASTERDIR $XBPS_DISTDIR "$XBPS_HOSTDIR" "$XBPS_CHROOT_CMD_ARGS" \
|
|
||||||
xbps-install -r $XBPS_CROSS_BASE -S
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user