diff options
author | Daryl W. Grunau <DarylGrunau@gmail.com> | 2020-07-30 21:04:24 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-30 22:04:24 -0500 |
commit | 7dd5793b75dfde70aec72322501a6eb0206f0a8c (patch) | |
tree | 3073969bb7d893493ef544549130a3763fec589e | |
parent | b86e620743aff8668752574e4c39b3a569f12668 (diff) | |
download | spack-7dd5793b75dfde70aec72322501a6eb0206f0a8c.tar.gz spack-7dd5793b75dfde70aec72322501a6eb0206f0a8c.tar.bz2 spack-7dd5793b75dfde70aec72322501a6eb0206f0a8c.tar.xz spack-7dd5793b75dfde70aec72322501a6eb0206f0a8c.zip |
backport Mesa MR#6053 to prevent multiply-defined symbols (#17720)
Co-authored-by: Daryl W. Grunau <dwg@lanl.gov>
-rw-r--r-- | var/spack/repos/builtin/packages/mesa/multiple-symbols_hash.patch | 22 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/mesa/package.py | 3 |
2 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mesa/multiple-symbols_hash.patch b/var/spack/repos/builtin/packages/mesa/multiple-symbols_hash.patch new file mode 100644 index 0000000000..7c92326f37 --- /dev/null +++ b/var/spack/repos/builtin/packages/mesa/multiple-symbols_hash.patch @@ -0,0 +1,22 @@ +--- a/src/gallium/auxiliary/util/u_debug_stack.c 2019-11-07 17:57:36.000000000 -0700 ++++ b/src/gallium/auxiliary/util/u_debug_stack.c 2020-07-23 15:30:46.033145497 -0600 +@@ -46,7 +46,7 @@ + #include "os/os_thread.h" + #include "u_hash_table.h" + +-struct util_hash_table* symbols_hash; ++static struct util_hash_table* symbols_hash; + static mtx_t symbols_mutex = _MTX_INITIALIZER_NP; + + static unsigned hash_ptr(void* p) +--- a/src/gallium/auxiliary/util/u_debug_symbol.c 2019-11-07 17:58:53.000000000 -0700 ++++ b/src/gallium/auxiliary/util/u_debug_symbol.c 2020-07-23 15:31:06.400146072 -0600 +@@ -270,7 +270,7 @@ + debug_printf("\t%s\n", buf); + } + +-struct util_hash_table* symbols_hash; ++static struct util_hash_table* symbols_hash; + static mtx_t symbols_mutex = _MTX_INITIALIZER_NP; + + static unsigned hash_ptr(void* p) diff --git a/var/spack/repos/builtin/packages/mesa/package.py b/var/spack/repos/builtin/packages/mesa/package.py index b277a03d19..953e5b0034 100644 --- a/var/spack/repos/builtin/packages/mesa/package.py +++ b/var/spack/repos/builtin/packages/mesa/package.py @@ -79,6 +79,9 @@ class Mesa(AutotoolsPackage): # Prevent an unnecessary xcb-dri dependency patch('autotools-x11-nodri.patch') + # Backport Mesa MR#6053 to prevent multiply-defined symbols + patch('multiple-symbols_hash.patch', when='@:20.1.4%gcc@10:') + def autoreconf(self, spec, prefix): which('autoreconf')('--force', '--verbose', '--install') |