diff options
author | Repository mirror & CI <repomirrorci@gentoo.org> | 2024-04-19 23:19:05 +0000 |
---|---|---|
committer | Repository mirror & CI <repomirrorci@gentoo.org> | 2024-04-19 23:19:05 +0000 |
commit | 051f4a6c29ce67be03a260ed58fedb1fc0f85dfd (patch) | |
tree | c15b5be4f71ae1521dde2b5d899b142d441f77f9 | |
parent | 2024-04-19 22:49:09 UTC (diff) | |
parent | meson.eclass: preserve exit status in phase funcs (diff) | |
download | gentoo-051f4a6c29ce67be03a260ed58fedb1fc0f85dfd.tar.gz gentoo-051f4a6c29ce67be03a260ed58fedb1fc0f85dfd.tar.bz2 gentoo-051f4a6c29ce67be03a260ed58fedb1fc0f85dfd.zip |
Merge updates from master
-rw-r--r-- | eclass/meson.eclass | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/eclass/meson.eclass b/eclass/meson.eclass index 9d7f830e58b0..a22a85887584 100644 --- a/eclass/meson.eclass +++ b/eclass/meson.eclass @@ -425,7 +425,10 @@ meson_src_configure() { export -n {C,CPP,CXX,F,OBJC,OBJCXX,LD}FLAGS PKG_CONFIG_{LIBDIR,PATH} echo meson setup "${MESONARGS[@]}" >&2 meson setup "${MESONARGS[@]}" - ) || die -n + ) + local rv=$? + [[ ${rv} -eq 0 ]] || die -n "configure failed" + return ${rv} } # @FUNCTION: meson_src_compile @@ -451,9 +454,12 @@ meson_src_compile() { set -- meson compile "${mesoncompileargs[@]}" echo "$@" >&2 - "$@" || die -n "compile failed" + "$@" + local rv=$? + [[ ${rv} -eq 0 ]] || die -n "compile failed" popd > /dev/null || die + return ${rv} } # @FUNCTION: meson_src_test @@ -473,9 +479,12 @@ meson_src_test() { set -- meson test "${mesontestargs[@]}" echo "$@" >&2 - "$@" || die -n "tests failed" + "$@" + local rv=$? + [[ ${rv} -eq 0 ]] || die -n "tests failed" popd > /dev/null || die + return ${rv} } # @FUNCTION: meson_install @@ -495,9 +504,12 @@ meson_install() { set -- meson install "${mesoninstallargs[@]}" echo "$@" >&2 - "$@" || die -n "install failed" + "$@" + local rv=$? + [[ ${rv} -eq 0 ]] || die -n "install failed" popd > /dev/null || die + return ${rv} } # @FUNCTION: meson_src_install |