View previous topic :: View next topic |
Author |
Message |
imesg Guru
Joined: 12 Jul 2002 Posts: 451
|
Posted: Sun Jan 10, 2016 4:40 pm Post subject: icedtea and oracle jdk and ncurses |
|
|
Added a USE flag 'nsplugin' which I had before and somehow it disappeared. Then I issued:
Code: |
root@go:~# emerge -tauUD @world
|
Then I got this in return:
Code: |
These are the packages that would be merged, in reverse order:
Calculating dependencies... done!
[ebuild R ] dev-java/icedtea-7.2.6.3-r4 USE="nsplugin*"
[blocks b ] <sys-libs/ncurses-6:0 ("<sys-libs/ncurses-6:0" is blocking sys-libs/ncurses-5.9-r101)
[uninstall ] sys-libs/ncurses-5.9-r101
[nomerge ] app-text/xmlto-0.0.28-r1
[nomerge ] virtual/w3m-0
[nomerge ] www-client/w3m-0.5.3-r5
[ebuild UD ] sys-libs/ncurses-5.9-r5 [6.0-r1]
[nomerge ] gnome-base/gnome-3.18.0
[nomerge ] gnome-base/gnome-extra-apps-3.18.0
[nomerge ] gnome-extra/gnome-documents-3.18.2-r1
[ebuild R ] app-text/evince-3.18.2 USE="nsplugin*"
[ebuild R ] dev-java/icedtea-bin-7.2.6.3-r1 USE="nsplugin*"
[ebuild R ] dev-java/icedtea-web-1.6.1 USE="nsplugin*"
[nomerge ] dev-java/icedtea-7.2.6.3-r4 USE="nsplugin*"
[nomerge ] dev-java/ant-core-1.9.2
[nomerge ] virtual/jdk-1.8.0
[ebuild Rf ] dev-java/oracle-jdk-bin-1.8.0.66-r1 USE="nsplugin*"
[blocks B ] dev-java/oracle-jdk-bin[nsplugin] ("dev-java/oracle-jdk-bin[nsplugin]" is blocking dev-java/icedtea-web-1.6.1)
!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:
sys-libs/ncurses:0
(sys-libs/ncurses-6.0-r1:0/6::gentoo, installed) pulled in by
sys-libs/ncurses:0/6= required by (app-crypt/pinentry-0.9.7:0/0::gentoo, installed)
^^^^^
(and 27 more with the same problem)
(sys-libs/ncurses-5.9-r5:0/5::gentoo, ebuild scheduled for merge) pulled in by
sys-libs/ncurses:0/5 required by (net-misc/dropbox-3.6.8:0/0::gentoo, installed)
^^^^
NOTE: Use the '--verbose-conflicts' option to display parents omitted above
It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously. If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously. You may want to try a larger value of
the --backtrack option, such as --backtrack=30, in order to see if
that will solve this conflict automatically.
For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
(dev-java/oracle-jdk-bin-1.8.0.66-r1:1.8/1.8::gentoo, ebuild scheduled for merge) pulled in by
=dev-java/oracle-jdk-bin-1.8.0* required by (virtual/jdk-1.8.0:1.8/1.8::gentoo, installed)
(dev-java/icedtea-web-1.6.1:0/0::gentoo, ebuild scheduled for merge) pulled in by
dev-java/icedtea-web:0[icedtea7(+),nsplugin] required by (dev-java/icedtea-7.2.6.3-r4:7/7::gentoo, ebuild scheduled for merge)
dev-java/icedtea-web:0[icedtea7(+),nsplugin] required by (dev-java/icedtea-bin-7.2.6.3-r1:7/7::gentoo, ebuild scheduled for merge)
For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):
https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages
|
So then I issued this:
Code: |
root@go:~# equery d icedtea
|
And got this:
Code: |
* These packages depend on icedtea:
dev-java/icedtea-7.2.6.3-r4 (dev-java/icedtea:7)
(dev-java/icedtea:6)
virtual/jdk-1.7.0 (=dev-java/icedtea-7*)
|
Before all of the above I consulted the wiki which advised that there are three choices for a java vm:
Code: |
The IcedTea Open Java SE (formerly icedtea6-bin)
Oracle's Java 7 SE
Sun's Java 6 SE (masked, inactive after Oracle acquired Sun)
|
So really only two.
I chose 'icedtea-bin'. It installed and all was right with the world.
Next time I update @world 'icedtea (not 'icedtea-bin')' and 'oracle-jdk-bin' are pulled in. Now I have three java vms. I really just want one: 'icedtea-bin'.
Funny (well not that damn funny) is that 'virtual/jdk-1.7.0' wants 'icedtea (not 'icedtea-bin')' and 'virtual/jdk-1.8.0' wants 'oracle-jdk-bin'. Imagine my suprise after all this.
How do I get back to one java vm, that being 'icedtea-bin'?
Thanks for any help at all.
P.S. Feel free to offer any advice at all about the ncurses problem as well. |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Sun Jan 10, 2016 8:41 pm Post subject: |
|
|
- You asked for USE=nsplugin globally, but only one of icedtea* or oracle-jdk-bin can have it set at a time. Since you explicitly added all three JVMs to @world in the past, portage can't safely uninstall any of them on its own to solve this conflict.
- The ncurses version conflict is automatically being resolved (look up the "b" in `man 1 emerge`) and not actually a problem.
|
|
Back to top |
|
|
imesg Guru
Joined: 12 Jul 2002 Posts: 451
|
Posted: Mon Jan 11, 2016 2:54 pm Post subject: |
|
|
Ant P. wrote: | - You asked for USE=nsplugin globally, but only one of icedtea* or oracle-jdk-bin can have it set at a time. Since you explicitly added all three JVMs to @world in the past, portage can't safely uninstall any of them on its own to solve this conflict.
- The ncurses version conflict is automatically being resolved (look up the "b" in `man 1 emerge`) and not actually a problem.
|
Ok so I removed 'nsplugin' from make.conf. Unmerged 'icedtea' and 'oracle-jdk-bin' and 'virtual/jdk-1.8.0' and 'virtual/jdk-1.7.0.
Then:
Code: |
emerge -tauUD @world
|
And got this:
Code: |
These are the packages that would be merged, in reverse order:
Calculating dependencies... done!
[nomerge ] dev-java/icedtea-bin-7.2.6.3-r1
[nomerge ] dev-java/icedtea-sound-1.0.1
[ebuild N ] virtual/jdk-1.8.0
[ebuild N f ] dev-java/oracle-jdk-bin-1.8.0.66-r1 USE="alsa cups fontconfig -derby -doc -examples -headless-awt -javafx -jce -nsplugin -pax_kernel (-selinux) -source"
|
It is unclear how to prevent 'oracle-jdk-bin' from getting pulled in.
Suggestions?
Thanks |
|
Back to top |
|
|
ct85711 Veteran
Joined: 27 Sep 2005 Posts: 1791
|
Posted: Mon Jan 11, 2016 4:06 pm Post subject: |
|
|
virtual/jdk/jdk-1.8.0.ebuild
Code: |
RDEPEND="=dev-java/oracle-jdk-bin-1.8.0*" |
virtual/jdk/jdk-1.7.0.ebuild
Code: | RDEPEND="|| (
=dev-java/icedtea-bin-7*
=dev-java/icedtea-7*
=dev-java/oracle-jdk-bin-1.7.0*
=dev-java/soylatte-jdk-bin-7*
)" |
I just checked the virtual/jdk ebuild, and this gave the answer straight out... There is no other jdk besides oracle recognized for 1.8.0. IIRC, when 1.8 came out, icedtea didn't support 1.8 to begin with. I recall there was a thread here saying that a new version of icetea was being made to support jre/jdk-1.8, but I don't know what ever happen to that. So your options is to put up with oracle-jdk-1.8, mask virtual/jdk-1.8 and stick with 1.7, or submit a bug report against the virtual/jdk to support a new version of icedtea. One thing, make sure to verify there is a version of icetea that is for 1.8 before submitting a bug report, (submitting a bug report and not verifing will have a good chance of being ignored and nothing ever done with it). if iceadtea is going to follow their numbering, I would assume the new version will be version 8 (for 1., but this is only a guess. |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 9326
|
Posted: Mon Jan 11, 2016 4:17 pm Post subject: |
|
|
IcedTea 8 pre-releases are currently being worked on in java overlay. I'm sure that, not far after there is an actual release, this will enter the tree. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3685
|
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 9326
|
Posted: Mon Jan 11, 2016 5:29 pm Post subject: |
|
|
That will leave jdk-1.8.0 with an unsatisfied dependency. Solution was posted already, mask jdk-1.8.0. |
|
Back to top |
|
|
imesg Guru
Joined: 12 Jul 2002 Posts: 451
|
Posted: Mon Jan 11, 2016 10:59 pm Post subject: |
|
|
genstorm wrote: | That will leave jdk-1.8.0 with an unsatisfied dependency. Solution was posted already, mask jdk-1.8.0. |
Sorry, I did not see it before I posted.
Thanks, look like I will dump icedtea and go with oracle.
And thanks all for the portage schooling. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3685
|
Posted: Tue Jan 12, 2016 9:03 am Post subject: |
|
|
imesg wrote: | Thanks, look like I will dump icedtea and go with oracle. |
Or use icedtea from java overlay? /etc/portage/package.keywords wrote: | ...
=dev-java/icedtea-3.0.0_pre07-r1::java ~amd64
virtual/jdk:1.8::java ~amd64
... |
|
|
Back to top |
|
|
|