xbps-src: break out of following cyclic dependencies
This commit is contained in:
parent
eb13aa8bcc
commit
6cd3bd1806
|
@ -26,6 +26,12 @@ for f in $XBPS_SHUTILSDIR/*.sh; do
|
||||||
. $f
|
. $f
|
||||||
done
|
done
|
||||||
|
|
||||||
|
last="${XBPS_DEPENDS_CHAIN##*,}"
|
||||||
|
case "$XBPS_DEPENDS_CHAIN" in
|
||||||
|
*,$last,*)
|
||||||
|
msg_error "Build-time cyclic dependency$last,${XBPS_DEPENDS_CHAIN##*,$last,} detected.\n"
|
||||||
|
esac
|
||||||
|
|
||||||
setup_pkg "$PKGNAME" $XBPS_CROSS_BUILD
|
setup_pkg "$PKGNAME" $XBPS_CROSS_BUILD
|
||||||
readonly SOURCEPKG="$sourcepkg"
|
readonly SOURCEPKG="$sourcepkg"
|
||||||
|
|
||||||
|
|
|
@ -369,7 +369,7 @@ install_pkg_deps() {
|
||||||
(
|
(
|
||||||
curpkgdepname=$($XBPS_UHELPER_CMD getpkgname "$i" 2>/dev/null)
|
curpkgdepname=$($XBPS_UHELPER_CMD getpkgname "$i" 2>/dev/null)
|
||||||
setup_pkg $curpkgdepname
|
setup_pkg $curpkgdepname
|
||||||
exec env XBPS_DEPENDENCY=1 XBPS_BINPKG_EXISTS=1 \
|
exec env XBPS_DEPENDENCY=1 XBPS_BINPKG_EXISTS=1 XBPS_DEPENDS_CHAIN="$XBPS_DEPENDS_CHAIN, $sourcepkg(host)" \
|
||||||
$XBPS_LIBEXECDIR/build.sh $sourcepkg $pkg $target $cross_prepare || exit $?
|
$XBPS_LIBEXECDIR/build.sh $sourcepkg $pkg $target $cross_prepare || exit $?
|
||||||
) || exit $?
|
) || exit $?
|
||||||
host_binpkg_deps+=("$i")
|
host_binpkg_deps+=("$i")
|
||||||
|
@ -382,7 +382,7 @@ install_pkg_deps() {
|
||||||
|
|
||||||
curpkgdepname=$($XBPS_UHELPER_CMD getpkgname "$i" 2>/dev/null)
|
curpkgdepname=$($XBPS_UHELPER_CMD getpkgname "$i" 2>/dev/null)
|
||||||
setup_pkg $curpkgdepname $cross
|
setup_pkg $curpkgdepname $cross
|
||||||
exec env XBPS_DEPENDENCY=1 XBPS_BINPKG_EXISTS=1 \
|
exec env XBPS_DEPENDENCY=1 XBPS_BINPKG_EXISTS=1 XBPS_DEPENDS_CHAIN="$XBPS_DEPENDS_CHAIN, $sourcepkg(${cross:-host})" \
|
||||||
$XBPS_LIBEXECDIR/build.sh $sourcepkg $pkg $target $cross $cross_prepare || exit $?
|
$XBPS_LIBEXECDIR/build.sh $sourcepkg $pkg $target $cross $cross_prepare || exit $?
|
||||||
) || exit $?
|
) || exit $?
|
||||||
binpkg_deps+=("$i")
|
binpkg_deps+=("$i")
|
||||||
|
@ -400,7 +400,7 @@ install_pkg_deps() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
setup_pkg $curpkgdepname $cross
|
setup_pkg $curpkgdepname $cross
|
||||||
exec env XBPS_DEPENDENCY=1 XBPS_BINPKG_EXISTS=1 \
|
exec env XBPS_DEPENDENCY=1 XBPS_BINPKG_EXISTS=1 XBPS_DEPENDS_CHAIN="$XBPS_DEPENDS_CHAIN, $sourcepkg(${cross:-host})" \
|
||||||
$XBPS_LIBEXECDIR/build.sh $sourcepkg $pkg $target $cross $cross_prepare || exit $?
|
$XBPS_LIBEXECDIR/build.sh $sourcepkg $pkg $target $cross $cross_prepare || exit $?
|
||||||
) || exit $?
|
) || exit $?
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue