Accepting request 1083018 from Java:Factory
April 2023 CPU OBS-URL: https://build.opensuse.org/request/show/1083018 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-17-openjdk?expand=0&rev=21
This commit is contained in:
commit
0a0ec1eec9
107
JDK-8303509.patch
Normal file
107
JDK-8303509.patch
Normal file
@ -0,0 +1,107 @@
|
|||||||
|
--- jdk17/src/java.base/share/classes/sun/nio/ch/Net.java 2023-04-19 08:11:27.942170484 +0200
|
||||||
|
+++ jdk17/src/java.base/share/classes/sun/nio/ch/Net.java 2023-04-26 14:03:06.115523856 +0200
|
||||||
|
@@ -109,8 +108,8 @@
|
||||||
|
/**
|
||||||
|
* Tells whether both IPV6_XXX and IP_XXX socket options should be set on
|
||||||
|
* IPv6 sockets. On some kernels, both IPV6_XXX and IP_XXX socket options
|
||||||
|
- * need to be set so that the settings are effective for IPv4 multicast
|
||||||
|
- * datagrams sent using the socket.
|
||||||
|
+ * need to be set so that the settings are effective for IPv4 connections
|
||||||
|
+ * and datagrams.
|
||||||
|
*/
|
||||||
|
static boolean shouldSetBothIPv4AndIPv6Options() {
|
||||||
|
return shouldSetBothIPv4AndIPv6Options0();
|
||||||
|
@@ -455,6 +454,23 @@
|
||||||
|
setIntOption0(fd, mayNeedConversion, key.level(), key.name(), arg, isIPv6);
|
||||||
|
}
|
||||||
|
|
||||||
|
+ /**
|
||||||
|
+ * Sets a IPPROTO_IPV6/IPPROTO level socket. Some platforms require both
|
||||||
|
+ * IPPROTO_IPV6 and IPPROTO socket options to be set when the socket is IPv6.
|
||||||
|
+ * In that case, the IPPROTO socket option is set on a best effort basis.
|
||||||
|
+ */
|
||||||
|
+ static <T> void setIpSocketOption(FileDescriptor fd, ProtocolFamily family,
|
||||||
|
+ SocketOption<T> opt, T value)
|
||||||
|
+ throws IOException
|
||||||
|
+ {
|
||||||
|
+ setSocketOption(fd, family, opt, value);
|
||||||
|
+ if (family == StandardProtocolFamily.INET6 && shouldSetBothIPv4AndIPv6Options()) {
|
||||||
|
+ try {
|
||||||
|
+ setSocketOption(fd, StandardProtocolFamily.INET, opt, value);
|
||||||
|
+ } catch (IOException ignore) { }
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
static Object getSocketOption(FileDescriptor fd, SocketOption<?> name)
|
||||||
|
throws IOException
|
||||||
|
{
|
||||||
|
@@ -489,7 +505,7 @@
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
- public static boolean isFastTcpLoopbackRequested() {
|
||||||
|
+ private static boolean isFastTcpLoopbackRequested() {
|
||||||
|
String loopbackProp = GetPropertyAction
|
||||||
|
.privilegedGetProperty("jdk.net.useFastTcpLoopback", "false");
|
||||||
|
return loopbackProp.isEmpty() ? true : Boolean.parseBoolean(loopbackProp);
|
||||||
|
--- jdk17/src/java.base/share/classes/sun/nio/ch/NioSocketImpl.java 2023-04-19 08:11:27.942170484 +0200
|
||||||
|
+++ jdk17/src/java.base/share/classes/sun/nio/ch/NioSocketImpl.java 2023-04-26 14:03:06.115523856 +0200
|
||||||
|
@@ -959,8 +959,8 @@
|
||||||
|
synchronized (stateLock) {
|
||||||
|
ensureOpen();
|
||||||
|
if (opt == StandardSocketOptions.IP_TOS) {
|
||||||
|
- // maps to IP_TOS or IPV6_TCLASS
|
||||||
|
- Net.setSocketOption(fd, family(), opt, value);
|
||||||
|
+ // maps to IPV6_TCLASS and/or IP_TOS
|
||||||
|
+ Net.setIpSocketOption(fd, family(), opt, value);
|
||||||
|
} else if (opt == StandardSocketOptions.SO_REUSEADDR) {
|
||||||
|
boolean b = (boolean) value;
|
||||||
|
if (Net.useExclusiveBind()) {
|
||||||
|
@@ -1034,7 +1034,7 @@
|
||||||
|
}
|
||||||
|
case IP_TOS: {
|
||||||
|
int i = intValue(value, "IP_TOS");
|
||||||
|
- Net.setSocketOption(fd, family(), StandardSocketOptions.IP_TOS, i);
|
||||||
|
+ Net.setIpSocketOption(fd, family(), StandardSocketOptions.IP_TOS, i);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case TCP_NODELAY: {
|
||||||
|
--- jdk17/src/java.base/share/classes/sun/nio/ch/SocketChannelImpl.java 2023-04-19 08:11:27.942170484 +0200
|
||||||
|
+++ jdk17/src/java.base/share/classes/sun/nio/ch/SocketChannelImpl.java 2023-04-26 14:03:06.115523856 +0200
|
||||||
|
@@ -265,8 +265,8 @@
|
||||||
|
|
||||||
|
if (isNetSocket()) {
|
||||||
|
if (name == StandardSocketOptions.IP_TOS) {
|
||||||
|
- // special handling for IP_TOS
|
||||||
|
- Net.setSocketOption(fd, family, name, value);
|
||||||
|
+ // maps to IPV6_TCLASS and/or IP_TOS
|
||||||
|
+ Net.setIpSocketOption(fd, family, name, value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
if (name == StandardSocketOptions.SO_REUSEADDR && Net.useExclusiveBind()) {
|
||||||
|
--- jdk17/src/java.base/unix/native/libnio/ch/Net.c 2023-04-19 08:11:27.974170704 +0200
|
||||||
|
+++ jdk17/src/java.base/unix/native/libnio/ch/Net.c 2023-04-26 14:03:06.115523856 +0200
|
||||||
|
@@ -159,10 +159,10 @@
|
||||||
|
Java_sun_nio_ch_Net_shouldSetBothIPv4AndIPv6Options0(JNIEnv* env, jclass cl)
|
||||||
|
{
|
||||||
|
#if defined(__linux__)
|
||||||
|
- /* Set both IPv4 and IPv6 socket options when setting multicast options */
|
||||||
|
+ /* Set both IPv4 and IPv6 socket options when setting IPPROTO_IPV6 options */
|
||||||
|
return JNI_TRUE;
|
||||||
|
#else
|
||||||
|
- /* Do not set both IPv4 and IPv6 socket options when setting multicast options */
|
||||||
|
+ /* Do not set both IPv4 and IPv6 socket options when setting IPPROTO_IPV6 options */
|
||||||
|
return JNI_FALSE;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
--- jdk17/src/java.base/windows/native/libnio/ch/Net.c 2023-04-19 08:11:27.978170731 +0200
|
||||||
|
+++ jdk17/src/java.base/windows/native/libnio/ch/Net.c 2023-04-26 14:03:06.115523856 +0200
|
||||||
|
@@ -126,7 +126,7 @@
|
||||||
|
JNIEXPORT jboolean JNICALL
|
||||||
|
Java_sun_nio_ch_Net_shouldSetBothIPv4AndIPv6Options0(JNIEnv* env, jclass cl)
|
||||||
|
{
|
||||||
|
- /* Set both IPv4 and IPv6 socket options when setting multicast options */
|
||||||
|
+ /* Set both IPv4 and IPv6 socket options when setting IPPROTO_IPV6 options */
|
||||||
|
return JNI_TRUE;
|
||||||
|
}
|
||||||
|
|
1676
fips.patch
1676
fips.patch
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -32,8 +32,8 @@
|
|||||||
# Standard JPackage naming and versioning defines.
|
# Standard JPackage naming and versioning defines.
|
||||||
%global featurever 17
|
%global featurever 17
|
||||||
%global interimver 0
|
%global interimver 0
|
||||||
%global updatever 6
|
%global updatever 7
|
||||||
%global buildver 10
|
%global buildver 7
|
||||||
%global openjdk_repo jdk17u
|
%global openjdk_repo jdk17u
|
||||||
%global openjdk_tag jdk-%{featurever}.%{interimver}.%{updatever}%{?patchver:.%{patchver}}+%{buildver}
|
%global openjdk_tag jdk-%{featurever}.%{interimver}.%{updatever}%{?patchver:.%{patchver}}+%{buildver}
|
||||||
%global openjdk_dir %{openjdk_repo}-jdk-%{featurever}.%{interimver}.%{updatever}%{?patchver:.%{patchver}}-%{buildver}
|
%global openjdk_dir %{openjdk_repo}-jdk-%{featurever}.%{interimver}.%{updatever}%{?patchver:.%{patchver}}-%{buildver}
|
||||||
@ -175,6 +175,7 @@ Patch20: loadAssistiveTechnologies.patch
|
|||||||
Patch200: ppc_stack_overflow_fix.patch
|
Patch200: ppc_stack_overflow_fix.patch
|
||||||
#
|
#
|
||||||
Patch300: JDK-8282944.patch
|
Patch300: JDK-8282944.patch
|
||||||
|
Patch301: JDK-8303509.patch
|
||||||
Patch302: disable-doclint-by-default.patch
|
Patch302: disable-doclint-by-default.patch
|
||||||
Patch303: alternative-tzdb_dat.patch
|
Patch303: alternative-tzdb_dat.patch
|
||||||
#
|
#
|
||||||
@ -414,6 +415,7 @@ rm -rvf src/java.desktop/share/native/liblcms/lcms2*
|
|||||||
%patch200 -p1
|
%patch200 -p1
|
||||||
|
|
||||||
%patch300 -p1
|
%patch300 -p1
|
||||||
|
%patch301 -p1
|
||||||
%patch302 -p1
|
%patch302 -p1
|
||||||
%patch303 -p1
|
%patch303 -p1
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:331bad1f80e98761eb9692863146fec647db573db5a5efa5b9bd6326d53a3472
|
|
||||||
size 105219345
|
|
3
jdk-17.0.7+7.tar.gz
Normal file
3
jdk-17.0.7+7.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:43b80a5aec5fce908e80858e9b34efdf1b49255a12ce303650325af65141d3e8
|
||||||
|
size 105565218
|
Loading…
Reference in New Issue
Block a user