diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2022-07-05 01:42:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 10:42:14 +0200 |
commit | f932a832ac0be41481d816c29480d4f6acdb65c1 (patch) | |
tree | d9b338d1c77f23ce89f251360ac2ccb9f8d4cbe1 | |
parent | a183b343b9a501c2732caf53b59e27768713c0fe (diff) | |
download | spack-f932a832ac0be41481d816c29480d4f6acdb65c1.tar.gz spack-f932a832ac0be41481d816c29480d4f6acdb65c1.tar.bz2 spack-f932a832ac0be41481d816c29480d4f6acdb65c1.tar.xz spack-f932a832ac0be41481d816c29480d4f6acdb65c1.zip |
node-js: fix build on macOS 12 (#31408)
-rw-r--r-- | var/spack/repos/builtin/packages/node-js/package.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/node-js/package.py b/var/spack/repos/builtin/packages/node-js/package.py index cebb18a621..a7d633f837 100644 --- a/var/spack/repos/builtin/packages/node-js/package.py +++ b/var/spack/repos/builtin/packages/node-js/package.py @@ -78,10 +78,10 @@ class NodeJs(Package): if sys.platform == 'darwin': process_pipe = subprocess.Popen(["which", "libtool"], stdout=subprocess.PIPE) - result_which = process_pipe.communicate()[0] + result_which = process_pipe.communicate()[0].strip() process_pipe = subprocess.Popen(["whereis", "libtool"], stdout=subprocess.PIPE) - result_whereis = process_pipe.communicate()[0] + result_whereis = process_pipe.communicate()[0].strip().split()[-1] assert result_which == result_whereis, ( 'On OSX the system libtool must be used. Please' '(temporarily) remove \n %s or its link to libtool from' |