[OpenIndiana-discuss] pkg upgrade fails on java6 vs. openkdk7
Jim Klimov
jim at cos.ru
Mon Jun 15 14:49:37 UTC 2015
Hello all,
Starting a couple of weeks ago, I can't upgrade my Hipster installation (previously kept up-to-date more or less regularly), because of a conflict between two java packages wanting to be the default (shouldn't a separate mediator package or optionally manual setup by a human make the choice instead?)
root at jimoi:/# pkg -R /a update -v -f --deny-new-be pkg://openindiana.org/runtime/java/openjdk7 pkg://openindiana.org/developer/java/openjdk7
Creating Plan (Checking for conflicting actions): |
pkg update: The requested change to the system attempts to install multiple actions
for link 'usr/java' with conflicting attributes:
1 package delivers 'link path=usr/java target=jdk/jdk1.6.0_26':
pkg://openindiana.org/runtime/java@0.5.11,5.11-0.151.1.8:20130305T144835Z
1 package delivers 'link path=usr/java target=jdk/openjdk1.7.0':
pkg://openindiana.org/runtime/java/openjdk7@1.7.76,5.11-2015.0.1.0:20150530T135308Z
These packages may not be installed together. Any non-conflicting set may
be, or the packages must be corrected before they can be installed.
The requested change to the system attempts to install multiple actions
for link 'usr/jdk/latest' with conflicting attributes:
1 package delivers 'link path=usr/jdk/latest target=jdk1.6.0_26':
pkg://openindiana.org/runtime/java@0.5.11,5.11-0.151.1.8:20130305T144835Z
1 package delivers 'link path=usr/jdk/latest target=openjdk1.7.0':
pkg://openindiana.org/runtime/java/openjdk7@1.7.76,5.11-2015.0.1.0:20150530T135308Z
These packages may not be installed together. Any non-conflicting set may
be, or the packages must be corrected before they can be installed.
Packages to update: 2
Rebuild boot archive: No
Changed packages:
openindiana.org
developer/java/openjdk7
1.7.60-2014.1.1.0:20140704T060549Z -> 1.7.76-2015.0.1.0:20150530T135316Z
runtime/java/openjdk7
1.7.60-2014.1.1.0:20140704T060539Z -> 1.7.76-2015.0.1.0:20150530T135308Z
Is there some intermediate version, or a freeze, or something to update to? Or a way to enforce that "openjdk7 overrides jdk1.6* because I said so"?
Uninstalling Java6 seems unpractical because 1) some things might really need it (we've had a share of weird software that required particular versions or generations of Java to actually work), and 2) a large tree of packages depends on it in the point of view of pkg(5).
Any pointers on how to get the upgrade going? I feel I'm missing something trivial here ;)
Thanks in advance,
Jim
More information about the openindiana-discuss
mailing list