[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#995472: marked as done (a2jmidid fails to build on RISC-V)



Your message dated Wed, 15 Feb 2023 18:48:58 +0000
with message-id <E1pSMpu-00AkMq-Hl@fasolo.debian.org>
and subject line Bug#995472: fixed in a2jmidid 9-3
has caused the Debian Bug report #995472,
regarding a2jmidid fails to build on RISC-V
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
995472: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=995472
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: a2jmidid
Version: 9-2
Severity: normal
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu impish ubuntu-patch

Dear Maintainer,

building on RISC-V fails.

In Ubuntu, the attached patch was applied to achieve the following:

  * Enable building on RISC-V (LP: #1945803) 


Thanks for considering the patch.


-- System Information:
Debian Release: 11.0
  APT prefers impish
  APT policy: (500, 'impish')
Architecture: riscv64

Kernel: Linux 5.13.0-1003-generic (SMP w/4 CPU threads)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru a2jmidid-9/debian/patches/0001-sigsegv-enable-RISC-V-build.patch a2jmidid-9/debian/patches/0001-sigsegv-enable-RISC-V-build.patch
--- a2jmidid-9/debian/patches/0001-sigsegv-enable-RISC-V-build.patch	1970-01-01 01:00:00.000000000 +0100
+++ a2jmidid-9/debian/patches/0001-sigsegv-enable-RISC-V-build.patch	2021-10-01 16:18:06.000000000 +0200
@@ -0,0 +1,47 @@
+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 1/1] 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)
+-- 
+2.32.0
+
diff -Nru a2jmidid-9/debian/patches/series a2jmidid-9/debian/patches/series
--- a2jmidid-9/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ a2jmidid-9/debian/patches/series	2021-10-01 16:18:52.000000000 +0200
@@ -0,0 +1 @@
+0001-sigsegv-enable-RISC-V-build.patch

--- End Message ---
--- Begin Message ---
Source: a2jmidid
Source-Version: 9-3
Done: Bo YU <tsu.yubo@gmail.com>

We believe that the bug you reported is fixed in the latest version of
a2jmidid, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 995472@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bo YU <tsu.yubo@gmail.com> (supplier of updated a2jmidid package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 13 Feb 2023 21:15:41 +0800
Source: a2jmidid
Architecture: source
Version: 9-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Changed-By: Bo YU <tsu.yubo@gmail.com>
Closes: 995472
Changes:
 a2jmidid (9-3) unstable; urgency=medium
 .
   * Team upload.
   * Add support for riscv64, thanks Heinrich Schuchardt
     <heinrich.schuchardt@canonical.com>. (Closes: #995472)
Checksums-Sha1:
 bd271e9014445b0f94a7202484223ab0b49f365e 2006 a2jmidid_9-3.dsc
 77068d20b4a14d93f7aae2de594b83a1c460e36c 5224 a2jmidid_9-3.debian.tar.xz
 5062b27bdd023a2f87ba99ce08ba2f38d4ff5c39 6448 a2jmidid_9-3_source.buildinfo
Checksums-Sha256:
 1f4d8926a043aae81214eb28cd95f32450a5fc5a1c1bc4c4329baad916611e41 2006 a2jmidid_9-3.dsc
 959abfbfd23ac8da7aa8268d939c5db3277ca96d647bca620decdf59bc77bdb6 5224 a2jmidid_9-3.debian.tar.xz
 c0fa56f8e16743450b165b57108861fdc6f6ac52753e92ded31967e9602f2a40 6448 a2jmidid_9-3_source.buildinfo
Files:
 99b183a44d8fbda8bf50b7611d940f9b 2006 sound optional a2jmidid_9-3.dsc
 ed894df27393f502aca6f55aed8177ce 5224 sound optional a2jmidid_9-3.debian.tar.xz
 049a487e303015ffff19b774704c04fb 6448 sound optional a2jmidid_9-3_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEkjZVexcMh/iCHArDweDZLphvfH4FAmPtJSAACgkQweDZLphv
fH6i9w/+Lk27MuIV0ZKrwW0vJ9CNpQbXM8ySnLDwctFDHuayuorY8iIP+/ZT77XC
L3tGomqqNJY8NbMwW1D1DJ1GI79xXp5jxb/LxhQppcasTS3zX5Fg1RuQPIOn61XH
KnX44NhXXHziBRiiVXqd63EDCXPTAYiC6E9cfldHVEQI145FPg1UVUU0eCOYL7Uv
j3aH4T5UXK0Aml71oB5X0F8ktnhprJDs4ws8hF7JvaC0W/Q6nDZxpPU2MWvIxPzd
uoTLe7PX4/qwJzWNRBNGBaK7PV6UN/EXQQ0XMYQjBpVUIhulPtv/8iqvSByqMXtP
vJxQX6cN29ZicVfqqBD1PdLCICwZl48FO3ZCg7fHighol3VyMpt5f7EZDtY6NppP
5sUh8hhm/hTS72Ar6763I4ioRG34q+bWhuL0oIHap6Okfhl4bsCAIgcSh4UVrvaa
ogmVHs/cLHAppTZ1gvmdLy8llsbThseHM9yB34KfQjwUSKz0on9THW/3w3vPW3BO
Mk8zR3uL5+YgXtCjAv+bsMEN6JFW7Vusvq4eVoqDp/TTu8zUV7XBY91IwWLPGxKJ
KBedq4b/6f91JmiPf2oK6xcjJ4VfUGVXANCbqTDdDDVp7KbC6awItZPgDbztaYtz
rg3Al8E3psC4NxEeTtTF2vhGtWQay7NrJEPHkX6VD5FmcBILEtM=
=+Vb3
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: