unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 2b9e2ed1c5a1ded9a34297c5e318d5d98ae13033 1946 bytes (raw)
name: gnu/packages/patches/a2jmidid-enable-riscv-build.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
 
From 2c3fbef6854743416d95d85b1565dde51668488c Mon Sep 17 00:00:00 2001
From: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Date: Fri, 1 Oct 2021 16:15:29 +0200
Subject: [PATCH] sigsegv: enable RISC-V build
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Avoid build error

../sigsegv.c:104:39: error: ‘mcontext_t’ has no member named ‘gregs’;
did you mean ‘__gregs’?
  104 |                 ucontext->uc_mcontext.gregs[i]
      |                                       ^~~~~

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 sigsegv.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sigsegv.c b/sigsegv.c
index fb4456e..6930185 100644
--- a/sigsegv.c
+++ b/sigsegv.c
@@ -91,7 +91,9 @@ static void signal_segv(int signum, siginfo_t* info, void*ptr) {
     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__) && !defined(__aarch64__)
+#if !defined(__alpha__) && !defined(__ia64__) && \
+    !defined(__FreeBSD_kernel__) && !defined(__arm__) && !defined(__hppa__) && \
+    !defined(__sh__) && !defined(__aarch64__) && !defined(__riscv)
     for(i = 0; i < NGREG; i++)
         a2j_error("reg[%02d]       = 0x" REGFORMAT, i,
 #if defined(__powerpc__) && !defined(__powerpc64__)
@@ -108,7 +110,7 @@ static void signal_segv(int signum, siginfo_t* info, void*ptr) {
                 ucontext->uc_mcontext.gregs[i]
 #endif
                 );
-#endif /* alpha, ia64, kFreeBSD, arm, hppa, aarch64 */
+#endif /* alpha, ia64, kFreeBSD, arm, hppa, aarch64, riscv */
 
 #if defined(SIGSEGV_STACK_X86) || defined(SIGSEGV_STACK_IA64)
 # if defined(SIGSEGV_STACK_IA64)

debug log:

solving 2b9e2ed1c5 ...
found 2b9e2ed1c5 in https://yhetil.org/guix-patches/tencent_647DB328D52A8BF18F5727A79CB6A4AD1605@qq.com/

applying [1/1] https://yhetil.org/guix-patches/tencent_647DB328D52A8BF18F5727A79CB6A4AD1605@qq.com/
diff --git a/gnu/packages/patches/a2jmidid-enable-riscv-build.patch b/gnu/packages/patches/a2jmidid-enable-riscv-build.patch
new file mode 100644
index 0000000000..2b9e2ed1c5

1:48: trailing whitespace.
 
Checking patch gnu/packages/patches/a2jmidid-enable-riscv-build.patch...
Applied patch gnu/packages/patches/a2jmidid-enable-riscv-build.patch cleanly.
warning: 1 line adds whitespace errors.

index at:
100644 2b9e2ed1c5a1ded9a34297c5e318d5d98ae13033	gnu/packages/patches/a2jmidid-enable-riscv-build.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).