diff options
author | Michael Kuhn <michael.kuhn@ovgu.de> | 2023-12-18 16:19:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-18 16:19:38 +0100 |
commit | 7550a41660711618f49332016ad4ad265becb42d (patch) | |
tree | 87113f173fe51407008a5facf680e0e8bc68a8aa | |
parent | ffd2a34d9ea004a8a227877a270a6a3c63e6fe79 (diff) | |
download | spack-7550a41660711618f49332016ad4ad265becb42d.tar.gz spack-7550a41660711618f49332016ad4ad265becb42d.tar.bz2 spack-7550a41660711618f49332016ad4ad265becb42d.tar.xz spack-7550a41660711618f49332016ad4ad265becb42d.zip |
gcc: fix run environment variables not being exported in environments (#41729)
Since views use symlinks, all compiler binaries were skipped in this
case. Instead, only skip them if their target does not exist.
-rw-r--r-- | var/spack/repos/builtin/packages/gcc/package.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py index d7d9dcc14d..f6dce2ea00 100644 --- a/var/spack/repos/builtin/packages/gcc/package.py +++ b/var/spack/repos/builtin/packages/gcc/package.py @@ -1016,7 +1016,9 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage): continue abspath = os.path.join(bin_path, filename) - if os.path.islink(abspath): + + # Skip broken symlinks (https://github.com/spack/spack/issues/41327) + if not os.path.exists(abspath): continue # Set the proper environment variable |