summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Tigeot <ftigeot@wolfpond.org>2012-01-25 18:50:35 +0100
committerFrançois Tigeot <ftigeot@wolfpond.org>2012-01-25 19:12:16 +0100
commita79889083b25d69ae6b801ed8cee90b5dd9199c4 (patch)
treeba7bf796cd4cfadaf03b50a0e89bb2942f9e485e
parentbb51e8e72be424f0fd92350006c536a97fd4b210 (diff)
Ensure Env.Host.sh always return a zero exit code
* On some NetBSD systems, the last unset command returns a non-zero exit code * This made the make(1) processes terminate immediately in source-env-and-recurse, breaking the build. Reported by: Thomas Klausner <wiz@NetBSD.org>
-rwxr-xr-xset_soenv.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/set_soenv.in b/set_soenv.in
index 53b388f68772..704378d55b03 100755
--- a/set_soenv.in
+++ b/set_soenv.in
@@ -1102,6 +1102,9 @@ ToFile( "ENV_SCRIPT", "$outfile", "e" );
#
print OUT "export $exportvars$newline";
print OUT "unset $unsetvars$newline";
+# unset may return a non-zero value and make the initial
+# make(1) processes terminate with an error
+print OUT "true $newline";
#
#---------------------------