Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] a2jmidid: fix build on musl/ppc (and also a correction on glibc)
@ 2019-10-28 19:01 voidlinux-github
  2019-10-28 21:50 ` voidlinux-github
  2019-10-29 14:52 ` [PR PATCH] [Merged]: " voidlinux-github
  0 siblings, 2 replies; 3+ messages in thread
From: voidlinux-github @ 2019-10-28 19:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 347 bytes --]

There is a new pull request by q66 against master on the void-packages repository

https://github.com/void-ppc/void-packages a2jmidid
https://github.com/void-linux/void-packages/pull/15866

a2jmidid: fix build on musl/ppc (and also a correction on glibc)


A patch file from https://github.com/void-linux/void-packages/pull/15866.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-a2jmidid-15866.patch --]
[-- Type: text/x-diff, Size: 1365 bytes --]

From 93024b47c4121c417aa9f748810621e3143b563e Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Mon, 28 Oct 2019 20:00:45 +0100
Subject: [PATCH] a2jmidid: fix build on musl/ppc (and also a correction on
 glibc)

[ci skip]
---
 srcpkgs/a2jmidid/patches/musl-ppc.patch | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/a2jmidid/patches/musl-ppc.patch

diff --git a/srcpkgs/a2jmidid/patches/musl-ppc.patch b/srcpkgs/a2jmidid/patches/musl-ppc.patch
new file mode 100644
index 00000000000..c16523512ef
--- /dev/null
+++ b/srcpkgs/a2jmidid/patches/musl-ppc.patch
@@ -0,0 +1,18 @@
+This fixes build on ppc32/musl but also fixes incorrect usage of uc_regs
+on glibc (uc_regs is an mcontext_t pointer, you can't index it directly)
+
+--- sigsegv.c
++++ sigsegv.c
+@@ -97,7 +97,11 @@ static void signal_segv(int signum, siginfo_t* info, void*ptr) {
+     for(i = 0; i < NGREG; i++)
+         a2j_error("reg[%02d]       = 0x" REGFORMAT, i,
+ #if defined(__powerpc__) && !defined(__powerpc64__)
+-                ucontext->uc_mcontext.uc_regs[i]
++#if defined(__GLIBC__)
++                ucontext->uc_mcontext.uc_regs->gregs[i]
++#else
++                ucontext->uc_mcontext.gregs[i]
++#endif
+ #elif defined(__powerpc64__)
+                 ucontext->uc_mcontext.gp_regs[i]
+ #elif defined(__sparc__) && defined(__arch64__)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: a2jmidid: fix build on musl/ppc (and also a correction on glibc)
  2019-10-28 19:01 [PR PATCH] a2jmidid: fix build on musl/ppc (and also a correction on glibc) voidlinux-github
@ 2019-10-28 21:50 ` voidlinux-github
  2019-10-29 14:52 ` [PR PATCH] [Merged]: " voidlinux-github
  1 sibling, 0 replies; 3+ messages in thread
From: voidlinux-github @ 2019-10-28 21:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 194 bytes --]

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/pull/15866#issuecomment-547161061

Comment:
upstreamed: https://github.com/linuxaudio/a2jmidid/pull/8

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Merged]: a2jmidid: fix build on musl/ppc (and also a correction on glibc)
  2019-10-28 19:01 [PR PATCH] a2jmidid: fix build on musl/ppc (and also a correction on glibc) voidlinux-github
  2019-10-28 21:50 ` voidlinux-github
@ 2019-10-29 14:52 ` voidlinux-github
  1 sibling, 0 replies; 3+ messages in thread
From: voidlinux-github @ 2019-10-29 14:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 198 bytes --]

There's a merged pull request on the void-packages repository

a2jmidid: fix build on musl/ppc (and also a correction on glibc)
https://github.com/void-linux/void-packages/pull/15866

Description:


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-10-29 14:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-28 19:01 [PR PATCH] a2jmidid: fix build on musl/ppc (and also a correction on glibc) voidlinux-github
2019-10-28 21:50 ` voidlinux-github
2019-10-29 14:52 ` [PR PATCH] [Merged]: " voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).