xbps-src: remove autodeps before running the phase unless -C is set.
This should avoid unexpected issues due to building pkgs with dependencies installed by previous builds.
This commit is contained in:
parent
8c476f30ab
commit
43258cc391
|
@ -27,6 +27,8 @@ check_pkg_arch() {
|
|||
remove_pkg_autodeps() {
|
||||
local rval= tmplogf=
|
||||
|
||||
[ -n "$XBPS_KEEP_ALL" ] && return 0
|
||||
|
||||
cd $XBPS_MASTERDIR || return 1
|
||||
msg_normal "${pkgver:-xbps-src}: removing autodeps, please wait...\n"
|
||||
tmplogf=$(mktemp)
|
||||
|
|
1
xbps-src
1
xbps-src
|
@ -616,6 +616,7 @@ case "$XBPS_TARGET" in
|
|||
if [ -n "$CHROOT_READY" -a -z "$IN_CHROOT" ]; then
|
||||
chroot_handler $XBPS_TARGET $XBPS_TARGET_PKG
|
||||
else
|
||||
[ -z "$XBPS_TEMP_MASTERDIR" ] && remove_pkg_autodeps
|
||||
$XBPS_LIBEXECDIR/build.sh $XBPS_TARGET_PKG $XBPS_TARGET_PKG \
|
||||
$XBPS_TARGET $XBPS_CROSS_BUILD || exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue