Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOWTO] virtual/jdk-1.4 is masked, ibm-jdk-1.4 installed?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
frankOnPPC
Apprentice
Apprentice


Joined: 26 May 2003
Posts: 169
Location: Fulda, Hessen, Germany, Europe, Earth

PostPosted: Wed May 05, 2004 12:10 am    Post subject: [HOWTO] virtual/jdk-1.4 is masked, ibm-jdk-1.4 installed? Reply with quote

The latest avaible jdk is from ibm, the 1.4.1 on linux for the ppc.
there is still no blackdown port avaible (blackdown is a 100% daughter of Sun, which licensed to apple, they use it for osx).
ant doesn't need blackdown java 1.4.1 or 1.4.2, it needs a java 1.4.x, or, when avaible, a 1.4.2. when avaible means : avaible for the ppc with linux. Means at the end _ avaiable from IBM.
so, whats that :
emerge -Up world
>>> --upgradeonly implies --update... adding --update to options.

These are the packages that I would merge, in order:

Calculating world dependencies |
!!! all ebuilds that could satisfy ">=virtual/jdk-1.4" have been masked.
!!! possible candidates are:
- dev-java/blackdown-jdk-1.4.1 (masked by: -keyword)
- dev-java/blackdown-jdk-1.4.2_rc1 (masked by: -* keyword)
!!! (dependency required by "dev-java/ant-1.6.1" [ebuild])

