summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2024-07-21 10:49:49 +0200
committerFabian Groffen <grobian@gentoo.org>2024-07-21 10:49:49 +0200
commitd718d0ee9fb3d3f7d958c0065d4c937cf98d6139 (patch)
tree91cce358925f8617d0e1e57aeda5244cd5e6baff
parentsys-devel/gcc-14.1.0: bring back src_configure for Solaris (diff)
downloadprefix-d718d0ee9fb3d3f7d958c0065d4c937cf98d6139.tar.gz
prefix-d718d0ee9fb3d3f7d958c0065d4c937cf98d6139.tar.bz2
prefix-d718d0ee9fb3d3f7d958c0065d4c937cf98d6139.zip
scripts/bootstrap-prefix: improve emake error reporting
If make fails, run with forced -j1 to get a clearer error for debugging purposes. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rwxr-xr-xscripts/bootstrap-prefix.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 024a77392a..f49a595ad0 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -44,7 +44,10 @@ emake() {
estatus "stage1: building ${PWD##*/}"
fi
read -r -a makeopts <<< "${MAKEOPTS}"
- v "${MAKE}" "${makeopts[@]}" "$@" || return 1
+ if ! v "${MAKE}" "${makeopts[@]}" "$@" ; then
+ estatus "stage1: retry with -j1 for clearer error message in ${PWD##*/}"
+ v "${MAKE}" "${makeopts[@]}" "$@" -j1 || return 1
+ fi
}
efetch() {