a2jmidid: fix build on ppc64 targets
This commit is contained in:
parent
ff8ba42296
commit
826a43bf27
2 changed files with 21 additions and 3 deletions
18
srcpkgs/a2jmidid/patches/ppc64.patch
Normal file
18
srcpkgs/a2jmidid/patches/ppc64.patch
Normal file
|
@ -0,0 +1,18 @@
|
|||
Description: Following the same variable and struct usage within sys header
|
||||
file ucontext.h to cover powerpc 64 bit archs.
|
||||
Author: Fernando Seiti Furusato <ferseiti@br.ibm.com>
|
||||
--- sigsegv.c
|
||||
+++ sigsegv.c
|
||||
@@ -94,8 +94,11 @@ static void signal_segv(int signum, sigi
|
||||
#if !defined(__alpha__) && !defined(__ia64__) && !defined(__FreeBSD_kernel__) && !defined(__arm__) && !defined(__hppa__) && !defined(__sh__)
|
||||
for(i = 0; i < NGREG; i++)
|
||||
a2j_error("reg[%02d] = 0x" REGFORMAT, i,
|
||||
-#if defined(__powerpc__)
|
||||
+#if defined(__powerpc__) && !defined(__powerpc64__)
|
||||
ucontext->uc_mcontext.uc_regs[i]
|
||||
+/* just following the variable type and member logic as the ones used here to cover ppc64*/
|
||||
+#elif defined(__powerpc64__)
|
||||
+ ucontext->uc_mcontext.gp_regs[i]
|
||||
#elif defined(__sparc__) && defined(__arch64__)
|
||||
ucontext->uc_mcontext.mc_gregs[i]
|
||||
#else
|
|
@ -2,13 +2,13 @@
|
|||
pkgname=a2jmidid
|
||||
version=8
|
||||
revision=7
|
||||
build_style=waf
|
||||
wrksrc="a2jmidid-8~dfsg0"
|
||||
build_style=waf
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="alsa-lib-devel jack-devel dbus-devel"
|
||||
short_desc="Daemon for exposing legacy ALSA sequencer apps to JACK MIDI"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||
homepage="http://home.gna.org/a2jmidid/"
|
||||
license="GPL-2"
|
||||
distfiles="${DEBIAN_SITE}/main/a/a2jmidid/a2jmidid_8~dfsg0.orig.tar.bz2"
|
||||
homepage="http://home.gna.org/a2jmidid/"
|
||||
distfiles="${DEBIAN_SITE}/main/a/a2jmidid/a2jmidid_${version}~dfsg0.orig.tar.bz2"
|
||||
checksum=32379bd4ee73e3d4896f82f4477d3d4a340eff92558d2d0c85b5b5026675ff42
|
||||
|
|
Loading…
Reference in a new issue