xbps-src: force autodeps cleanup while building dependencies.
Before that change, "./xbps-src -C pkg foo" would not remove dependencies installed by previous builds required by foo.
This commit is contained in:
parent
65727584e0
commit
4f67c26652
|
@ -83,7 +83,7 @@ if declare -f do_clean >/dev/null; then
|
|||
run_func do_clean
|
||||
fi
|
||||
|
||||
if [ -z "$XBPS_KEEP_ALL" ]; then
|
||||
if [ -n "$XBPS_DEPENDENCY" -o -z "$XBPS_KEEP_ALL" ]; then
|
||||
remove_pkg_autodeps
|
||||
remove_pkg_wrksrc
|
||||
remove_pkg $XBPS_CROSS_BUILD
|
||||
|
|
|
@ -344,7 +344,8 @@ install_pkg_deps() {
|
|||
(
|
||||
curpkgdepname=$($XBPS_UHELPER_CMD getpkgname "$i" 2>/dev/null)
|
||||
setup_pkg $curpkgdepname $cross
|
||||
exec env XBPS_BINPKG_EXISTS=1 $XBPS_LIBEXECDIR/build.sh $sourcepkg $pkg $target $cross $cross_prepare || exit $?
|
||||
exec env XBPS_DEPENDENCY=1 XBPS_BINPKG_EXISTS=1 \
|
||||
$XBPS_LIBEXECDIR/build.sh $sourcepkg $pkg $target $cross $cross_prepare || exit $?
|
||||
) || exit $?
|
||||
binpkg_deps+=("$i")
|
||||
done
|
||||
|
@ -361,7 +362,8 @@ install_pkg_deps() {
|
|||
fi
|
||||
fi
|
||||
setup_pkg $curpkgdepname $cross
|
||||
exec env XBPS_BINPKG_EXISTS=1 $XBPS_LIBEXECDIR/build.sh $sourcepkg $pkg $target $cross $cross_prepare || exit $?
|
||||
exec env XBPS_DEPENDENCY=1 XBPS_BINPKG_EXISTS=1 \
|
||||
$XBPS_LIBEXECDIR/build.sh $sourcepkg $pkg $target $cross $cross_prepare || exit $?
|
||||
) || exit $?
|
||||
done
|
||||
|
||||
|
|
|
@ -43,8 +43,6 @@ pkg_available() {
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue