Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 692420

Summary: dev-java/oracle-jdk-bin: modifies oracle classes and possibly violates license by doing that.
Product: Gentoo Linux Reporter: Georgy Yakovlev <gyakovlev>
Component: Current packagesAssignee: No maintainer - Look at if you want to take care of it <maintainer-needed>
Severity: normal CC: java, licenses, maintainer-wanted, pacho, redblade7
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---

Description Georgy Yakovlev gentoo-dev 2019-08-18 07:07:40 UTC
ebuild modifies jvm

zip -d jre/lib/rt.jar sun/misc/PostVMInitHook.class || die

License[1] clearly states:
You may not:

create, modify, or change the behavior of, classes, interfaces, or subpackages that are in any way identified as "java", "javax", "sun", “oracle” or similar convention as specified by Oracle in any naming convention designation.

this may mean legal trouble.

according to my research this may be no longer required.
previously it was breaking sandbox as jvm was trying to write files outside of sandbox.
Comment 1 Ulrich Müller gentoo-dev 2019-08-18 09:54:24 UTC
I don't think that deleting a class would qualify as "create, modify, or change".

(In reply to Georgy Yakovlev from comment #0)

The ebuild has "Oracle-BCLA-JavaSE" (corresponding to Is that no longer accurate?
Comment 2 Georgy Yakovlev gentoo-dev 2019-08-18 10:47:31 UTC
summary of IRC discussion:

oracle-jdk-1.8 versions <= seem still to be under Oracle-BCLA-JavaSE
oracle-jdk-1.8 >=1.8.222 are under new license (we don't have those in tree as of now)

>=oracle-jdk-11 seem to be under new license, but I can't reliably verify.
Comment 3 Georgy Yakovlev gentoo-dev 2019-08-18 10:51:50 UTC
as for class deletion, usage tracker seems to be disabled by default with recent versions, so probably it's better to delete the hack. I could not reproduce sandbox faulures with and class removal line deleted from ebuild.
Comment 4 Larry the Git Cow gentoo-dev 2020-09-19 08:06:58 UTC
The bug has been closed via the following commit(s):

commit 6a7faaad2f8c5312dfb8d6e539b5a7346652e98b
Author:     Georgy Yakovlev <>
AuthorDate: 2020-09-18 22:36:24 +0000
Commit:     Georgy Yakovlev <>
CommitDate: 2020-09-19 08:05:29 +0000

    dev-java/oracle-jdk-bin: remove last rited pkg
    Signed-off-by: Georgy Yakovlev <>
    Signed-off-by: Georgy Yakovlev <>

 dev-java/oracle-jdk-bin/Manifest                   |  15 --
 .../oracle-jdk-bin/files/     | 161 -----------
 .../oracle-jdk-bin/files/   |  16 --
 .../oracle-jdk-bin/files/     |  16 --
 dev-java/oracle-jdk-bin/metadata.xml               |  16 --
 .../oracle-jdk-bin/oracle-jdk-bin- | 297 ---------------------
 .../oracle-jdk-bin/oracle-jdk-bin-11.0.2.ebuild    | 247 -----------------
 7 files changed, 768 deletions(-)