summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2022-05-30 18:32:28 -0500
committerZach van Rijn <me@zv.io>2023-11-01 09:40:10 -0500
commitdcf13bf8658c5f553593a7ac06bf57875977dff4 (patch)
tree3396f93422cdb1e05531d2c2e3d41417d3e083b4
parent4584af2ebd1d66966dbfd3a6e27dcd7cec263663 (diff)
downloadspack-dcf13bf8658c5f553593a7ac06bf57875977dff4.tar.gz
spack-dcf13bf8658c5f553593a7ac06bf57875977dff4.tar.bz2
spack-dcf13bf8658c5f553593a7ac06bf57875977dff4.tar.xz
spack-dcf13bf8658c5f553593a7ac06bf57875977dff4.zip
libsigsegv: ppc
https://git.adelielinux.org/adelie/spack/-/issues/2
-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 c9ceb87d47..fb00c231b3 100644
--- a/var/spack/repos/builtin/packages/libsigsegv/package.py
+++ b/var/spack/repos/builtin/packages/libsigsegv/package.py
@@ -22,6 +22,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