xbps-src: break out of following cyclic dependencies

This commit is contained in:
Piotr Wójcik 2020-04-14 20:04:31 +02:00 committed by Piotr
parent eb13aa8bcc
commit 6cd3bd1806
2 changed files with 9 additions and 3 deletions

View file

@ -26,6 +26,12 @@ for f in $XBPS_SHUTILSDIR/*.sh; do
. $f
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
readonly SOURCEPKG="$sourcepkg"