The current OpenJDK8 RPMs in RHEL provide java* instead of java8*. This is causing them to get pulled into brew builds when they shouldn't be.
We should fix the packages asap to make them provide java8* much like OpenJDK7 RPMs provide java7*.
On second thought, rather than replacing with java8*, we should just remove them altogether to prevent customers from depending on the provides that may end up getting removed in the future. Thanks to Omair for pointing this out.
The packages are not providing java8 but have epoch set to 0. Actually the change from provides javaX to whatever was requested, so we (me, Omair and Lukas) have come out with epoch 0. This change was heavily tested and behaved correctly.
The brew-root is *not* (as far as I'm aware, and I tried a lot) pulling jdk8 unless java-1.8.0-openjdk* or java >= 1.8.0 is explicitly requested.
If you have found some case when openjdk8 was pulled instead of 6 or 7, then it would really mean devel x qa failure and I'm terribly sorry for that and will fix immediately. Otherwise this should be closed->not a bug
> We should fix the packages asap to make them provide java8* much like
> OpenJDK7 RPMs provide java7*.
This java7* was causing a lot of problems, and once we swithced to java = 1.7.0... there was couple of bugs requesting it back. At the end we ended up with dual provides java7* and java* = 1.7.0...
For 8 better solution was about to be found. And this was an epoch.
Omair had, as always, very refreshing idea - to remove jpackages provides at all. This approach ahve +1 from me muh more likely then provides java8
+1 from me as well, already noted in comment #1 :)
Created attachment 949960 [details]
list of packages built after openjdk8 appeared in brew buildroot for 6.6
Created attachment 949961 [details]
sucessfull verification that no built (except openjdk8) was build by openjdk8 for 6.6
Our candlepin buildroot inherits from RHEL 6.6.Z. Here is a scratch build where we require java-devel >= 1.6.0, and openjdk 1.8 is pulled in:
Jiri could you advise if you can spot what we might be doing incorrectly?
pushed and building
Changing bug description as bug 1189853 requested to have "java" provides in java-1.8.0-openjdk.
Only java-devel is excluded intentionally, so it does not pollute mock build root.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.