diff options
author | François Tigeot <ftigeot@wolfpond.org> | 2012-01-25 18:50:35 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-01-26 09:34:50 +0100 |
commit | c2c9eb11b8a095833074611c3e40279ee4ff21f7 (patch) | |
tree | c56c55191856bf365b34963262a9b961392a0fa2 /set_soenv.in | |
parent | 16291662332dae29af38e70dd6b327324c2d5bd7 (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>
(cherry picked from commit a79889083b25d69ae6b801ed8cee90b5dd9199c4)
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'set_soenv.in')
-rwxr-xr-x | set_soenv.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/set_soenv.in b/set_soenv.in index afaac53416c1..817693eea986 100755 --- a/set_soenv.in +++ b/set_soenv.in @@ -2063,6 +2063,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"; # #--------------------------- |