xbps-src: only detect host build loops when not cross compiling

This commit is contained in:
John 2019-04-17 16:29:53 +02:00
parent 7df55ec9a8
commit 9ae512bbbb
No known key found for this signature in database
GPG key ID: 778558807E4FFC55

View file

@ -240,10 +240,12 @@ install_pkg_deps() {
continue
else
echo " [host] ${i}: not found."
if [ "${_realpkg}" = "$targetpkg" ]; then
msg_error "${pkg}: [host] build loop detected: ${_realpkg} <-> ${targetpkg} [depends on itself]\n"
elif [ "${_realpkg}" = "$pkg" ]; then
msg_error "${pkg}: [host] build loop detected: $pkg <-> ${_realpkg}\n"
if [ -z "$CROSS_BUILD" ]; then
if [ "${_realpkg}" = "$targetpkg" ]; then
msg_error "${pkg}: [host] build loop detected: ${_realpkg} <-> ${targetpkg} [depends on itself]\n"
elif [ "${_realpkg}" = "$pkg" ]; then
msg_error "${pkg}: [host] build loop detected: $pkg <-> ${_realpkg}\n"
fi
fi
fi
fi