Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
db and sun-jdk-1.5.0_beta2 on gcc 3.4 working
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Sat Jun 19, 2004 6:58 am    Post subject: db and sun-jdk-1.5.0_beta2 on gcc 3.4 working Reply with quote

to get java to work on my stage1 gcc 3.4 system I had to emerge the latest sun-jdk-1.5_beta2.

however there are a few dependencies, one of which is db.

db needs java to compile (if you have USE="java") so it's a catch 22. Can't emerge sun-jdk-1.5 because it needs db, and can't emerge db cause it needs java.

so I emerged sun-jdk-1.5_beta2 without deps

Code:
emerge --nodeps /usr/portage/dev-java/sun-jdk/sun-jdk-1.5.0_beta2.ebuild


now set it as the default javare

Code:
java-config -S sun-jdk-1.5.0_beta2

confirm with
Code:
java-config -L

for good measure run
Code:
env-update && source /etc/profile


now you should have a functioning java install


NOW... in order to get db working (which is a system dependency) the default ebuild (db-4.1.25_p1-r3 at time of writing) won't work with sun's 1.5 jdk..
because:

Code:
Java compiler uses '-source 1.5' as default. Some keywords such as 'enum' are not valid identifiers any more in that mode, which can cause incompatibility with certain sources.


Also, for me, emerging the latest db in portage results in a failure dure to access violations on /dev/random.

so to get db working I had to remove sandbox:
Code:
FEATURES="-sandbox" emerge /usr/portage/sys-libs/db/db-4.2.52_p2.ebuild


Now I had java and db on the same system, however (because this was a stage1 install) I wanted to install the other dependencies for sun-jdk-1.5.0_beta2, which were:

Code:
Calculating dependencies ...done!
[ebuild  N    ] sys-libs/lib-compat-1.3
[ebuild  N    ] sys-devel/libperl-5.8.4-r1
[ebuild  N    ] dev-lang/perl-5.8.4
[ebuild  N    ] sys-devel/autoconf-2.59-r4
[ebuild  N    ] dev-libs/openssl-0.9.7d-r1
[ebuild  N    ] media-libs/jpeg-6b-r3
[ebuild  N    ] media-libs/tiff-3.6.1-r1
[ebuild  N    ] media-libs/libpng-1.2.5-r6
[ebuild  N    ] sys-devel/automake-1.8.5-r1
[ebuild  N    ] sys-devel/libtool-1.5.2-r5
[ebuild  N    ] dev-libs/glib-1.2.10-r5
[ebuild  N    ] sys-apps/miscfiles-1.3-r1
[ebuild  N    ] sys-libs/cracklib-2.7-r9
[ebuild  N    ] sys-libs/pam-0.77-r1
[ebuild  N    ] net-libs/openslp-1.0.11
[ebuild  N    ] net-print/cups-1.1.20-r1
[ebuild   RF  ] dev-java/sun-jdk-1.5.0_beta2


and note it no-longer includes db! yay.

and I don't want to re-emerge sun-jdk (although it wouldn't hurt) so I ran:

Code:
emerge -oa /usr/portage/dev-java/sun-jdk/sun-jdk-1.5.0_beta2.ebuild

-o to do dependencies only, and -a to list them and give me the option to emerge them once I looked the deps over.

now I could continue on with my stage1 install with

Code:
emerge system


hope maybe this helps someone else out there..

-chris
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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