From 0edee2e2eec6aee49c8aa9b1bab76c011d5dc8eb Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 16 Jan 2023 11:43:45 +0100 Subject: [PATCH] modbuild: Set PATH on macOS to support Macports and Homebrew --- CHANGELOG.md | 2 ++ Pmodules/modbuild.in | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bfb02fa..04280f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ * experimental support for modulecmd written in Tcl removed. * The environment variable `PMODULES_TMPDIR` and `PMODILES_DISTFILESDIR` can now be used to override the values set in the configuration file. + * Add /opt/local/bin (for Macports) and /usr/local/bin (for Homebrew) to + PATH on macOS. ## Version 1.0.0rc13 * same as 1.0.0rc12 but compiled on SL6 diff --git a/Pmodules/modbuild.in b/Pmodules/modbuild.in index f374ba5..0dc8e8d 100755 --- a/Pmodules/modbuild.in +++ b/Pmodules/modbuild.in @@ -18,7 +18,7 @@ declare -r mydir=$(cd ${mydir} && pwd -P) # so 'source' is able find them if [[ $(uname -s) == 'Darwin' ]]; then - PATH='/usr/local/bin:' + PATH='/opt/local/bin:/usr/local/bin:' else PATH='' fi