From dd419395231c2121c02cc92df4d498e8a77ed199 Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Mon, 30 May 2022 18:32:28 -0500 Subject: libsigsegv: ppc https://git.adelielinux.org/adelie/spack/-/issues/2 --- var/spack/repos/builtin/packages/libsigsegv/package.py | 1 + var/spack/repos/builtin/packages/libsigsegv/ppc.patch | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 var/spack/repos/builtin/packages/libsigsegv/ppc.patch (limited to 'var') 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 -- cgit v1.2.3-70-g09d2