xbps-src: only detect host build loops when not cross compiling
This commit is contained in:
parent
7df55ec9a8
commit
9ae512bbbb
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue