Package: java-package Version: 0.62 Severity: normal Tags: patch -- System Information: Debian Release: 8.6 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages java-package depends on: ii build-essential 11.7 ii debhelper 9.20150101+deb8u2 ii dpkg-dev 1.17.27 ii fakeroot 1.20.2-1 ii libasound2 1.0.28-1 ii libfontconfig1 2.11.0-6.3+deb8u1 ii libgl1-mesa-glx 10.3.2-1+deb8u1 ii libgtk2.0-0 2.24.25-3+deb8u1 ii libx11-6 2:1.6.2-3 ii libxslt1.1 1.1.28-2+deb8u1 ii libxtst6 2:1.2.2-1+b1 ii libxxf86vm1 1:1.1.3-1+b1 ii unzip 6.0-16+deb8u2 java-package recommends no packages. Versions of packages java-package suggests: ii openjdk-7-jre 7u111-2.6.7-1~deb8u1 -- no debconf information *** /home/vagrant/output.txt ~$ fakeroot make-jpkg --full-name 'Test Bug' --email 'jan+deb...@vstone.eu' --jce-policy /vagrant/ BACKPORTS.md java-package_0.62_amd64.changes results/ .git/ java-package_0.62.dsc scripts/ .gitignore java-package_0.62.tar.xz .vagrant/ java/ packages/ Vagrantfile java-package/ puppet/ java-package_0.62_all.deb README.md vagrant@jessie-x64:~$ fakeroot make-jpkg --full-name 'Test Bug' --email 'jan+deb...@vstone.eu' --jce-policy /vagrant/java/jce_policy-8.zip /vagrant/java/jre-8u jre-8u112-linux-x64.tar.gz jre-8u92-linux-x64.tar.gz vagrant@jessie-x64:~$ fakeroot make-jpkg --full-name 'Test Bug' --email 'jan+deb...@vstone.eu' --jce-policy /vagrant/java/jce_policy-8.zip /vagrant/java/jre-8u112-linux-x64.tar.gz Creating temporary directory: /tmp/make-jpkg.S5RpVqa9Xa Loading plugins: /usr/share/java-package/common.sh /usr/share/java-package/javase.sh /usr/share/java-package/jdk-doc.sh /usr/share/java-package/oracle-jdk-doc.sh /usr/share/java-package/oracle-jdk.sh /usr/share/java-package/oracle-jre.sh /usr/share/java-package/oracle-server-jre.sh Detected Debian build architecture: amd64 Detected Debian GNU type: x86_64-linux-gnu Detected product: Java(TM) Runtime Environment (JRE) Standard Edition, Version 8 Update 112 Oracle(TM) Is this correct [Y/n]: y Checking free diskspace: done. In the next step, the binary file will be extracted. Probably a license agreement will be displayed. Please read this agreement carefully. If you do not agree to the displayed license terms, the package will not be built. Press [Return] to continue: Testing extracted archive... okay. Installing unlimited strength cryptography files using /vagrant/java/jce_policy-8.zip Archive: /vagrant/java/jce_policy-8.zip checkdir: cannot create extraction directory: /tmp/make-jpkg.S5RpVqa9Xa/package/oracle-java8-jre-amd64/jre/lib/security No such file or directory Aborted (*/US_export_policy.jar). Removing temporary directory: done
From 7abdec254d4c57bbd461d0d629dcc9aa98587779 Mon Sep 17 00:00:00 2001 From: Jan Vansteenkiste <j...@vstone.eu> Date: Fri, 4 Nov 2016 15:20:42 +0100 Subject: [PATCH] Find the path to the security policy files --- lib/javase.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/javase.sh b/lib/javase.sh index fd025ca..aa67c92 100644 --- a/lib/javase.sh +++ b/lib/javase.sh @@ -295,7 +295,8 @@ j2se_run() { install -d -m 755 "$( dirname "$target" )" extract_bin "$archive_path" "$j2se_expected_min_size" "$target" if [[ -n "$jce_archive" ]]; then - extract_jce "$jce_path" "$target/jre/lib/security" + local security_dir="$( find $target -iname US_export_policy.jar -or -iname local_policy.jar -exec dirname {} \; -quit )" + extract_jce "$jce_path" "$security_dir" fi rm -rf "$target/.systemPrefs" echo "9" > "$debian_dir/compat" -- 2.10.2
signature.asc
Description: OpenPGP digital signature