summaryrefslogtreecommitdiff
path: root/lang/openjdk7/patches
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2014-01-25 13:53:22 +0000
committerryoon <ryoon@pkgsrc.org>2014-01-25 13:53:22 +0000
commit8b03024e536f27114e161b8449e20409818b89d3 (patch)
tree4d541f5bbcc076df697374ed7178cb668e3908b1 /lang/openjdk7/patches
parent0aff04381326d9195338ee9b5dc3a3b1ca3f0a72 (diff)
downloadpkgsrc-8b03024e536f27114e161b8449e20409818b89d3.tar.gz
Update to 1.7.51
I cannot find release notes for OpenJDK7, I will quote from Oracle's JDK 7u51 release notes. Changelog: 7u51: http://www.oracle.com/technetwork/java/javase/7u51-relnotes-2085002.html Olson Data 2013h JDK 7u51 contains Olson time zone data version 2013h. New Features and Changes Jarsigner updated to encourage timestamping Timestamping for a signed jar is now strongly recommended. The Jarsigner tool will print out an informational warning at signing or verifying when timestamp is missing. For more information, see Signing JAR Files. See 8023338. Changes to Security Slider: The following changes to Security Slider were included in this release(7u51): Block Self-Signed and Unsigned applets on High Security Setting Require Permissions Attribute for High Security Setting Warn users of missing Permissions Attributes for Medium Security Setting For more information, see Java Control Panel documentation. Prompt users to clear previously remembered decisions: In JDK 7u51, users are given an option to restore the security prompts, for any prompts that were hidden prior to installing the latest release. For more information, see Install Documentation for Windows. It is recommended that users restore security prompts after every 30 days to ensure better protection. Note: This option is offered only during Auto update on Mac OS. Exception Site List: The Exception Site List feature allows end users to run Java applets and Java Web Start applications that do not meet the latest security requirements. Rich Internet Applications that are hosted on a site in the exception site list are allowed to run with the applicable security prompts. For more information, see Exception Site List documentation. Change in Default Socket Permissions The default socket permissions assigned to all code including untrusted code have been changed in this release. Previously, all code was able to bind any socket type to any port number greater than or equal to 1024. It is still possible to bind sockets to the ephemeral port range on each system. The exact range of ephemeral ports varies from one operating system to another, but it is typically in the high range (such as from 49152 to 65535). The new restriction is that binding sockets outside of the ephemeral range now requires an explicit permission in the system security policy. Most applications using client tcp sockets and a security manager will not see any problem, as these typically bind to ephemeral ports anyway. Applications using datagram sockets or server tcp sockets (and a security manager) may encounter security exceptions where none were seen before. If this occurs, users should review whether the port number being requested is expected, and if this is the case, a socket permission grant can be added to the local security policy, to resolve the issue. See 8011786 (not public). Change in JAXP Xalan Extension Functions In JDK 7u51, a change has been made in JAXP Xalan Extension functions to always use the default DOM implementation when Security Manager is present. This change affects the NodeSet created by DOM Document. Before this change, the DOM implementation is located through the DOM factory lookup process. With this change, when security is enabled, the lookup process is skipped and the default DOM implementation is used. This change will only affect those applications that use a 3rd party DOM implementation. In general, the NodeSet structure is expected to be compatible with that of the JDK default implementation. Bug Fixes This release contains fixes for security vulnerabilities. For more information, see Oracle Java SE Critical Patch Update Advisory. For a list of bug fixes included in this release, see JDK 7u51 Bug Fixes page. The following are some of the notable bug fixes in this release: Area: tools/jar Synopsis: Clarify jar verifications The jarsigner tool prints out more messages when there are severe warnings and -strict is on. For details, see the jarsigner tool documentation (Windows)(Solaris/Linux). See 8024302 (not public).
Diffstat (limited to 'lang/openjdk7/patches')
-rw-r--r--lang/openjdk7/patches/patch-aw17
-rw-r--r--lang/openjdk7/patches/patch-jdk_src_solaris_classes_sun_net_PortConfig.java23
2 files changed, 31 insertions, 9 deletions
diff --git a/lang/openjdk7/patches/patch-aw b/lang/openjdk7/patches/patch-aw
index c9446397344..12a4191b83f 100644
--- a/lang/openjdk7/patches/patch-aw
+++ b/lang/openjdk7/patches/patch-aw
@@ -1,11 +1,10 @@
-$NetBSD: patch-aw,v 1.2 2013/06/02 06:12:28 ryoon Exp $
+$NetBSD: patch-aw,v 1.3 2014/01/25 13:53:22 ryoon Exp $
---- jdk/src/share/lib/security/java.policy.orig 2012-08-10 17:30:16.000000000 +0000
+--- jdk/src/share/lib/security/java.policy.orig 2014-01-25 07:34:09.000000000 +0000
+++ jdk/src/share/lib/security/java.policy
-@@ -45,5 +45,6 @@ grant {
- permission java.util.PropertyPermission "java.vm.version", "read";
- permission java.util.PropertyPermission "java.vm.vendor", "read";
- permission java.util.PropertyPermission "java.vm.name", "read";
-+ permission java.util.PropertyPermission "sun.java2d.debugfonts", "read";
- };
-
+@@ -48,5 +48,3 @@ grant {
+ permission java.util.PropertyPermission "java.vm.version", "read";
+ permission java.util.PropertyPermission "java.vm.vendor", "read";
+ permission java.util.PropertyPermission "java.vm.name", "read";
+-};
+-
diff --git a/lang/openjdk7/patches/patch-jdk_src_solaris_classes_sun_net_PortConfig.java b/lang/openjdk7/patches/patch-jdk_src_solaris_classes_sun_net_PortConfig.java
new file mode 100644
index 00000000000..c2340f036c6
--- /dev/null
+++ b/lang/openjdk7/patches/patch-jdk_src_solaris_classes_sun_net_PortConfig.java
@@ -0,0 +1,23 @@
+$NetBSD: patch-jdk_src_solaris_classes_sun_net_PortConfig.java,v 1.1 2014/01/25 13:53:22 ryoon Exp $
+
+--- jdk/src/solaris/classes/sun/net/PortConfig.java.orig 2014-01-25 07:34:09.000000000 +0000
++++ jdk/src/solaris/classes/sun/net/PortConfig.java
+@@ -55,6 +55,18 @@ public final class PortConfig {
+ } else if (os.contains("OS X")) {
+ defaultLower = 49152;
+ defaultUpper = 65535;
++ } else if (os.startsWith("DragonFly")) {
++ defaultLower = 32768;
++ defaultUpper = 65535;
++ } else if (os.startsWith("FreeBSD")) {
++ defaultLower = 32768;
++ defaultUpper = 65535;
++ } else if (os.startsWith("NetBSD")) {
++ defaultLower = 32768;
++ defaultUpper = 65535;
++ } else if (os.startsWith("OpenBSD")) {
++ defaultLower = 32768;
++ defaultUpper = 65535;
+ } else {
+ throw new InternalError(
+ "sun.net.PortConfig: unknown OS");