summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2022-07-05 01:42:14 -0700
committerGitHub <noreply@github.com>2022-07-05 10:42:14 +0200
commitf932a832ac0be41481d816c29480d4f6acdb65c1 (patch)
treed9b338d1c77f23ce89f251360ac2ccb9f8d4cbe1 /var
parenta183b343b9a501c2732caf53b59e27768713c0fe (diff)
downloadspack-f932a832ac0be41481d816c29480d4f6acdb65c1.tar.gz
spack-f932a832ac0be41481d816c29480d4f6acdb65c1.tar.bz2
spack-f932a832ac0be41481d816c29480d4f6acdb65c1.tar.xz
spack-f932a832ac0be41481d816c29480d4f6acdb65c1.zip
node-js: fix build on macOS 12 (#31408)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/node-js/package.py4
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'