Skip to contentSkip to conversation

jack2: fix NGREG build failures

PATCH New Thomas Petazzoni 1 participant 3 messages Dec 17, 2016 – Jan 25, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 jack2: fix NGREG build failures

This commit replaces the patch adding nios2 "support" to jack2 by a more generic approach that solves the NGREG definition problem by using proper checks in the waf script. This allows to remove the architecture-specific compile time conditionals, and will solve build failures on other architectures than just nios2.

Fixes:

http://autobuild.buildroot.net/results/d15dc78cdd74b51b551512ce1ba88e4d61219e86/ (xtensa)
http://autobuild.buildroot.net/results/8244e3fdda52d3f4f24d7199e8855c99a2a7b4b1/ (arc)
http://autobuild.buildroot.net/results/badb9ec391f9f0438d593a2768f2f6c6a873c021/ (microblaze)

This commit has been built tested with all the external toolchains used in the autobuilders.

---
 package/jack2/0001-Add-support-for-nios2.patch     | 34 ---------
 .../jack2/0001-Improve-check-for-ucontext.patch    | 84 ++++++++++++++++++++++
 2 files changed, 84 insertions(+), 34 deletions(-)
 delete mode 100644 package/jack2/0001-Add-support-for-nios2.patch
 create mode 100644 package/jack2/0001-Improve-check-for-ucontext.patch
package/jack2/0001-Add-support-for-nios2.patch deleted +0 -34
deleted file mode 100644
index f6d60af..0000000
@@ -1,34 +0,0 @@
-From 3651f95d0433c84d2b67e30e68dd6140585535b0 Mon Sep 17 00:00:00 2001
-From: Bernd Kuhls <[email protected]>
-Date: Tue, 19 Apr 2016 19:32:35 +0200
-Subject: [PATCH 1/1] Add support for nios2
-
-When compiling jack on nios2, compilation fails because NGREGS is not
-defined. Since this is only for debug output on segmentation faults, stub
-the debug print out like it's been done for other platforms before.
-
-Inspired by
-https://github.com/jackaudio/jack2/commit/d11bb095291d8880508c87adfe625bf2bcab1456
-
-Signed-off-by: Bernd Kuhls <[email protected]>
-[Patch sent upstream: https://github.com/jackaudio/jack2/pull/199]
----
- dbus/sigsegv.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/dbus/sigsegv.c b/dbus/sigsegv.c
-index 64c3986..ee12f91 100644
---- a/dbus/sigsegv.c
-+++ b/dbus/sigsegv.c
-@@ -104,7 +104,7 @@ static void signal_segv(int signum, siginfo_t* info, void*ptr) {
-     jack_error("info.si_errno = %d", info->si_errno);
-     jack_error("info.si_code  = %d (%s)", info->si_code, si_code_str);
-     jack_error("info.si_addr  = %p", info->si_addr);
--#if !defined(__alpha__) && !defined(__ia64__) && !defined(__FreeBSD_kernel__) && !defined(__arm__) && !defined(__hppa__) && !defined(__sh__) && !defined(__aarch64__)
-+#if !defined(__alpha__) && !defined(__ia64__) && !defined(__FreeBSD_kernel__) && !defined(__arm__) && !defined(__hppa__) && !defined(__sh__) && !defined(__aarch64__) && !defined(nios2)
-     for(i = 0; i < NGREG; i++)
-         jack_error("reg[%02d]       = 0x" REGFORMAT, i, 
- #if defined(__powerpc64__)
--- 
-2.8.0.rc3
-
package/jack2/0001-Improve-check-for-ucontext.patch new file +84 -0

84 lines not on this page · raw message

Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 jack2: fix NGREG build failures

Hello,

Quoted 5 lines · Thomas Petazzoni
 package/jack2/0001-Add-support-for-nios2.patch     | 34 ---------
 .../jack2/0001-Improve-check-for-ucontext.patch    | 84 ++++++++++++++++++++++
 2 files changed, 84 insertions(+), 34 deletions(-)
 delete mode 100644 package/jack2/0001-Add-support-for-nios2.patch
 create mode 100644 package/jack2/0001-Improve-check-for-ucontext.patch

For information, my jack2 patch has been applied upstream:

https://github.com/jackaudio/jack2/commit/e2cba86e65887f09cba7645134f845ce6de81d99

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 jack2: fix NGREG build failures

In reply to Thomas Petazzoni

Hello,

Quoted 15 lines · Thomas Petazzoni

This commit replaces the patch adding nios2 "support" to jack2 by a more generic approach that solves the NGREG definition problem by using proper checks in the waf script. This allows to remove the architecture-specific compile time conditionals, and will solve build failures on other architectures than just nios2.

Fixes:

http://autobuild.buildroot.net/results/d15dc78cdd74b51b551512ce1ba88e4d61219e86/ (xtensa)
http://autobuild.buildroot.net/results/8244e3fdda52d3f4f24d7199e8855c99a2a7b4b1/ (arc)
http://autobuild.buildroot.net/results/badb9ec391f9f0438d593a2768f2f6c6a873c021/ (microblaze)

This commit has been built tested with all the external toolchains used in the autobuilders.

Quoted 7 lines
---
 package/jack2/0001-Add-support-for-nios2.patch     | 34 ---------
 .../jack2/0001-Improve-check-for-ucontext.patch    | 84 ++++++++++++++++++++++
 2 files changed, 84 insertions(+), 34 deletions(-)
 delete mode 100644 package/jack2/0001-Add-support-for-nios2.patch
 create mode 100644 package/jack2/0001-Improve-check-for-ucontext.patch

Since the patch has been applied upstream, and nobody objected, I applied this patch to master.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com