forked from pool/java-21-openjdk
Compare commits
12 Commits
Author | SHA256 | Date | |
---|---|---|---|
35af86c975 | |||
919acf57ac | |||
c64b5b4551 | |||
32e28fb3d3 | |||
9eb1ba06a0 | |||
463bdf60c5 | |||
29dedbf7d7 | |||
f7a314ed20 | |||
64c440aadf | |||
daab80bbfd | |||
a902a18218 | |||
e63236f663 |
26
fips.patch
26
fips.patch
@ -130,7 +130,7 @@
|
||||
BASIC_JDKLIB_LIBS_TARGET=""
|
||||
--- a/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
|
||||
#
|
||||
|
||||
@ -2015,7 +2015,7 @@
|
||||
#
|
||||
# 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
|
||||
|
||||
@ -2932,7 +2932,7 @@
|
||||
private static final String PUBLIC = "public";
|
||||
private static final String PRIVATE = "private";
|
||||
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),
|
||||
});
|
||||
|
||||
@ -2945,7 +2945,7 @@
|
||||
|
||||
return switch (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() {
|
||||
token.ensureValid();
|
||||
@ -2955,11 +2955,6 @@
|
||||
return null;
|
||||
} else {
|
||||
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
|
||||
+++ b/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/SunPKCS11.java
|
||||
@@ -26,6 +26,9 @@
|
||||
@ -2970,7 +2965,7 @@
|
||||
+import java.lang.invoke.MethodHandles;
|
||||
+import java.lang.invoke.MethodType;
|
||||
import java.util.*;
|
||||
|
||||
import java.util.stream.Collectors;
|
||||
import java.security.*;
|
||||
@@ -42,10 +45,12 @@ import javax.security.auth.callback.PasswordCallback;
|
||||
|
||||
@ -3055,7 +3050,7 @@
|
||||
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
|
||||
initArgs.flags = CKF_OS_LOCKING_OK;
|
||||
PKCS11 tmpPKCS11;
|
||||
@ -3077,7 +3072,7 @@
|
||||
} catch (PKCS11Exception e) {
|
||||
if (debug != null) {
|
||||
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 {
|
||||
initArgs.flags = 0;
|
||||
}
|
||||
@ -3089,7 +3084,7 @@
|
||||
}
|
||||
p11 = tmpPKCS11;
|
||||
|
||||
@@ -1400,11 +1472,52 @@ public final class SunPKCS11 extends AuthProvider {
|
||||
@@ -1388,11 +1460,52 @@ public final class SunPKCS11 extends AuthProvider {
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -3142,7 +3137,7 @@
|
||||
try {
|
||||
return newInstance0(param);
|
||||
} catch (PKCS11Exception e) {
|
||||
@@ -1761,6 +1874,9 @@ public final class SunPKCS11 extends AuthProvider {
|
||||
@@ -1749,6 +1862,9 @@ public final class SunPKCS11 extends AuthProvider {
|
||||
try {
|
||||
session = token.getOpSession();
|
||||
p11.C_Logout(session.id());
|
||||
@ -3256,7 +3251,7 @@
|
||||
}
|
||||
if (omitInitialize == false) {
|
||||
try {
|
||||
@@ -1976,4 +2004,194 @@ static class SynchronizedPKCS11 extends PKCS11 {
|
||||
@@ -2012,4 +2040,194 @@ static class SynchronizedPKCS11 extends PKCS11 {
|
||||
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
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -33,8 +33,8 @@
|
||||
# Standard JPackage naming and versioning defines.
|
||||
%global featurever 21
|
||||
%global interimver 0
|
||||
%global updatever 4
|
||||
%global buildver 7
|
||||
%global updatever 7
|
||||
%global buildver 6
|
||||
%global openjdk_repo jdk21u
|
||||
%global openjdk_tag 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
|
||||
# Allow multiple initialization of PKCS11 libraries
|
||||
Patch5: multiple-pkcs11-library-init.patch
|
||||
Patch7: reproducible-directory-mtime.patch
|
||||
# Fix instantiation of VM on ZERO
|
||||
Patch8: zero-ranges.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 4 -p1
|
||||
%patch -P 5 -p1
|
||||
%patch -P 7 -p1
|
||||
%patch -P 8 -p1
|
||||
%patch -P 9 -p1
|
||||
%patch -P 10 -p1
|
||||
|
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