Your message dated Sun, 04 Dec 2022 18:19:13 +0000
with message-id <[email protected]>
and subject line Bug#1025418: fixed in jffi 1.3.9+ds-5
has caused the Debian Bug report #1025418,
regarding jffi: Please add support for "riscv64" arch
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 [email protected]
immediately.)


-- 
1025418: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1025418
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: jffi
Version: 1.2.7-11
Severity: wishlist
Tags: ftbfs patch
User: [email protected]
Usertags: riscv64
X-Debbugs-Cc: [email protected], [email protected]

Hi,

Please add support this architecture, with the patch attached or an equivalent.

This package built well in the past on riscv64 but it seems that in recent
versions it needs some extra support.

I built the package locally on hardware, it built fine with the patch
0013-Add-support-for-riscv64.patch.  Also attached the whole debdiff.


Thanks and cheers.
--
Manuel A. Fernandez Montecelo <[email protected]>
diff -Nru jffi-1.3.9+ds/debian/changelog jffi-1.3.9+ds/debian/changelog
--- jffi-1.3.9+ds/debian/changelog      2022-12-04 05:45:16.000000000 +0000
+++ jffi-1.3.9+ds/debian/changelog      2022-12-04 10:22:42.000000000 +0000
@@ -1,3 +1,10 @@
+jffi (1.3.9+ds-4+0.riscv64.1) unreleased; urgency=medium
+
+  * Non-maintainer upload.
+  * riscv64: add support for architecture
+
+ -- Manuel A. Fernandez Montecelo <[email protected]>  Sun, 04 Dec 2022 10:22:42 
+0000
+
 jffi (1.3.9+ds-4) unstable; urgency=medium
 
   * Team upload.
