From 9ae512bbbbbf80fdb0d15fe9f1ea84afab7e32b5 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 17 Apr 2019 16:29:53 +0200 Subject: [PATCH] xbps-src: only detect host build loops when not cross compiling --- common/xbps-src/shutils/build_dependencies.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/common/xbps-src/shutils/build_dependencies.sh b/common/xbps-src/shutils/build_dependencies.sh index 240da693c60..2314766d96c 100644 --- a/common/xbps-src/shutils/build_dependencies.sh +++ b/common/xbps-src/shutils/build_dependencies.sh @@ -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