summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2022-05-30 18:32:28 -0500
committerZach van Rijn <me@zv.io>2024-01-02 19:22:42 -0600
commitdd419395231c2121c02cc92df4d498e8a77ed199 (patch)
treec49149f506c55f228668f8a5fdb4af1108c00078 /var
parent437c4aa57f90313397972b4be3b606ae3ece2f23 (diff)
downloadspack-dd419395231c2121c02cc92df4d498e8a77ed199.tar.gz
spack-dd419395231c2121c02cc92df4d498e8a77ed199.tar.bz2
spack-dd419395231c2121c02cc92df4d498e8a77ed199.tar.xz
spack-dd419395231c2121c02cc92df4d498e8a77ed199.zip
libsigsegv: ppc
https://git.adelielinux.org/adelie/spack/-/issues/2
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libsigsegv/package.py1
-rw-r--r--var/spack/repos/builtin/packages/libsigsegv/ppc.patch10
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 f2dc840891..550c602e92 100644
--- a/var/spack/repos/builtin/packages/libsigsegv/package.py
+++ b/var/spack/repos/builtin/packages/libsigsegv/package.py
@@ -24,6 +24,7 @@ class Libsigsegv(AutotoolsPackage, GNUMirrorPackage):
version("2.10", sha256="8460a4a3dd4954c3d96d7a4f5dd5bc4d9b76f5754196aa245287553b26d2199a")
patch("patch.new_config_guess", when="@2.10")
+ patch('ppc.patch')
def configure_args(self):
return ["--enable-shared"]
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