diff options
author | Jeremy Andrews <athenian200@outlook.com> | 2021-11-29 23:42:20 -0600 |
---|---|---|
committer | Jeremy Andrews <athenian200@outlook.com> | 2021-11-29 23:42:20 -0600 |
commit | 0e96919c6e2caa1bfd832cc2abbffb179aa61a81 (patch) | |
tree | 857d9f0ed31bcae4db2f0f3aaa7ab130077f7be3 /python | |
parent | 226109ce856aba65338e71b3049b50883cca3692 (diff) | |
download | aura-central-0e96919c6e2caa1bfd832cc2abbffb179aa61a81.tar.gz |
Issue %3041 - Use Bash to check if config.status is up-to-date on SunOS.
The Python script here claims it can handle any Bourne-compatible shell, but the detection logic here really only works with GNU Bash. Not that there are that many Bourne-compatible shell implementations to compare against...
Diffstat (limited to 'python')
-rw-r--r-- | python/mozbuild/mozbuild/mozconfig.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/mozbuild/mozbuild/mozconfig.py b/python/mozbuild/mozbuild/mozconfig.py index 71267c1be..b2d91561e 100644 --- a/python/mozbuild/mozbuild/mozconfig.py +++ b/python/mozbuild/mozbuild/mozconfig.py @@ -233,6 +233,11 @@ class MozconfigLoader(object): shell = os.environ['MOZILLABUILD'] + '/msys/bin/sh' if sys.platform == 'win32': shell = shell + '.exe' + # /bin/sh is ksh on SunOS. The Python logic that detects whether + # config.status has changed expects GNU Bash, and does not seem to + # work with just any Bourne-compatible sh. So invoke bash directly. + if sys.platform in ('solaris','sunos5'): + shell = 'bash' command = [shell, mozpath.normsep(self._loader_script), mozpath.normsep(self.topsrcdir), path, sys.executable, |