Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66112 - jython does not emerge with Sun JDK 1.5
Summary: jython does not emerge with Sun JDK 1.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-02 04:58 UTC by Kurt Huwig
Modified: 2004-10-02 09:01 UTC (History)
0 users

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 Kurt Huwig 2004-10-02 04:58:01 UTC
When I try to emerge jython, I get sandbox warnings as well as compiler failures

Reproducible: Always
Steps to Reproduce:
1. Install sun-jdk-1.5.0
2. emerge jython

Actual Results:  
sandbox & javac errors

Expected Results:  
jython emerged

This patch fixes it for me

--- jython-2.1-r5.ebuild.orig   2004-10-02 13:39:41.460958664 +0200
+++ jython-2.1-r5.ebuild        2004-10-02 13:50:15.253607536 +0200
@@ -20,15 +20,19 @@
 #      servlet? ( >=net-www/tomcat-5.0 )

 src_unpack() {
+       addpredict "/dev/random"
        cp ${DISTDIR}/${A} ${WORKDIR}
        cd ${WORKDIR}
        `java-config -J` -classpath . ${PN}-${MY_PV} -o ${S}/ demo lib source ||
die "unpack failed"
 }

 src_compile() {
+       addpredict "/dev/random"
        javac=$(java-config -c)
        if use jikes ; then
                java=$(which jikes)
+       else
+               javac="${javac} -source 1.3"
        fi

        local cp=".:${CLASSPATH}"
Comment 1 Thomas Matthijs (RETIRED) gentoo-dev 2004-10-02 04:59:50 UTC

*** This bug has been marked as a duplicate of 66110 ***
Comment 2 Kurt Huwig 2004-10-02 05:05:33 UTC
This is still necessary to compile it with JDK 1.5:

        if use jikes ; then
                java=$(which jikes)
+       else
+               javac="${javac} -source 1.3"
        fi

It has nothing to do with '/dev/random'
Comment 3 Thomas Matthijs (RETIRED) gentoo-dev 2004-10-02 09:01:35 UTC
in cvs