!!! Problem with ebuild dev-java/commons-collections-3.0
!!! Possibly a DEPEND/*DEPEND problem.

????? ant needs java 1.4.*, no matter if its a version from blackdown or from ibm. Its Java what ant needs.

Sorry, thats realy confusing me.
It means a depend of something not avaible to the ppc,which also will not ever avaible to the ppc.

I guess, thats a clear "exception to throw".

catch (SenselessException see)
{
System.out.println("java needed, not blackdown\n");
System.out.println(" oops : " + see.toString() + "\n");
System.exit(1);
}

Can you give me a hint ?

krgds,
frank
_________________
always look at yellow site of Linux on the PPC.
Its PPCNUX.
Back to top
View user's profile Send private message
SeJo
Retired Dev
Retired Dev


Joined: 08 Oct 2002
Posts: 298
Location: Belgium

PostPosted: Wed May 05, 2004 6:42 am    Post subject: Reply with quote

yes sir :p

emerge sync today (updated the profiles)

and try again...
as of now you'll see more and more java apps keyworded for ppc...
finally got me engine running so..


greetings
_________________
"I am not bound to please thee with my answers."
Back to top
View user's profile Send private message
casret
n00b
n00b


Joined: 02 Mar 2004
Posts: 6

PostPosted: Wed May 12, 2004 7:30 pm    Post subject: Reply with quote

I'm still having these problems. I synced today:

emerge -Dup world

These are the packages that I would merge, in order:

Calculating world dependencies /
!!! all ebuilds that could satisfy ">=virtual/jdk-1.4" have been masked.
!!! possible candidates are:
- dev-java/blackdown-jdk-1.4.1 (masked by: -keyword)
- dev-java/blackdown-jdk-1.4.2_rc1 (masked by: -* keyword)
!!! (dependency required by "dev-java/ant-1.6.1" [ebuild])

!!! Problem with ebuild dev-java/ant-1.6.1
!!! Possibly a DEPEND/*DEPEND problem.

!!! Depgraph creation failed.
Back to top
View user's profile Send private message
casret
n00b
n00b


Joined: 02 Mar 2004
Posts: 6

PostPosted: Wed May 12, 2004 7:33 pm    Post subject: Reply with quote

Forgot to put up my info:
Portage 2.0.50-r6 (default-ppc-2004.1, gcc-3.2.3, glibc-2.3.3_pre20040420-r0, 2.6.5-rc3-ben0)
=================================================================
System uname: 2.6.5-rc3-ben0 ppc 7455, altivec supported
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/lib/pbbuttons /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache fixpackages"
GENTOO_MIRRORS="http://mirror.tucdemonic.org/gentoo/ ftp://gentoo.mirrors.pair.com/ http://gentoo.ccccom.com http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aim alsa altivec arts audiofile berkdb bonobo cdr crypt cscope cups directfb dnd doc dv dvb dvd encode escreen esd ethereal etwin fbcon flac foomaticdb fs gd gdbm gif gnome gnome-libs gphoto2 gpm gstreamer gtk gtk2 guile icq idea ieee1394 imap imlib imlib2 ipv6 jabber jack java jikes jpeg junit libwww log4j mad mcal md5sum mitshm motif mozilla mozp3p mozsvg mozxmlterm mpeg mpeg4 msn mysql ncurses nls oggvorbis opengl optional-tasks oscar oss pam perl pic png ppc python quicktime radeon readline scanner sdl slang slp spell ssl tcltk tcpd tetex truetype type1 usb video_cards_radeon vim-with-x wifi wxwin wxwindows xerces xinerama xml xml2 xmms xv xvid yahoo zlib"
Back to top
View user's profile Send private message
pvdabeel
Retired Dev
Retired Dev


Joined: 25 Mar 2003
Posts: 188
Location: Belgium

PostPosted: Sun May 16, 2004 3:57 pm    Post subject: Reply with quote

casret wrote:
I'm still having these problems. I synced today:

emerge -Dup world

These are the packages that I would merge, in order:

Calculating world dependencies /
!!! all ebuilds that could satisfy ">=virtual/jdk-1.4" have been masked.
!!! possible candidates are:
- dev-java/blackdown-jdk-1.4.1 (masked by: -keyword)
- dev-java/blackdown-jdk-1.4.2_rc1 (masked by: -* keyword)
!!! (dependency required by "dev-java/ant-1.6.1" [ebuild])

!!! Problem with ebuild dev-java/ant-1.6.1
!!! Possibly a DEPEND/*DEPEND problem.

!!! Depgraph creation failed.


unmerge and emerge your blackdown version. This is an annoying portage bug: the first installed (and not the last installed) virtual/jdk provider is marked as the one providing the virtual.

By unmerging and emerging blackdown again, you effectively make IBM the default virtual/jdk in portages eyes.
Back to top
View user's profile Send private message
casret
n00b
n00b


Joined: 02 Mar 2004
Posts: 6

PostPosted: Wed May 19, 2004 6:57 pm    Post subject: Reply with quote

Thanks for the help. I ended up unmerging both blackdown-jdk and ibm-jdk and emerging ibm-jdk-bin and everything is much happier.
Back to top
View user's profile Send private message
frankOnPPC
Apprentice
Apprentice


Joined: 26 May 2003
Posts: 169
Location: Fulda, Hessen, Germany, Europe, Earth

PostPosted: Wed May 19, 2004 9:22 pm    Post subject: Reply with quote

pvdabeel wrote:
casret wrote:
I'm still having these problems. I synced today:

emerge -Dup world

These are the packages that I would merge, in order:

Calculating world dependencies /
!!! all ebuilds that could satisfy ">=virtual/jdk-1.4" have been masked.
!!! possible candidates are:
- dev-java/blackdown-jdk-1.4.1 (masked by: -keyword)
- dev-java/blackdown-jdk-1.4.2_rc1 (masked by: -* keyword)
!!! (dependency required by "dev-java/ant-1.6.1" [ebuild])

!!! Problem with ebuild dev-java/ant-1.6.1
!!! Possibly a DEPEND/*DEPEND problem.

!!! Depgraph creation failed.


unmerge and emerge your blackdown version. This is an annoying portage bug: the first installed (and not the last installed) virtual/jdk provider is marked as the one providing the virtual.

By unmerging and emerging blackdown again, you effectively make IBM the default virtual/jdk in portages eyes.


java-con fig doesn't help ?

krgds,
Frank
_________________
always look at yellow site of Linux on the PPC.
Its PPCNUX.
Back to top
View user's profile Send private message
gordin
Guru
Guru


Joined: 11 Oct 2002
Posts: 300
Location: Germany/WI

PostPosted: Wed May 19, 2004 10:39 pm    Post subject: Reply with quote

I had the same problem, too.
With me the unmerge of blackdown-jdk and remerging IBM-jdk-bin didn't help. I had already installed IBM-jdk-bin, though.
Have a look at /var/cache/edb/virtuals
There you find the virtual dependencies. It should look like this:

Code:

blalbla...
virtual/java-scheme dev-java/ibm-jdk-bin
blabla...
virtual/jdk dev-java/ibm-jdk-bin
blabla...
virtual/jre dev-java/ibm-jdk-bin
blabla...


After the reemerge there was an entry dev-java/ibm-jdk.
Don't know if this is a bug, but this package seems not to be existing. So I deleted these entries an now everything works fine again.
Back to top
View user's profile Send private message
Trejkaz
Guru
Guru


Joined: 14 Nov 2002
Posts: 479
Location: Sydney, Australia

PostPosted: Wed May 26, 2004 12:57 am    Post subject: Reply with quote

I run into this problem every time I install because despite the fact that I use sun-jdk and explicitly put it in my list of things to emerge, portage still determines that blackdown-jdk should be installed to satisfy virtual/jdk. The best way around it is to remember to install the correct JDK before anything which requires virtual/jdk... but java-config certainly works too.

I just don't like having Blackdown lying around when I'm effectively forced to use Sun's for work-related stuff.
Back to top
View user's profile Send private message
SeJo
Retired Dev
Retired Dev


Joined: 08 Oct 2002
Posts: 298
Location: Belgium

PostPosted: Wed May 26, 2004 10:13 am    Post subject: Reply with quote

if you map your /etc/make.profile to the correct version (preferably the 2004.1) then your problems will dissapear...

greetings
_________________
"I am not bound to please thee with my answers."
Back to top
View user's profile Send private message
bergs
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2002
Posts: 141
Location: Bern, Switzerland

PostPosted: Thu May 27, 2004 7:25 am    Post subject: Reply with quote

# emerge info
Portage 2.0.50-r6 (default-ppc-2004.1, gcc-3.2.3, glibc-2.3.2-r9, 2.6.4)
...

# emerge -Up world
...

Calculating world dependencies \
emerge: there are no masked or unmasked ebuilds to satisfy ">=virtual/jdk-1.4".
...

# java-config -L
[blackdown-jre-1.3.1] "Blackdown JRE 1.3.1" (/etc/env.d/java/20blackdown-jre-1.3.1)
[ibm-jdk-1.4.1] "IBM JDK 1.4.1" (/etc/env.d/java/20ibm-jdk-1.4.1) *


Would emerging ibm-jdk-bin solve my problem?
Back to top
View user's profile Send private message
bergs
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2002
Posts: 141
Location: Bern, Switzerland

PostPosted: Fri May 28, 2004 6:40 am    Post subject: Reply with quote

Ok, installing ibm-jdk-bin works. No more problems.
Back to top
View user's profile Send private message
SeJo
Retired Dev
Retired Dev


Joined: 08 Oct 2002
Posts: 298
Location: Belgium

PostPosted: Fri May 28, 2004 7:39 am    Post subject: Reply with quote

why? it's the only 1.4 jdk for PPC that works...

simpel :p


greets
_________________
"I am not bound to please thee with my answers."
Back to top
View user's profile Send private message
bergs
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2002
Posts: 141
Location: Bern, Switzerland

PostPosted: Fri May 28, 2004 8:42 pm    Post subject: Reply with quote

Not so simple at all. I had

ibm-jdk-1.4.1

installed but only

ibm-jdk-bin-1.4.1

fixed my problem. I guess somebody renamed that package and this caused all the trouble.

I'm no Linux programmer (Java and such) but in this respect portage is IMHO very unflexible. Examples? The above, vixie-cron (long time sticky post in Other Things Gentoo) and much more.
Back to top
View user's profile Send private message
pvdabeel
Retired Dev
Retired Dev


Joined: 25 Mar 2003
Posts: 188
Location: Belgium

PostPosted: Mon May 31, 2004 12:52 am    Post subject: Reply with quote

bergs wrote:
I'm no Linux programmer (Java and such) but in this respect portage is IMHO very unflexible. Examples? The above, vixie-cron (long time sticky post in Other Things Gentoo) and much more.


True, portage cannot current be instructed what todo in case of a name-change, package move, multiple virtuals.

The current portage team is looking at these one at a time. It may take a little while before such things no longer happen
Back to top
View user's profile Send private message
Trejkaz
Guru
Guru


Joined: 14 Nov 2002
Posts: 479
Location: Sydney, Australia

PostPosted: Mon May 31, 2004 1:26 am    Post subject: Reply with quote

Quick question for portage guru... if I put an entry into my virtuals file manually before emerging system for the first time, will that virtual be obeyed?

This would be a neat way around the Java problem on first install since I could bind it to sun-jdk before blackdown even gets a chance to do anything. It would also simplify the install process since I could set up metalog and vixie-cron similarly. I guess this process would happen each reinstall, when I copied my backed-up virtuals and world files back to the new install.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum