Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107122 - log4j-1.2.12 doesn't compile with java 5 (javac: invalid source release: 1.1)
Summary: log4j-1.2.12 doesn't compile with java 5 (javac: invalid source release: 1.1)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 107347 107719 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-24 16:20 UTC by olivierva
Modified: 2005-09-30 09:49 UTC (History)
2 users (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 olivierva 2005-09-24 16:20:55 UTC
When compiling log4j-1.2.12 with sun-jdk 1.5 I get the following error:    
....
[javac] Compiling 158 source files to
/var/tmp/portage/log4j-1.2.12/work/logging-log4j-1.2.12/dist/classes
[javac] javac: invalid source release: 1.1
....
logging-log4j-1.2.12/build.xml:215: Compile failed; see the compiler error
output for details



Reproducible: Always
Steps to Reproduce:
1.emerge log4j
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2005-09-24 16:55:19 UTC
doesn't seem to work on java 1.4 either...
Comment 2 Thomas Matthijs (RETIRED) gentoo-dev 2005-09-24 22:03:01 UTC
1.5 is package.masked
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-09-26 23:56:17 UTC
*** Bug 107347 has been marked as a duplicate of this bug. ***
Comment 4 Christoph Brill (egore) (RESIGNED) 2005-09-28 10:54:40 UTC
I prefer this solution in src_unpack()


sed -i \
        -e "s:property name=\"javac.source\" value=\"1.1\":property
name=\"javac.source\" value=\"1.2\":" \
        -e "s:property name=\"javac.target\" value=\"1.1\":property
name=\"javac.target\" value=\"1.2\":" \
        build.xml || die "sed failed"
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-09-30 09:42:29 UTC
*** Bug 107719 has been marked as a duplicate of this bug. ***
Comment 6 Dave Nebinger 2005-09-30 09:49:12 UTC
For those that want an ebuild to fix the problem, I did submit one under bug # 
107719.  The powers that be marked it as a duplicate of this one and set as 
resolved.  I don't know if that means the ebuild will make it into portage or 
not.