Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sun-jdk source ebuild
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Paper
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2002
Posts: 79
Location: Milan, Italy

PostPosted: Thu Aug 01, 2002 11:28 am    Post subject: sun-jdk source ebuild Reply with quote

Hi all!

Is anybody out there working on a sun-jdk source ebuild?

I'm compiling right now the jdk from scratch with gcc3.2 but I was wondering if there an ebuild somewhere ... it could save me from terribles headaches ;)

Byeeee -Paper-
Back to top
View user's profile Send private message
Lasker
Guru
Guru


Joined: 17 Jul 2002
Posts: 445

PostPosted: Thu Aug 01, 2002 11:51 am    Post subject: Re: sun-jdk source ebuild Reply with quote

Paper wrote:
Hi all!

Is anybody out there working on a sun-jdk source ebuild?


What do you mean? It's present already but don't work (not for me at least).
I get:
Code:

bash-2.05a# emerge sun-jdk
Calculating dependencies ...done!
>>> emerge dev-java/sun-jdk-1.4.0-r5 to /
>>> Unpacking source...

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_unpack, Line 2, Exitcode 0
!!! Please download j2sdk-1_4_0_01-linux-i586.bin from http://java.sun.com/j2se/1.4/download.html (select the "Linux GNUZIP Tar shell script" package format of the SDK) and move it to /usr/portage/distfiles

!!! emerge aborting on  /usr/portage/dev-java/sun-jdk/sun-jdk-1.4.0-r5.ebuild .
bash-2.05a#


Maybe it's because I have already blackdown-jdk / jre installed and the ebuild don't recognize it?
Back to top
View user's profile Send private message
Paper
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2002
Posts: 79
Location: Milan, Italy

PostPosted: Thu Aug 01, 2002 12:01 pm    Post subject: Reply with quote

The ebuild that your are trying to emerge will install the binary version of the jdk, without the need to build it.
What I'm looking for (well, I shouldn't need as compiling from scratch isn't too much of a pain) is an ebuild that *compile* the jdk from source! (... the same old gcc3 abi problem, for those who know ...)

Your problem is easy to solve.
The sun-jdk ebuild does not contain the real SDK, because of licensing issues. The error you get tells you to download j2sdk-1_4_0_01-linux-i586.bin from http://java.sun.com/j2se/1.4/download.html and put it in /usr/portage/distfiles.
Now download the file, put it in the right place and rerun emerge and everything should run smoothly ;)

Bye -Paper-
Back to top
View user's profile Send private message
Lasker
Guru
Guru


Joined: 17 Jul 2002
Posts: 445

PostPosted: Thu Aug 01, 2002 12:04 pm    Post subject: Reply with quote

Thanks. I guess I have to unmerge blackdown java before?
Back to top
View user's profile Send private message
Paper
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2002
Posts: 79
Location: Milan, Italy

PostPosted: Thu Aug 01, 2002 12:07 pm    Post subject: Reply with quote

no, no need to unmerge it.
you can have both installed. to switch from one to the other you can use java-config (read its man page, it's really easy to use).

Bye -Paper-
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Thu Aug 01, 2002 12:47 pm    Post subject: Reply with quote

Lasker, read the error you are getting:
Code:
!!! Please download j2sdk-1_4_0_01-linux-i586.bin from http://java.sun.com/j2se/1.4/download.html (select the "Linux GNUZIP Tar shell script" package format of the SDK) and move it to /usr/portage/distfiles

You need to download the installer from Sun's website and put it in the distfiles directory. Same with IBM's JDK. Licensing issues prevent portage from "legally" automatically downloading the file.

It has nothing to do with what other JDK's you do/don't have installed. I have both Sun and IBM JDKs. Just read the instructions and things work swell.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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