Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58441 - commons-lang-2.0-r1 fails to compile
Summary: commons-lang-2.0-r1 fails to compile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-26 10:01 UTC by tkoczoro
Modified: 2005-08-07 16:08 UTC (History)
0 users

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


Attachments
dev-java/commons-lang-2.0-r2 (commons-lang-2.0-r2.ebuild,1.32 KB, text/plain)
2005-01-25 12:20 UTC, Christoph Brill (egore) (RESIGNED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tkoczoro 2004-07-26 10:01:32 UTC
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"
Comment 1 Thomas Matthijs (RETIRED) gentoo-dev 2004-07-26 10:02:50 UTC
don't use a hard masked jdk
Comment 2 Peter Henderson 2004-11-17 03:46:15 UTC
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.

Comment 3 Christoph Brill (egore) (RESIGNED) 2005-01-25 12:20:30 UTC
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)
Comment 4 mark lybarger 2005-08-07 16:08:53 UTC
+1 to egore's patch/ebuild.  works nicely.  i agree this shouldn't be marked as
invalid.