Summary: | dev-java/oracle-jdk-bin-1.8.0.152, dev-java/oracle-jre-bin-1.8.0.152: fails to install with USE=jce | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | gentoo_bugzilla |
Component: | Current packages | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | althorion, ap, ave, dirk.olmes, ercpe, ivanhoe, joerg.schaible, kjkoski, uleysky, whissi |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://www.oracle.com/technetwork/java/javase/8u152-relnotes-3850503.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 635030 | ||
Attachments: |
Use unlimited jce distributed with jre
Use unlimited jce distributed with jre (with correct symlinks) |
Description
gentoo_bugzilla
2017-10-22 15:14:08 UTC
To my analysis, the mv will fail because there are no *.jar in jre/lib/security/ in the source tarball, anymore. To fix for the moment, I just disabled the check. --- oracle-jdk-bin-1.8.0.152.ebuild.20171023-085334 2017-10-23 08:53:34.000000000 +0200 +++ oracle-jdk-bin-1.8.0.152.ebuild 2017-10-23 09:02:41.618526000 +0200 @@ -254,9 +254,9 @@ if use jce ; then dodir "${dest}"/jre/lib/security/strong-jce mv "${ddest}"/jre/lib/security/US_export_policy.jar \ - "${ddest}"/jre/lib/security/strong-jce || die + "${ddest}"/jre/lib/security/strong-jce # || die mv "${ddest}"/jre/lib/security/local_policy.jar \ - "${ddest}"/jre/lib/security/strong-jce || die + "${ddest}"/jre/lib/security/strong-jce # || die dosym "${dest}"/jre/lib/security/${JCE_DIR}/US_export_policy.jar \ "${dest}"/jre/lib/security/US_export_policy.jar dosym "${dest}"/jre/lib/security/${JCE_DIR}/local_policy.jar \ Created attachment 499742 [details, diff]
Use unlimited jce distributed with jre
Now Unlimited Strength JCE Policy Files are distributed within jre itself, no need for jce_policy-8.zip file. So, I patch ebuild to not download and unpack jce_policy-8.zip, but just make correct symlinks. (In reply to Michael Uleysky from comment #3) > Now Unlimited Strength JCE Policy Files are distributed within jre itself, > no need for jce_policy-8.zip file. Even better ... Created attachment 499744 [details, diff]
Use unlimited jce distributed with jre (with correct symlinks)
Sorry, paths for symlinks were incorrect, fix.
Thanks for the patch, that helps. I have come up with a simpler one-line solution to replace the dosym lines. I have fixed this for oracle-jdk-bin. Unfortunately I can only test on arm until tonight and we don't support that arch for oracle-jre-bin. Please be patient. This is now fixed in oracle-jre-bin too. Sorry for the inconvenience. |