forked from pool/java-21-openjdk
Compare commits
63 Commits
Author | SHA256 | Date | |
---|---|---|---|
35af86c975 | |||
919acf57ac | |||
c64b5b4551 | |||
32e28fb3d3 | |||
9eb1ba06a0 | |||
463bdf60c5 | |||
29dedbf7d7 | |||
f7a314ed20 | |||
64c440aadf | |||
daab80bbfd | |||
a902a18218 | |||
e63236f663 | |||
97d2c9f48a | |||
1c75a187f5 | |||
01ea7f0f62 | |||
802ded2bf8 | |||
b5250bf2fc | |||
2f6928b995 | |||
cc62287e5e | |||
4d86acb755 | |||
bb54d40400 | |||
0fe4157663 | |||
bb152d1028 | |||
db1e9dba6d | |||
394e97c3a3 | |||
f51043a488 | |||
d57acac37a | |||
8bf0aad0e4 | |||
95ba7a45f8 | |||
2d00d4948f | |||
a14532fe55 | |||
49fde4f730 | |||
7555b028d9 | |||
1e42e311e6 | |||
939ed93f24 | |||
934ec395a3 | |||
dd141b5025 | |||
4c6254726a | |||
add6151b9f | |||
466b4b7d74 | |||
a265df7707 | |||
44ab627e58 | |||
20ee8b2782 | |||
28ecd7d47a | |||
25dd0eb035 | |||
ebb6dd49c3 | |||
9bffec2d92 | |||
3f7f84674f | |||
d74eb8008c | |||
994be4bb94 | |||
d0cb0d345a | |||
4d36168742 | |||
54792bd1c9 | |||
f86a1e4395 | |||
776a53d6e8 | |||
437ef6518c | |||
1c32110baf | |||
82260ed21d | |||
7a97e84593 | |||
35aa64b58a | |||
6a6add16da | |||
397055449f | |||
2ce868f12c |
26
fips.patch
26
fips.patch
@ -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
@ -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
|
||||||
#
|
#
|
||||||
# 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 7
|
||||||
%global buildver 7
|
%global buildver 6
|
||||||
%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
|
||||||
@ -389,6 +390,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
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:cbd43a063bc848728ca07e37918e3f43fcb49c19295ff8286c33b505425768f3
|
|
||||||
size 112525572
|
|
BIN
jdk-21.0.4+7.tar.gz
(Stored with Git LFS)
BIN
jdk-21.0.4+7.tar.gz
(Stored with Git LFS)
Binary file not shown.
3
jdk-21.0.7+6.tar.gz
Normal file
3
jdk-21.0.7+6.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c5debf63c076409bad7a655de549241c038ae99cd8be80d00183eed5d1d7aeac
|
||||||
|
size 113300326
|
17
reproducible-directory-mtime.patch
Normal file
17
reproducible-directory-mtime.patch
Normal 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
Loading…
x
Reference in New Issue
Block a user