From 0b93a5f33c5634d3c0a2b0c8615a25a45d51b6d0 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Tue, 14 Nov 2017 17:53:01 +0100 Subject: [PATCH] java: Update version from 8u141 to 9.0.1 Java 9 was released in September 2017. It supports HiDPI displays [1]. Most changes are detaled in the *Java Platform, Standard Edition Oracle JDK 9 Migration Guide* [2]. Switch to the new version scheme. > ### New Version-String Scheme ### > > JDK 9 provides a new simplified version-string format. If your code > relies on the version-string format to distinguish major, minor, > security, and patch update releases, then you may need to update it. > > The format of the new version-string is: > > $MAJOR.$MINOR.$SECURITY.$PATCH > > For example, under the old scheme, the Java 9u5 security release would > have the version string 1.9.0_5-b20. > > Under the new scheme, the short version of the same release is 9.0.1, > and the long version is 9.0.1+20. > > This change affects java -version and related system properties, such > as java.runtime.version, java.vm.version, java.specification.version, > and java.vm.specification.version. > > A simple Java API to parse, validate, and compare version strings has > been added. See java.lang.Runtime.Version. > > See Version String Format in Java Platform, Standard Edition > Installation Guide, and JEP 223: New Version-String Scheme. Additionally, JCE Jurisdiction Policy File default is now unlimited, meaning the installation can be removed from the bee file. > ### JCE Jurisdiction Policy File Default is Unlimited ### > > If your application previously required the Java Cryptography > Extension (JCE) Unlimited Strength Jurisdiction Policy Files, then you > no longer need to download or install them. They are included in the > JDK and are activated by default. > > If your country or usage requires a more restrictive policy, the > limited Java cryptographic policy files are still available. > > If you have requirements that are not met by either of the policy > files provided by default, then you can customize these policy files > to meet your needs. > > See the `crypto.policy` Security property in the > `/conf/security/java.security` file, or Cryptographic > Strength Configuration in the Java Platform, Standard Edition Security > Developer's Guide. > > You are advised to consult your export/import control counsel or > attorney to determine the exact requirements. [1] http://openjdk.java.net/jeps/263 [2] https://docs.oracle.com/javase/9/migrate/ --- java.be0 | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/java.be0 b/java.be0 index ffa398e27..0d4ce2a6f 100755 --- a/java.be0 +++ b/java.be0 @@ -1,25 +1,20 @@ #!/bin/env beesh -# BEE_VERSION java-1.8.0_141-0 +# BEE_VERSION java-9.0.1-0 # http://www.oracle.com/technetwork/java/javase/downloads/index.html -SRCURL[0]="file:///src/mariux/download/jdk-8u${PKGEXTRAVERSION}-linux-x64.tar.gz" -#SRCURL[1]="/src/mariux/download/UnlimitedJCEPolicyJDK7.zip" +SRCURL[0]="file:///src/mariux/download/jdk-${PKGVERSION}_linux-x64_bin.tar.gz" PATCHURL[0]="" BEE_EXTRACT_STRIP=0 -mee_patch() { - unzip /src/mariux/download/jce_policy-8.zip -} - mee_install() { mkdir -p ${D}/usr/local/bin - mv ${S}/jdk${PKGFULLVERSION} ${D}/usr/local/java + mv ${S}/jdk-${PKGVERSION} ${D}/usr/local/java for i in $(ls ${D}/usr/local/java/bin) ; do ln -s /usr/local/java/bin/${i} ${D}/usr/local/bin/${i} @@ -28,10 +23,3 @@ mee_install() { mkdir -p ${D}/usr/lib/mozilla/plugins ln -s /usr/local/java/jre/lib/amd64/libnpjp2.so ${D}/usr/lib/mozilla/plugins/libnpjp2.so } - -mee_install_post() { - cp -v \ - ${S}/UnlimitedJCEPolicyJDK8/US_export_policy.jar \ - ${S}/UnlimitedJCEPolicyJDK8/local_policy.jar \ - ${D}/usr/local/java/jre/lib/security/ -}