Your message dated Sun, 24 Dec 2023 09:29:04 +0000
with message-id <[email protected]>
and subject line Bug#1057390: fixed in openjdk-21 21.0.1+12-3
has caused the Debian Bug report #1057390,
regarding openjdk-21: Please add patch to support SPARCV9
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.)


-- 
1057390: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1057390
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: openjdk-21
Version: 21.0.1+12-2
Severity: normal
Tags: patch
User: [email protected]
Usertags: sparc64
X-Debbugs-Cc: [email protected]

Hello!

The attached patch adds SPARCV9 support to OpenJDK. It has been successfully
tested against OpenJDK 21 on stadler.debian.net. I will use this patch now
to build openjdk-21 and upload to unreleased.

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
Index: 
openjdk-21-21.0.1+12/src/java.base/share/classes/jdk/internal/util/Architecture.java
===================================================================
--- 
openjdk-21-21.0.1+12.orig/src/java.base/share/classes/jdk/internal/util/Architecture.java
+++ 
openjdk-21-21.0.1+12/src/java.base/share/classes/jdk/internal/util/Architecture.java
@@ -50,6 +50,7 @@ public enum Architecture {
     IA64,
     M68K,
     SH,
+    SPARCV9,
     X32,
     PPC,
     MIPSEL,
@@ -171,6 +172,15 @@ public enum Architecture {
     }
 
     /**
+     * {@return {@code true} if the current architecture is SPARCV9}
+     * Use {@link #isLittleEndian()} to determine big or little endian.
+     */
+    @ForceInline
+    public static boolean isSPARCV9() {
+        return PlatformProps.TARGET_ARCH_IS_SPARCV9;
+    }
+
+    /**
      * {@return {@code true} if the current architecture is M68K}
      * Use {@link #isLittleEndian()} to determine big or little endian.
      */
Index: openjdk-21-21.0.1+12/test/jdk/jdk/internal/util/ArchTest.java
===================================================================
--- openjdk-21-21.0.1+12.orig/test/jdk/jdk/internal/util/ArchTest.java
+++ openjdk-21-21.0.1+12/test/jdk/jdk/internal/util/ArchTest.java
@@ -41,6 +41,7 @@ import static jdk.internal.util.Architec
 import static jdk.internal.util.Architecture.IA64;
 import static jdk.internal.util.Architecture.PPC;
 import static jdk.internal.util.Architecture.SH;
+import static jdk.internal.util.Architecture.SPARCV9;
 import static jdk.internal.util.Architecture.X32;
 import static jdk.internal.util.Architecture.M68K;
 import static jdk.internal.util.Architecture.MIPSEL;
@@ -93,6 +94,7 @@ public class ArchTest {
             case "m68k" -> M68K;
             case "ppc" -> PPC;
             case "sh" -> SH;
+            case "sparcv9" -> SPARCV9;
             case "x32" -> X32;
             default -> OTHER;
         };
@@ -121,6 +123,7 @@ public class ArchTest {
                 Arguments.of(HPPA, Architecture.isHPPA()),
                 Arguments.of(IA64, Architecture.isIA64()),
                 Arguments.of(SH, Architecture.isSH()),
+                Arguments.of(SPARCV9, Architecture.isSPARCV9()),
                 Arguments.of(X32, Architecture.isX32()),
                 Arguments.of(PPC64, Architecture.isPPC64())
         );
Index: 
openjdk-21-21.0.1+12/src/java.base/share/classes/jdk/internal/util/PlatformProps.java.template
===================================================================
--- 
openjdk-21-21.0.1+12.orig/src/java.base/share/classes/jdk/internal/util/PlatformProps.java.template
+++ 
openjdk-21-21.0.1+12/src/java.base/share/classes/jdk/internal/util/PlatformProps.java.template
@@ -64,6 +64,7 @@ class PlatformProps {
     static final boolean TARGET_ARCH_IS_MIPS64EL= "@@OPENJDK_TARGET_CPU@@" == 
"mips64el";
     static final boolean TARGET_ARCH_IS_X32     = "@@OPENJDK_TARGET_CPU@@" == 
"x32";
     static final boolean TARGET_ARCH_IS_SH      = "@@OPENJDK_TARGET_CPU@@" == 
"sh";
+    static final boolean TARGET_ARCH_IS_SPARCV9 = "@@OPENJDK_TARGET_CPU@@" == 
"sparcv9";
     static final boolean TARGET_ARCH_IS_M68K    = "@@OPENJDK_TARGET_CPU@@" == 
"m68k";
     static final boolean TARGET_ARCH_IS_PPC     = "@@OPENJDK_TARGET_CPU@@" == 
"ppc";
     static final boolean TARGET_ARCH_IS_ALPHA   = "@@OPENJDK_TARGET_CPU@@" == 
"alpha";

--- End Message ---
--- Begin Message ---
Source: openjdk-21
Source-Version: 21.0.1+12-3
Done: Matthias Klose <[email protected]>

We believe that the bug you reported is fixed in the latest version of
openjdk-21, 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.
Matthias Klose <[email protected]> (supplier of updated openjdk-21 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: SHA512

Format: 1.8
Date: Sun, 24 Dec 2023 10:01:31 +0100
Source: openjdk-21
Architecture: source
Version: 21.0.1+12-3
Distribution: unstable
Urgency: medium
Maintainer: OpenJDK Team <[email protected]>
Changed-By: Matthias Klose <[email protected]>
Closes: 1057390
Changes:
 openjdk-21 (21.0.1+12-3) unstable; urgency=medium
 .
   [ Pushkar Kulkarni ]
   * debian/copyright: Fix whitespace issues.
 .
   [ Vladimir Petko ]
   * d/copyright: Fix lintian warning.
 .
   [ Matthias Klose ]
   * Add sparc64 defines (patch by Adrian Glaubitz). Closes: #1057390.
   * d/copyright: Fix source location.
Checksums-Sha1:
 baea4bc8eb64099f9babb003549d23c957209bcb 4908 openjdk-21_21.0.1+12-3.dsc
 a2633430f6145f97eee40df09d9a0f6226c548ca 202560 
openjdk-21_21.0.1+12-3.debian.tar.xz
 23b6a86d79a9403a45a4d34012b5e25586333157 8982 
openjdk-21_21.0.1+12-3_source.buildinfo
Checksums-Sha256:
 4b88c8b5524c3eb9b7d893151c2a05caf95e18a84c57cb7f5502658554a6db10 4908 
openjdk-21_21.0.1+12-3.dsc
 f48fd5b32c138b0482e3a22c2b5c18ed610e5e710247455add9b8497d93844a8 202560 
openjdk-21_21.0.1+12-3.debian.tar.xz
 d3012ac3dec7291143506c8a35977ff419e1417ff67ec4b591a8e81eb24b019b 8982 
openjdk-21_21.0.1+12-3_source.buildinfo
Files:
 3798a069d410695b25b60112eb15c1ab 4908 java optional openjdk-21_21.0.1+12-3.dsc
 61855d90f01874e873587bd3e3e07c85 202560 java optional 
openjdk-21_21.0.1+12-3.debian.tar.xz
 91753d58a193b0cd0bba0bdab4e378d8 8982 java optional 
openjdk-21_21.0.1+12-3_source.buildinfo

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

iQJEBAEBCgAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmWH8/EQHGRva29AdWJ1
bnR1LmNvbQAKCRC9fqpgd4+m9b4RD/0XGbEQTSOOjhMK/f858NGRrTDQTq9NFt8x
Bzgvf2ARLhXzrsbIyhuT5bhCPq6vazqjnY9rpLnIBk/1pMnXZnSfgN3glgKAHlre
9CtAkft0yjXO2YObAc9pTHqbcE70q56mpQ2yaJtTCTMP+/uAGNH9CtkIxTqwGlRS
16M0Z3nM5y/yFxpaRz1aY3nsP2pAYlszhqkFsHA/F6js1zgpRhn3jtV1qndYFr+4
iQXvfuIdp2DCOcd34S5eoVTlI3xCJbxG9vf5nuBf/egoNmsjOanr/nYzGhfPY1pX
0lsI9wYzN2D8CbmgbctwDgFlcaowstASRUXhVQG5FXFqpWbtyeNL9ra/n58F08g4
nrpoCO2FZpUSaJk8KZyVYI/0gNqjKG9RVGqVfcpI0Yuz66xB1nsnsomdbOTJdc4j
/0JYMLgk1Jz1ETUTfiApxevEDjDOA6LxUAgWqU7nrl7GTZDoZQ+Hs2tama2Vetya
KaKSEGtRlidp31npYKNYaUSRV6xnNvgc9oUF/uMk2/JmWPsfYE29oPJ9gV8SlZk0
yyj9hywxTPAuM4UrzPKiFw6+prnzSVL1V7lArnBcRWilywxysJP68Qf/h5m7IEfT
KWD+izVNazGHC5ytRDkpPaQJD8jTQK9vcNzqbb6U55JGe3cw1hp5Ze2uKuXCWIIy
wG24su+Kew==
=izxZ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to