while compiling i get: >>> md5 src_uri ;-) commons-lang-2.0-src.tar.gz >>> Unpacking source... >>> Unpacking commons-lang-2.0-src.tar.gz to /var/tmp/portage/commons-lang-2.0-r1/work >>> Source unpacked. ACCESS DENIED open_wr: /dev/random Buildfile: build.xml init: [echo] -------- commons-lang 2.0 -------- prepare: [mkdir] Created dir: /var/tmp/portage/commons-lang-2.0-r1/work/commons-lang-2.0-src/target [mkdir] Created dir: /var/tmp/portage/commons-lang-2.0-r1/work/commons-lang-2.0-src/target/classes [mkdir] Created dir: /var/tmp/portage/commons-lang-2.0-r1/work/commons-lang-2.0-src/target/conf [mkdir] Created dir: /var/tmp/portage/commons-lang-2.0-r1/work/commons-lang-2.0-src/target/tests static: [copy] Copying 1 file to /var/tmp/portage/commons-lang-2.0-r1/work/commons-lang-2.0-src/target/conf compile: [javac] Compiling 57 source files to /var/tmp/portage/commons-lang-2.0-r1/work/commons-lang-2.0-src/target/classes [javac] javac: target release 1.1 conflicts with default source release 1.5 BUILD FAILED /var/tmp/portage/commons-lang-2.0-r1/work/commons-lang-2.0-src/build.xml:46: Compile failed; see the compilererror output for details. Total time: 3 seconds !!! ERROR: dev-java/commons-lang-2.0-r1 failed. !!! Function src_compile, Line 34, Exitcode 1 !!! compilation failed --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-dev-java_-_commons-lang-2.0-r1-13365.log" open_wr: /dev/random -------------------------------------------------------------------------------- you can solve it by adding FEATURES="-snadbox" to /etc/make.conf but is there any other way ? Reproducible: Always Steps to Reproduce: 1.emerge commons-lang 2. 3. Portage 2.0.50-r9 (default-x86-1.4, gcc-3.4.1, glibc-2.3.4.20040619-r0, 2.6.7) ================================================================= System uname: 2.6.7 i686 AMD Athlon(tm) XP 1600+ Gentoo Base System version 1.5.1 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/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/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox strict" GENTOO_MIRRORS="http://src.gentoo.pl/ http://gentoo.zie.pg.gda.pl/ http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ http://ftp.rhnet.is/pub/gentoo/ http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://ftp.gnome.org/pub/gnome/ http://ibiblio.org/pub/mirrors/kde/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles/ ftp://ftp.oregonstate.edu/pub/gentoo/distfiles/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://vax.ustronet/gentoo-portage" USE="3dnow X aalib accessibility acl acpi alsa apache2 apm arts avi berkdb bonobo cdr crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 guile imlib innodb ipv6 java jpeg kde libg++ libwww linguas_pl mad mikmod mmx motif mozilla mpeg mysql nas ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline ruby samba sdl slang spell ssl svga tcltk tcpd tetex tiff truetype usb videos x86 xml2 xmms xosd xv zlib"
don't use a hard masked jdk
I think the resolution of this bug is incorrect. Sooner or later Suns JDK 1.5 will be marked as stable, and this bug will again become a problem. I suggest 2 possible solutions. Solution 1 ========== Modify the ant build script and remove the source="1.1" line from the compile target <javac srcdir="${source.home}" destdir="${build.home}/classes" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}"> <classpath refid="compile.classpath"/> </javac> Solution 2 ========== Modify the compile target as above but instead of removing the target="1.1" add a line source="1.1" <javac srcdir="${source.home}" destdir="${build.home}/classes" debug="${compile.debug}" deprecation="${compile.deprecation}" source="1.1" target="1.1" optimize="${compile.optimize}"> <classpath refid="compile.classpath"/> </javac> Peter.
Created attachment 49501 [details] dev-java/commons-lang-2.0-r2 The suggested solution is WAY better :D I made a simple ebuild to use suggested solution 2 which works fine for me (taken from http://forum.java.sun.com/thread.jspa?forumID=316&threadID=321534)
+1 to egore's patch/ebuild. works nicely. i agree this shouldn't be marked as invalid.