diff -Nru jffi-1.3.9+ds/debian/patches/0013-Add-support-for-riscv64.patch 
jffi-1.3.9+ds/debian/patches/0013-Add-support-for-riscv64.patch
--- jffi-1.3.9+ds/debian/patches/0013-Add-support-for-riscv64.patch     
1970-01-01 00:00:00.000000000 +0000
+++ jffi-1.3.9+ds/debian/patches/0013-Add-support-for-riscv64.patch     
2022-12-04 10:22:32.000000000 +0000
@@ -0,0 +1,44 @@
+Index: jffi-1.3.9+ds/src/main/java/com/kenai/jffi/Platform.java
+===================================================================
+--- jffi-1.3.9+ds.orig/src/main/java/com/kenai/jffi/Platform.java
++++ jffi-1.3.9+ds/src/main/java/com/kenai/jffi/Platform.java
+@@ -108,6 +108,8 @@ public abstract class Platform {
+         MIPS(32),
+        /** MIPS64EL */
+         MIPS64EL(64),
++       /** RISCV64 */
++        RISCV64(64),
+         /** Unknown CPU */
+         UNKNOWN(64);
+ 
+@@ -250,6 +252,8 @@ public abstract class Platform {
+ 
+             } else if (Util.equalsIgnoreCase("mips64", archString, LOCALE) || 
Util.equalsIgnoreCase("mips64el", archString, LOCALE)) {
+                 return CPU.MIPS64EL;
++            } else if (Util.equalsIgnoreCase("riscv64", archString, LOCALE)) {
++                return CPU.RISCV64;
+             }
+             
+ 
+Index: jffi-1.3.9+ds/src/main/java/com/kenai/jffi/internal/StubLoader.java
+===================================================================
+--- jffi-1.3.9+ds.orig/src/main/java/com/kenai/jffi/internal/StubLoader.java
++++ jffi-1.3.9+ds/src/main/java/com/kenai/jffi/internal/StubLoader.java
+@@ -163,6 +163,8 @@ public class StubLoader {
+         MIPS,
+         /** MIPS 64-bit little endian */
+         MIPS64EL,
++        /** RISC-V 64-bit little endian */
++        RISCV64,
+         /** Unknown CPU */
+         UNKNOWN;
+ 
+@@ -233,6 +235,8 @@ public class StubLoader {
+             return CPU.MIPS;
+         } else if (Util.equalsIgnoreCase("mips64", archString, LOCALE) || 
Util.equalsIgnoreCase("mips64el", archString, LOCALE)) {
+             return CPU.MIPS64EL;
++        } else if (Util.equalsIgnoreCase("riscv64", archString, LOCALE)) {
++            return CPU.RISCV64;
+ 
+         }
+ 
diff -Nru jffi-1.3.9+ds/debian/patches/series 
jffi-1.3.9+ds/debian/patches/series
--- jffi-1.3.9+ds/debian/patches/series 2022-12-04 05:45:16.000000000 +0000
+++ jffi-1.3.9+ds/debian/patches/series 2022-12-04 10:06:03.000000000 +0000
@@ -10,3 +10,4 @@
 0010-output-test-results-to-console-instead-of-file.patch
 0011-Fix-tests-for-32-bit-ARM-armel-and-armhf.patch
 0012-Add-support-for-mips.patch
+0013-Add-support-for-riscv64.patch
Index: jffi-1.3.9+ds/src/main/java/com/kenai/jffi/Platform.java
===================================================================
--- jffi-1.3.9+ds.orig/src/main/java/com/kenai/jffi/Platform.java
+++ jffi-1.3.9+ds/src/main/java/com/kenai/jffi/Platform.java
@@ -108,6 +108,8 @@ public abstract class Platform {
         MIPS(32),
        /** MIPS64EL */
         MIPS64EL(64),
+       /** RISCV64 */
+        RISCV64(64),
         /** Unknown CPU */
         UNKNOWN(64);
 
@@ -250,6 +252,8 @@ public abstract class Platform {
 
             } else if (Util.equalsIgnoreCase("mips64", archString, LOCALE) || 
Util.equalsIgnoreCase("mips64el", archString, LOCALE)) {
                 return CPU.MIPS64EL;
+            } else if (Util.equalsIgnoreCase("riscv64", archString, LOCALE)) {
+                return CPU.RISCV64;
             }
             
 
Index: jffi-1.3.9+ds/src/main/java/com/kenai/jffi/internal/StubLoader.java
===================================================================
--- jffi-1.3.9+ds.orig/src/main/java/com/kenai/jffi/internal/StubLoader.java
+++ jffi-1.3.9+ds/src/main/java/com/kenai/jffi/internal/StubLoader.java
@@ -163,6 +163,8 @@ public class StubLoader {
         MIPS,
         /** MIPS 64-bit little endian */
         MIPS64EL,
+        /** RISC-V 64-bit little endian */
+        RISCV64,
         /** Unknown CPU */
         UNKNOWN;
 
@@ -233,6 +235,8 @@ public class StubLoader {
             return CPU.MIPS;
         } else if (Util.equalsIgnoreCase("mips64", archString, LOCALE) || 
Util.equalsIgnoreCase("mips64el", archString, LOCALE)) {
             return CPU.MIPS64EL;
+        } else if (Util.equalsIgnoreCase("riscv64", archString, LOCALE)) {
+            return CPU.RISCV64;
 
         }
 

--- End Message ---
--- Begin Message ---
Source: jffi
Source-Version: 1.3.9+ds-5
Done: Jérôme Charaoui <[email protected]>

We believe that the bug you reported is fixed in the latest version of
jffi, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jérôme Charaoui <[email protected]> (supplier of updated jffi 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 04 Dec 2022 12:48:47 -0500
Source: jffi
Architecture: source
Version: 1.3.9+ds-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers 
<[email protected]>
Changed-By: Jérôme Charaoui <[email protected]>
Closes: 1025418
Changes:
 jffi (1.3.9+ds-5) unstable; urgency=medium
 .
   * Team upload.
   * d/patches: fix mipsel patch
   * d/patches: add support for riscv64 architecture (Closes: #1025418)
Checksums-Sha1:
 abe11a3c210d3ca85bdb8602cd41b81726d9b889 1643 jffi_1.3.9+ds-5.dsc
 b9d0bef8e92d051ec12b084353ca50300329974c 11752 jffi_1.3.9+ds-5.debian.tar.xz
 6812216c96799dc681ca6249f3e90164cfb77d44 17180 jffi_1.3.9+ds-5_amd64.buildinfo
Checksums-Sha256:
 18d9eb4b03dc228dbdf04f6cc14cc573860f5c6eb45e78ef737df11959ecbf51 1643 
jffi_1.3.9+ds-5.dsc
 a59aa39d1b72cf2a4136681eae15a89a7af3f35ef5cbc6a770ae9916558bbcc5 11752 
jffi_1.3.9+ds-5.debian.tar.xz
 130275982199cd305aec4e8d6bf009a41bd59e78aa78365e4b907181a74b0c7b 17180 
jffi_1.3.9+ds-5_amd64.buildinfo
Files:
 6f59bc7426cb4959b27170e7e646d624 1643 java optional jffi_1.3.9+ds-5.dsc
 9788fe2a0b2de87314e89f8927206bcf 11752 java optional 
jffi_1.3.9+ds-5.debian.tar.xz
 3a9384cd3932440b0de55ea784f1becf 17180 java optional 
jffi_1.3.9+ds-5_amd64.buildinfo

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

iHUEARYIAB0WIQTAq04Rv2xblqv/eu5pxS9ljpiFQgUCY4zeFAAKCRBpxS9ljpiF
QnhEAP4uh7lStfo6THjnfKFCOfZjs3Um9XbViCnYxyjUCw75gwD/bNW5hqjipFUh
uQrEbIOK12Wi7YUPf34DtL4Zu2OydQ8=
=f2dm
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to