From 6b7e32d13c005adb6bfb1387aa6ef07befe40fb6 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 3 Nov 2019 16:34:47 +0100 Subject: [PATCH] xbps-src/shutils/cross.sh: error out if cross toolchain can't be compiled $rval was the return code of pkg_available and not of build.sh, since pkg_available returns 0. because of this install_cross_pkg() would always return 0 for success. --- common/xbps-src/shutils/cross.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xbps-src/shutils/cross.sh b/common/xbps-src/shutils/cross.sh index 68ed372ffc5..66454fd9186 100644 --- a/common/xbps-src/shutils/cross.sh +++ b/common/xbps-src/shutils/cross.sh @@ -79,7 +79,7 @@ install_cross_pkg() { pkg_available cross-${XBPS_CROSS_TRIPLET} rval=$? if [ $rval -eq 0 ]; then - $XBPS_LIBEXECDIR/build.sh cross-${XBPS_CROSS_TRIPLET} cross-${XBPS_CROSS_TRIPLET} pkg || return $rval + $XBPS_LIBEXECDIR/build.sh cross-${XBPS_CROSS_TRIPLET} cross-${XBPS_CROSS_TRIPLET} pkg || return $? fi check_installed_pkg cross-${XBPS_CROSS_TRIPLET}-0.1_1