diff options
author | Zach van Rijn <me@zv.io> | 2022-05-30 18:32:28 -0500 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-11-13 22:32:26 -0600 |
commit | cfcb31b3398f42d54a4762203bc0108739b94c60 (patch) | |
tree | 6d59b4a4a23a64e7b7e29d4844a992f0a6f9e7c6 | |
parent | e3753feb3a8ccf22f3d6b868626b33602ffdaafc (diff) | |
download | spack-cfcb31b3398f42d54a4762203bc0108739b94c60.tar.gz spack-cfcb31b3398f42d54a4762203bc0108739b94c60.tar.bz2 spack-cfcb31b3398f42d54a4762203bc0108739b94c60.tar.xz spack-cfcb31b3398f42d54a4762203bc0108739b94c60.zip |
libsigsegv: ppc
https://git.adelielinux.org/adelie/spack/-/issues/2
-rw-r--r-- | var/spack/repos/builtin/packages/libsigsegv/package.py | 1 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/libsigsegv/ppc.patch | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libsigsegv/package.py b/var/spack/repos/builtin/packages/libsigsegv/package.py index fe18883ecd..73d9b815e9 100644 --- a/var/spack/repos/builtin/packages/libsigsegv/package.py +++ b/var/spack/repos/builtin/packages/libsigsegv/package.py @@ -19,6 +19,7 @@ class Libsigsegv(AutotoolsPackage, GNUMirrorPackage): version("2.10", sha256="8460a4a3dd4954c3d96d7a4f5dd5bc4d9b76f5754196aa245287553b26d2199a") patch("patch.new_config_guess", when="@2.10") + patch('ppc.patch') test_requires_compiler = True diff --git a/var/spack/repos/builtin/packages/libsigsegv/ppc.patch b/var/spack/repos/builtin/packages/libsigsegv/ppc.patch new file mode 100644 index 0000000000..75e10a45fe --- /dev/null +++ b/var/spack/repos/builtin/packages/libsigsegv/ppc.patch @@ -0,0 +1,10 @@ +--- libsigsegv-2.12/src/fault-linux-powerpc.h.old 2017-03-04 15:28:15.000000000 +0000 ++++ libsigsegv-2.12/src/fault-linux-powerpc.h 2020-05-11 21:49:56.190783142 +0000 +@@ -33,6 +33,6 @@ + # if 0 + # define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.regs->gpr[1] + # else +-# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.uc_regs->gregs[1] ++# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.gregs[1] + # endif + #endif |