From 1ae3db077e9e076ff585526fdcb28ea31e6a76ee Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Oct 27 2014 01:04:08 +0000 Subject: Add patch to fix ftbfs on aarch64 --- diff --git a/a2jmidid-aarch64.patch b/a2jmidid-aarch64.patch new file mode 100644 index 0000000..7e16fe2 --- /dev/null +++ b/a2jmidid-aarch64.patch @@ -0,0 +1,20 @@ +--- a2jmidid-8/sigsegv.c.orig 2014-10-27 00:55:18.105347411 +0000 ++++ a2jmidid-8/sigsegv.c 2014-10-27 00:56:07.209296207 +0000 +@@ -91,7 +91,7 @@ + a2j_error("info.si_errno = %d", info->si_errno); + a2j_error("info.si_code = %d (%s)", info->si_code, si_codes[info->si_code]); + a2j_error("info.si_addr = %p", info->si_addr); +-#if !defined(__alpha__) && !defined(__ia64__) && !defined(__FreeBSD_kernel__) && !defined(__arm__) && !defined(__hppa__) && !defined(__sh__) ++#if !defined(__alpha__) && !defined(__ia64__) && !defined(__FreeBSD_kernel__) && !defined(__arm__) && !defined(__hppa__) && !defined(__sh__) && !defined(__aarch64__) + for(i = 0; i < NGREG; i++) + a2j_error("reg[%02d] = 0x" REGFORMAT, i, + #if defined(__powerpc__) +@@ -102,7 +102,7 @@ + ucontext->uc_mcontext.gregs[i] + #endif + ); +-#endif /* alpha, ia64, kFreeBSD, arm, hppa */ ++#endif /* alpha, ia64, kFreeBSD, arm, hppa, aarch64 */ + + #if defined(SIGSEGV_STACK_X86) || defined(SIGSEGV_STACK_IA64) + # if defined(SIGSEGV_STACK_IA64) diff --git a/a2jmidid.spec b/a2jmidid.spec index b7378fd..f67b916 100644 --- a/a2jmidid.spec +++ b/a2jmidid.spec @@ -1,14 +1,15 @@ Summary: Daemon for exposing ALSA sequencer applications in JACK MIDI system Name: a2jmidid Version: 8 -Release: 7%{?dist} +Release: 8%{?dist} URL: http://home.gna.org/a2jmidid/ Source0: http://download.gna.org/%{name}/%{name}-%{version}.tar.bz2 # a2jmidi_bridge.c and j2amidi_bridge.c are GPLv2+ # The rest is GPLv2 # Fix DSO linking: https://gna.org/support/index.php?2934 Patch0: a2jmidid-linking.patch -patch1: a2jmidid-man.patch +Patch1: a2jmidid-man.patch +Patch2: a2jmidid-aarch64.patch License: GPLv2 and GPLv2+ Group: Applications/Multimedia @@ -34,7 +35,8 @@ one ALSA sequencer port and one JACK MIDI port. Such bridge is unidirectional. %prep %setup -q %patch0 -p1 -b .dso.linking -%patch1 -p1 +%patch1 -p1 -b .man +%patch2 -p1 -b .aarch64 %build export CFLAGS="%{optflags}" @@ -57,6 +59,9 @@ export CFLAGS="%{optflags}" %{_mandir}/man1/j2a* %changelog +* Sun Oct 26 2014 Peter Robinson 8-8 +- Add patch to fix ftbfs on aarch64 + * Fri Aug 15 2014 Fedora Release Engineering - 8-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild