Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 107719

Summary: log4j-1.2.12-r1.ebuild (Update)
Product: Gentoo Linux Reporter: Dave Nebinger <dnebinger>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: enhancement CC: dnebinger, patrizio.bassi
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: log4j-1.2.12-r1.ebuild
log4j-no-source-1.1.patch

Description Dave Nebinger 2005-09-30 09:31:47 UTC
Please find attached log4j-1.2.12-r1.ebuild and associated patch.

The build.xml for log4j uses the "-source 1.1" when compiling the source files.
 This fails on many recent compilers (i.e. jikes and sun-jdk-1.5) because they
no longer support source version 1.1.

The ebuild, and patch, alter the build.xml to use "-source 1.3" which is
currently supported by the recent compilers.
Comment 1 Dave Nebinger 2005-09-30 09:32:23 UTC
Created attachment 69570 [details]
log4j-1.2.12-r1.ebuild
Comment 2 Dave Nebinger 2005-09-30 09:32:52 UTC
Created attachment 69571 [details, diff]
log4j-no-source-1.1.patch
Comment 3 Dave Nebinger 2005-09-30 09:34:46 UTC
I should mention that the ebuild I provided blindly applies the patch.  Being
new to 'ebuilding', I'm not sure if the patch can be selectively applied when
using a newer compiler but exclude the patch for older compilers.

Also I only included an ebuild for log4j-1.2.12, although the same patch and
change could be applied to all of the log4j versions in portage to allow them to
compile under newer jdks.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-09-30 09:42:29 UTC

*** This bug has been marked as a duplicate of 107122 ***
Comment 5 Dave Nebinger 2005-09-30 09:47:03 UTC
I'll agree that this is a duplicate 'problem' to #107122, but instead of just 
stating it's a problem I provided an ebuild solution to fix it.

Doesn't that make it unresolved in that the ebuild/patch wasn't applied to 
portage?
Comment 6 Patrizio Bassi 2005-11-26 02:41:07 UTC
compiling with jikes and 1.5.0.0.5 it fails  
 
   [javac] Found 1 semantic error compiling 
"/mnt/Dati/Gentoo/tmp/portage/log4j-1.2.12/work/logging-log4j-1.2.12/src/java/org/apache/log4j/DailyRollingFileAppender.java": 
 
    [javac]    367. class RollingCalendar extends GregorianCalendar { 
    [javac]               ^-------------^ 
    [javac] *** Semantic Error: The abstract method "int compareTo(java.lang.Object 
$1);", inherited from type "java.lang.Comparable", is not implemented in the 
non-abstract class "org.apache.log4j.RollingCalendar".