Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56417 - eclipse-sdk-3.0.0 compilation fails (needs access to /dev/random)
Summary: eclipse-sdk-3.0.0 compilation fails (needs access to /dev/random)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-07 23:59 UTC by Marcelo Bello
Modified: 2004-08-21 15:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcelo Bello 2004-07-07 23:59:01 UTC
I was trying to compile eclipse 3.0.0 but it failed (tryed many times).
It would always show something like

ACCESS DENIED: open_wr  /dev/random

The message was something like that, sorry I didn't save it.
I got it working by editing the ebuild and inserting the line

addpredict /dev/random

before every call to "ant".
Then the compilation succeded and I was able to run eclipse-3 without problems.

I use ant 1.6.1 and j2sdk-1.5.0-beta_2
Comment 1 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-07-08 09:12:20 UTC
This is a general problem with all java ebuilds. You must currently compile
them with FEATURES="-sandbox" for it to reliably work.
Comment 2 Marcelo Bello 2004-07-09 11:29:59 UTC
Ok, I really do not have a clue of what the "addpredict" command does, but it just seem to be what we need here.

Adding "addpredict" commands to the eclipse ebuild will make things just work as they are supposed to.

Unless there is a good reason not to use the "addpredict /dev/random" command, I think it should be added to eclipse's 3 ebuild.

Also, trying to emerge eclipse3 I couldn't find anywhere that I should use  FEATURES="-sandbox", it was easier for me to find out about the addpredict command!
Comment 3 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-07-28 07:10:36 UTC
This is one of the reasons why 3.0.0 is hardmasked;P

Anyway, the newer revisions inherit java-utils, which should (but don't) fix
this. We're working with the portage developers on this now.

Comment 4 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-08-21 15:26:50 UTC
As new versions of Portage that allows a clean fix for this seem a bit delayed,
I've added this as a work-around for now. It's in -r3 if you emerge sync.