1
0

30 Commits

Author SHA256 Message Date
2bd608241f Accepting request 1313063 from Java:Factory
October 2025 CPU

OBS-URL: https://build.opensuse.org/request/show/1313063
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-21-openjdk?expand=0&rev=22
2025-10-27 13:37:53 +00:00
c04e33bb8d OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=83 2025-10-22 15:08:54 +00:00
1391c13277 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=82 2025-10-22 15:06:55 +00:00
76b51d5967 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=81 2025-10-22 08:53:56 +00:00
803ecded08 Accepting request 1307558 from Java:Factory
Refresh the config.sub and config.guess files

OBS-URL: https://build.opensuse.org/request/show/1307558
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-21-openjdk?expand=0&rev=21
2025-09-29 14:31:30 +00:00
2637fef3e3 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=79 2025-09-28 11:06:16 +00:00
b82108986e OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=78 2025-09-28 11:04:54 +00:00
182695c211 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=77 2025-08-25 11:22:05 +00:00
e366a32a9a Accepting request 1296294 from Java:Factory
OBS-URL: https://build.opensuse.org/request/show/1296294
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-21-openjdk?expand=0&rev=20
2025-07-30 09:41:52 +00:00
4452e52b0b - jdk-8354941.patch: JDK-8354941: Build failure with glibc 2.42 due to
uabs() name collision

OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=75
2025-07-29 10:19:56 +00:00
340b480f80 Accepting request 1294995 from Java:Factory
Do not embed rebuild counter (bsc#1246806)

OBS-URL: https://build.opensuse.org/request/show/1294995
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-21-openjdk?expand=0&rev=19
2025-07-23 14:32:20 +00:00
e98d947f91 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=73 2025-07-22 06:20:19 +00:00
1718500d11 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=72 2025-07-21 16:48:06 +00:00
4069333c02 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=71 2025-07-21 10:59:14 +00:00
a267cf8d73 Accepting request 1294290 from Java:Factory
July 2025 CPU

OBS-URL: https://build.opensuse.org/request/show/1294290
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-21-openjdk?expand=0&rev=18
2025-07-20 13:28:06 +00:00
f122d788da OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=69 2025-07-18 05:56:58 +00:00
2d04ed90fb OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=68 2025-07-16 09:21:16 +00:00
e62e47b207 Add java-40y.patch to allow compilation of openjdk for 40 years (bsc#1213796)
OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=67
2025-07-15 07:14:57 +00:00
35af86c975 Accepting request 1272285 from Java:Factory
April 2025 CPU

OBS-URL: https://build.opensuse.org/request/show/1272285
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-21-openjdk?expand=0&rev=17
2025-04-24 15:25:17 +00:00
919acf57ac OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=65 2025-04-24 04:12:57 +00:00
c64b5b4551 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=64 2025-04-16 06:58:20 +00:00
32e28fb3d3 Accepting request 1239624 from Java:Factory
January 2025 CPU

OBS-URL: https://build.opensuse.org/request/show/1239624
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-21-openjdk?expand=0&rev=16
2025-01-23 16:56:55 +00:00
9eb1ba06a0 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=62 2025-01-22 16:51:18 +00:00
463bdf60c5 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=61 2025-01-22 14:26:54 +00:00
29dedbf7d7 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=60 2025-01-22 14:14:24 +00:00
f7a314ed20 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=59 2025-01-22 12:09:12 +00:00
64c440aadf OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=58 2025-01-22 08:17:49 +00:00
daab80bbfd Accepting request 1220065 from Java:Factory
October 2024 CPU

OBS-URL: https://build.opensuse.org/request/show/1220065
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-21-openjdk?expand=0&rev=15
2024-11-02 15:11:39 +00:00
a902a18218 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=56 2024-11-01 12:38:58 +00:00
e63236f663 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-21-openjdk?expand=0&rev=55 2024-10-16 09:55:37 +00:00
9 changed files with 3492 additions and 248 deletions

31
config.guess vendored
View File

@@ -1,10 +1,10 @@
#! /bin/sh #! /bin/sh
# Attempt to guess a canonical system name. # Attempt to guess a canonical system name.
# Copyright 1992-2023 Free Software Foundation, Inc. # Copyright 1992-2025 Free Software Foundation, Inc.
# shellcheck disable=SC2006,SC2268 # see below for rationale # shellcheck disable=SC2006,SC2268 # see below for rationale
timestamp='2023-07-20' timestamp='2025-07-10'
# This file is free software; you can redistribute it and/or modify it # This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by # under the terms of the GNU General Public License as published by
@@ -60,7 +60,7 @@ version="\
GNU config.guess ($timestamp) GNU config.guess ($timestamp)
Originally written by Per Bothner. Originally written by Per Bothner.
Copyright 1992-2023 Free Software Foundation, Inc. Copyright 1992-2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -123,7 +123,7 @@ set_cc_for_build() {
dummy=$tmp/dummy dummy=$tmp/dummy
case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
,,) echo "int x;" > "$dummy.c" ,,) echo "int x;" > "$dummy.c"
for driver in cc gcc c89 c99 ; do for driver in cc gcc c17 c99 c89 ; do
if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
CC_FOR_BUILD=$driver CC_FOR_BUILD=$driver
break break
@@ -155,6 +155,9 @@ Linux|GNU|GNU/*)
set_cc_for_build set_cc_for_build
cat <<-EOF > "$dummy.c" cat <<-EOF > "$dummy.c"
#if defined(__ANDROID__)
LIBC=android
#else
#include <features.h> #include <features.h>
#if defined(__UCLIBC__) #if defined(__UCLIBC__)
LIBC=uclibc LIBC=uclibc
@@ -162,6 +165,8 @@ Linux|GNU|GNU/*)
LIBC=dietlibc LIBC=dietlibc
#elif defined(__GLIBC__) #elif defined(__GLIBC__)
LIBC=gnu LIBC=gnu
#elif defined(__LLVM_LIBC__)
LIBC=llvm
#else #else
#include <stdarg.h> #include <stdarg.h>
/* First heuristic to detect musl libc. */ /* First heuristic to detect musl libc. */
@@ -169,6 +174,7 @@ Linux|GNU|GNU/*)
LIBC=musl LIBC=musl
#endif #endif
#endif #endif
#endif
EOF EOF
cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
eval "$cc_set_libc" eval "$cc_set_libc"
@@ -628,6 +634,7 @@ EOF
sed 's/^ //' << EOF > "$dummy.c" sed 's/^ //' << EOF > "$dummy.c"
#include <sys/systemcfg.h> #include <sys/systemcfg.h>
int
main () main ()
{ {
if (!__power_pc()) if (!__power_pc())
@@ -712,7 +719,8 @@ EOF
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
int main () int
main ()
{ {
#if defined(_SC_KERNEL_BITS) #if defined(_SC_KERNEL_BITS)
long bits = sysconf(_SC_KERNEL_BITS); long bits = sysconf(_SC_KERNEL_BITS);
@@ -904,7 +912,7 @@ EOF
fi fi
;; ;;
*:FreeBSD:*:*) *:FreeBSD:*:*)
UNAME_PROCESSOR=`/usr/bin/uname -p` UNAME_PROCESSOR=`uname -p`
case $UNAME_PROCESSOR in case $UNAME_PROCESSOR in
amd64) amd64)
UNAME_PROCESSOR=x86_64 ;; UNAME_PROCESSOR=x86_64 ;;
@@ -1589,6 +1597,12 @@ EOF
*:Unleashed:*:*) *:Unleashed:*:*)
GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE
;; ;;
x86_64:[Ii]ronclad:*:*|i?86:[Ii]ronclad:*:*)
GUESS=$UNAME_MACHINE-pc-ironclad-mlibc
;;
*:[Ii]ronclad:*:*)
GUESS=$UNAME_MACHINE-unknown-ironclad-mlibc
;;
esac esac
# Do we have a guess based on uname results? # Do we have a guess based on uname results?
@@ -1612,6 +1626,7 @@ cat > "$dummy.c" <<EOF
#endif #endif
#endif #endif
#endif #endif
int
main () main ()
{ {
#if defined (sony) #if defined (sony)
@@ -1796,8 +1811,8 @@ fi
exit 1 exit 1
# Local variables: # Local variables:
# eval: (add-hook 'before-save-hook 'time-stamp) # eval: (add-hook 'before-save-hook 'time-stamp nil t)
# time-stamp-start: "timestamp='" # time-stamp-start: "timestamp='"
# time-stamp-format: "%:y-%02m-%02d" # time-stamp-format: "%Y-%02m-%02d"
# time-stamp-end: "'" # time-stamp-end: "'"
# End: # End:

901
config.sub vendored

File diff suppressed because it is too large Load Diff

View File

@@ -130,7 +130,7 @@
BASIC_JDKLIB_LIBS_TARGET="" BASIC_JDKLIB_LIBS_TARGET=""
--- a/make/autoconf/spec.gmk.in --- a/make/autoconf/spec.gmk.in
+++ b/make/autoconf/spec.gmk.in +++ b/make/autoconf/spec.gmk.in
@@ -874,6 +874,11 @@ INSTALL_SYSCONFDIR=@sysconfdir@ @@ -873,6 +873,11 @@ INSTALL_SYSCONFDIR=@sysconfdir@
# Libraries # Libraries
# #
@@ -2015,7 +2015,7 @@
# #
# Controls compatibility mode for JKS and PKCS12 keystore types. # Controls compatibility mode for JKS and PKCS12 keystore types.
# #
@@ -336,6 +388,13 @@ package.definition=sun.misc.,\ @@ -332,6 +384,13 @@ package.definition=sun.misc.,\
# #
security.overridePropertiesFile=true security.overridePropertiesFile=true
@@ -2932,7 +2932,7 @@
private static final String PUBLIC = "public"; private static final String PUBLIC = "public";
private static final String PRIVATE = "private"; private static final String PRIVATE = "private";
private static final String SECRET = "secret"; private static final String SECRET = "secret";
@@ -401,9 +406,10 @@ abstract class P11Key implements Key, Length { @@ -414,9 +419,10 @@ abstract class P11Key implements Key, Length {
new CK_ATTRIBUTE(CKA_EXTRACTABLE), new CK_ATTRIBUTE(CKA_EXTRACTABLE),
}); });
@@ -2945,7 +2945,7 @@
return switch (algorithm) { return switch (algorithm) {
case "RSA" -> P11RSAPrivateKeyInternal.of(session, keyID, algorithm, case "RSA" -> P11RSAPrivateKeyInternal.of(session, keyID, algorithm,
@@ -455,7 +461,8 @@ abstract class P11Key implements Key, Length { @@ -468,7 +474,8 @@ abstract class P11Key implements Key, Length {
public String getFormat() { public String getFormat() {
token.ensureValid(); token.ensureValid();
@@ -2955,11 +2955,6 @@
return null; return null;
} else { } else {
return "RAW"; return "RAW";
@@ -1625,4 +1632,3 @@ final class SessionKeyRef extends PhantomReference<P11Key> {
this.clear();
}
}
-
--- a/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/SunPKCS11.java --- a/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/SunPKCS11.java
+++ b/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/SunPKCS11.java +++ b/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/SunPKCS11.java
@@ -26,6 +26,9 @@ @@ -26,6 +26,9 @@
@@ -2970,7 +2965,7 @@
+import java.lang.invoke.MethodHandles; +import java.lang.invoke.MethodHandles;
+import java.lang.invoke.MethodType; +import java.lang.invoke.MethodType;
import java.util.*; import java.util.*;
import java.util.stream.Collectors;
import java.security.*; import java.security.*;
@@ -42,10 +45,12 @@ import javax.security.auth.callback.PasswordCallback; @@ -42,10 +45,12 @@ import javax.security.auth.callback.PasswordCallback;
@@ -3055,7 +3050,7 @@
return new SunPKCS11(new Config(newConfigName)); return new SunPKCS11(new Config(newConfigName));
} }
}); });
@@ -336,9 +397,19 @@ public final class SunPKCS11 extends AuthProvider { @@ -325,9 +386,19 @@ public final class SunPKCS11 extends AuthProvider {
// request multithreaded access first // request multithreaded access first
initArgs.flags = CKF_OS_LOCKING_OK; initArgs.flags = CKF_OS_LOCKING_OK;
PKCS11 tmpPKCS11; PKCS11 tmpPKCS11;
@@ -3077,7 +3072,7 @@
} catch (PKCS11Exception e) { } catch (PKCS11Exception e) {
if (debug != null) { if (debug != null) {
debug.println("Multi-threaded initialization failed: " + e); debug.println("Multi-threaded initialization failed: " + e);
@@ -353,8 +424,9 @@ public final class SunPKCS11 extends AuthProvider { @@ -342,8 +413,9 @@ public final class SunPKCS11 extends AuthProvider {
} else { } else {
initArgs.flags = 0; initArgs.flags = 0;
} }
@@ -3089,7 +3084,7 @@
} }
p11 = tmpPKCS11; p11 = tmpPKCS11;
@@ -1400,11 +1472,52 @@ public final class SunPKCS11 extends AuthProvider { @@ -1388,11 +1460,52 @@ public final class SunPKCS11 extends AuthProvider {
} }
@Override @Override
@@ -3142,7 +3137,7 @@
try { try {
return newInstance0(param); return newInstance0(param);
} catch (PKCS11Exception e) { } catch (PKCS11Exception e) {
@@ -1761,6 +1874,9 @@ public final class SunPKCS11 extends AuthProvider { @@ -1749,6 +1862,9 @@ public final class SunPKCS11 extends AuthProvider {
try { try {
session = token.getOpSession(); session = token.getOpSession();
p11.C_Logout(session.id()); p11.C_Logout(session.id());
@@ -3256,7 +3251,7 @@
} }
if (omitInitialize == false) { if (omitInitialize == false) {
try { try {
@@ -1976,4 +2004,194 @@ static class SynchronizedPKCS11 extends PKCS11 { @@ -2012,4 +2040,194 @@ static class SynchronizedPKCS11 extends PKCS11 {
super.C_GenerateRandom(hSession, randomData); super.C_GenerateRandom(hSession, randomData);
} }
} }
@@ -4166,3 +4161,4 @@
+ } + }
+ } + }
+} +}

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
# #
# spec file for package java-21-openjdk # spec file for package java-21-openjdk
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC and contributors
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -33,8 +33,8 @@
# Standard JPackage naming and versioning defines. # Standard JPackage naming and versioning defines.
%global featurever 21 %global featurever 21
%global interimver 0 %global interimver 0
%global updatever 4 %global updatever 9
%global buildver 7 %global buildver 10
%global openjdk_repo jdk21u %global openjdk_repo jdk21u
%global openjdk_tag jdk-%{featurever}%{?updatever:.%{interimver}.%{updatever}}%{?patchver:.%{patchver}}+%{buildver} %global openjdk_tag jdk-%{featurever}%{?updatever:.%{interimver}.%{updatever}}%{?patchver:.%{patchver}}+%{buildver}
%global openjdk_dir %{openjdk_repo}-jdk-%{featurever}%{?updatever:.%{interimver}.%{updatever}}%{?patchver:.%{patchver}}-%{buildver} %global openjdk_dir %{openjdk_repo}-jdk-%{featurever}%{?updatever:.%{interimver}.%{updatever}}%{?patchver:.%{patchver}}-%{buildver}
@@ -152,6 +152,7 @@ Patch3: java-atk-wrapper-security.patch
Patch4: PStack-808293.patch Patch4: PStack-808293.patch
# Allow multiple initialization of PKCS11 libraries # Allow multiple initialization of PKCS11 libraries
Patch5: multiple-pkcs11-library-init.patch Patch5: multiple-pkcs11-library-init.patch
Patch7: reproducible-directory-mtime.patch
# Fix instantiation of VM on ZERO # Fix instantiation of VM on ZERO
Patch8: zero-ranges.patch Patch8: zero-ranges.patch
Patch9: reproducible-javadoc-timestamp.patch Patch9: reproducible-javadoc-timestamp.patch
@@ -173,6 +174,7 @@ Patch20: loadAssistiveTechnologies.patch
Patch200: ppc_stack_overflow_fix.patch Patch200: ppc_stack_overflow_fix.patch
# #
Patch302: disable-doclint-by-default.patch Patch302: disable-doclint-by-default.patch
Patch303: java-40y.patch
# #
BuildRequires: alsa-lib-devel BuildRequires: alsa-lib-devel
BuildRequires: autoconf BuildRequires: autoconf
@@ -389,6 +391,7 @@ rm -rvf src/java.desktop/share/native/liblcms/lcms2*
%patch -P 3 -p1 %patch -P 3 -p1
%patch -P 4 -p1 %patch -P 4 -p1
%patch -P 5 -p1 %patch -P 5 -p1
%patch -P 7 -p1
%patch -P 8 -p1 %patch -P 8 -p1
%patch -P 9 -p1 %patch -P 9 -p1
%patch -P 10 -p1 %patch -P 10 -p1
@@ -408,6 +411,7 @@ rm -rvf src/java.desktop/share/native/liblcms/lcms2*
%patch -P 200 -p1 %patch -P 200 -p1
%patch -P 302 -p1 %patch -P 302 -p1
%patch -P 303 -p1
# Extract systemtap tapsets # Extract systemtap tapsets
@@ -465,7 +469,7 @@ bash ../configure \
--with-version-pre="" \ --with-version-pre="" \
%endif %endif
--with-version-build="%{buildver}" \ --with-version-build="%{buildver}" \
--with-version-opt="suse-%{release}-%{_arch}" \ --with-version-opt="suse-%{suse_version}-%{_arch}" \
%if %{with zero} %if %{with zero}
--with-jvm-variants=zero \ --with-jvm-variants=zero \
%else %else

13
java-40y.patch Normal file
View File

@@ -0,0 +1,13 @@
--- jdk21u-jdk-21.0.1-12/make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java
+++ jdk21u-jdk-21.0.1-12/make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java
@@ -311,8 +311,8 @@ public class GenerateCurrencyData {
checkCurrencyCode(newCurrency);
String timeString = currencyInfo.substring(4, length - 4);
long time = format.parse(timeString).getTime();
- if (Math.abs(time - System.currentTimeMillis()) > ((long) 10) * 365 * 24 * 60 * 60 * 1000) {
- throw new RuntimeException("time is more than 10 years from present: " + time);
+ if (Math.abs(time - System.currentTimeMillis()) > ((long) 40) * 365 * 24 * 60 * 60 * 1000) {
+ throw new RuntimeException("time is more than 40 years from present: " + time);
}
specialCaseCutOverTimes[specialCaseCount] = time;
specialCaseOldCurrencies[specialCaseCount] = oldCurrency;

BIN
jdk-21.0.4+7.tar.gz (Stored with Git LFS)

Binary file not shown.

3
jdk-21.0.9+10.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f2f9a21fd61ab3f63dac7e3d8747e849c9e0a1f14ed617c239ef9911755c756b
size 113793934

View File

@@ -0,0 +1,17 @@
diff --git a/src/java.base/share/classes/java/io/File.java b/src/java.base/share/classes/java/io/File.java
index 652f28074cc..63a6c2f2831 100644
--- a/src/java.base/share/classes/java/io/File.java
+++ b/src/java.base/share/classes/java/io/File.java
@@ -1378,7 +1378,11 @@ public class File
if (isInvalid()) {
return false;
}
- return FS.createDirectory(this);
+ boolean result = FS.createDirectory(this);
+ if ( result && System.getenv("SOURCE_DATE_EPOCH") != null ) {
+ FS.setLastModifiedTime(this, 1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH")));
+ }
+ return result;
}
/**