[From nobody Fri Nov 13 12:01:11 2026
Received: (at submit) by bugs.debian.org; 4 Nov 2016 14:54:56 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.0-bugs.debian.org_2005_01_02
 (2014-02-07) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-12.4 required=4.0 tests=BAYES_00,DIGITS_LETTERS,
 FOURLA, FVGT_m_MULTI_ODD, HAS_PACKAGE, MURPHY_DRUGS_REL8, PGPSIGNATURE,
 URIBL_CNKR
 autolearn=ham autolearn_force=no version=3.4.0-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 46; hammy, 150; neutral, 304; spammy,
 0. spammytokens: hammytokens:0.000-+--UD:xz, 0.000-+--UD:tar.xz, 
 0.000-+--H*c:pgp-sha512, 0.000-+--31604amd64,
 0.000-+--3.16.0-4-amd64
Return-path: &lt;jan@vstone.eu&gt;
Received: from zim.irken.org ([88.198.55.36] helo=moose.virtual.irken.org)
 by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from &lt;jan@vstone.eu&gt;) id 1c2ftQ-0003in-4x
 for submit@bugs.debian.org; Fri, 04 Nov 2016 14:54:56 +0000
Received: from localhost (localhost [127.0.0.1])
 by moose.virtual.irken.org (Postfix) with ESMTP id 2B6B0180D31
 for &lt;submit@bugs.debian.org&gt;; Fri,  4 Nov 2016 15:46:24 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at moose.irken.org
Received: from moose.virtual.irken.org ([127.0.0.1])
 by localhost (moose.virtual.irken.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id ftrcZgggUDqJ for &lt;submit@bugs.debian.org&gt;;
 Fri,  4 Nov 2016 15:46:23 +0100 (CET)
Received: from [192.168.1.41] (dd576debb.access.telenet.be [213.118.222.187])
 (Authenticated sender: jan@vstone.eu)
 by moose.virtual.irken.org (Postfix) with ESMTPSA id 41661180D2F
 for &lt;submit@bugs.debian.org&gt;; Fri,  4 Nov 2016 15:46:23 +0100 (CET)
To: submit@bugs.debian.org
From: Jan Vansteenkiste &lt;jan@vstone.eu&gt;
Subject: java-package: creating jre packages using --jce-policy fails
Message-ID: &lt;417ef615-9b6b-2861-37b5-518ace3a1110@vstone.eu&gt;
Date: Fri, 4 Nov 2016 15:49:05 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.3.0
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol=&quot;application/pgp-signature&quot;;
 boundary=&quot;jfmoswQ1votTpcriDgUV3HxdMMKATrwtJ&quot;
X-Greylist: delayed 383 seconds by postgrey-1.35 at buxtehude;
 Fri, 04 Nov 2016 14:54:55 UTC
Delivered-To: submit@bugs.debian.org

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--jfmoswQ1votTpcriDgUV3HxdMMKATrwtJ
Content-Type: multipart/mixed; boundary=&quot;JC0RgagNLHJ3Q1hLG8oMn0IkFO0kjGRj7&quot;;
 protected-headers=&quot;v1&quot;
From: Jan Vansteenkiste &lt;jan@vstone.eu&gt;
To: submit@bugs.debian.org
Message-ID: &lt;417ef615-9b6b-2861-37b5-518ace3a1110@vstone.eu&gt;
Subject: java-package: creating jre packages using --jce-policy fails

--JC0RgagNLHJ3Q1hLG8oMn0IkFO0kjGRj7
Content-Type: multipart/mixed;
 boundary=&quot;------------AB15A8205A465C52079A0CA0&quot;

This is a multi-part message in MIME format.
--------------AB15A8205A465C52079A0CA0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

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=3Den_US.UTF-8, LC_CTYPE=3Den_US.UTF-8 (charmap=3DUTF-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+debian@vstone.eu' --jce-policy /vagrant/
BACKPORTS.md                     java-package_0.62_amd64.changes  results=
/
=2Egit/                            java-package_0.62.dsc            scrip=
ts/
=2Egitignore                       java-package_0.62.tar.xz         .vagr=
ant/
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+debian@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+debian@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




--------------AB15A8205A465C52079A0CA0
Content-Type: text/x-patch;
 name=&quot;0001-Find-the-path-to-the-security-policy-files.patch&quot;
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename=&quot;0001-Find-the-path-to-the-security-policy-files.patch&quot;

=46rom 7abdec254d4c57bbd461d0d629dcc9aa98587779 Mon Sep 17 00:00:00 2001
From: Jan Vansteenkiste &lt;jan@vstone.eu&gt;
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 &quot;$( dirname &quot;$target&quot; )&quot;
     extract_bin &quot;$archive_path&quot; &quot;$j2se_expected_min_size&quot; &quot;$target&quot;
     if [[ -n &quot;$jce_archive&quot; ]]; then
-      extract_jce &quot;$jce_path&quot; &quot;$target/jre/lib/security&quot;
+      local security_dir=3D&quot;$( find $target -iname US_export_policy.jar =
-or -iname local_policy.jar -exec dirname {} \; -quit )&quot;
+      extract_jce &quot;$jce_path&quot; &quot;$security_dir&quot;
     fi
     rm -rf &quot;$target/.systemPrefs&quot;
     echo &quot;9&quot; &gt; &quot;$debian_dir/compat&quot;
--=20
2.10.2


--------------AB15A8205A465C52079A0CA0--

--JC0RgagNLHJ3Q1hLG8oMn0IkFO0kjGRj7--

--jfmoswQ1votTpcriDgUV3HxdMMKATrwtJ
Content-Type: application/pgp-signature; name=&quot;signature.asc&quot;
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename=&quot;signature.asc&quot;

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJYHJ/hAAoJEH9K6PHMcbUrNssP/RSgVRzy8q4T8uqa6jAw3ssp
FG+RlwEI/RDViQR7yjubtjaFDoc3l1Ahm0mtMLZCqfm1pVsWmFIlzmGSofGv3nzL
CT3+OT3S13ntdaIyPNk3flhqRsAXnN3DRqM82dyIOtE876o8jCeauuHYvZuR3BXx
PvsIjZUsxGJBNfRZYlZYVdXI118j1D6FaZerfHpkjIybn+FmWqzdw7pSvMeOGcjQ
qPbxOJqGI6/suBvTiwQjlxzcry4fXfp2hMkMOfbs5gUJfqOa6/bA1mWhpfVSRWia
EhCkyHmHDe6AlgS2yzDmRdHM98xhHCmBMOjHbkjsLz005wgdHq9v77rl9gZRsVDM
ZGyhOL8f3zRW0IkC4GOO6Q6T3vUhLKsj9IZwnrfNOHUzofaimz5qTTxi+I1n1StQ
HFGCRCSCNC85w0dfr9RS8wxdpsiG9EVr01AjHbR48tseHYNeJ53rLA0a4RGP8OqG
YTOQDEh8wyE6o9Jziw8EAMuHemEXQjRoDtrhMkhMW/crmfpSX6UX9nWq2g0e5vU3
8xJOe/Qm0wJIpuIs46bQZ1HAOOeip3b6ccVsGazBT5a+x2WdCM7u7vmnXtx0AUJi
uAWTRsrJ41hDRmR2plP2JsgHzq8Upxp277g94Xi4eZ2sb4wj5YwZSZp0O85bYq3i
MCCy+fSPJ4mMISFpgJXm
=vgBL
-----END PGP SIGNATURE-----

--jfmoswQ1votTpcriDgUV3HxdMMKATrwtJ--
]