Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30687 - jar created by dev-java/commons-logging (version 1.0.3) doesn't have log4j support
Summary: jar created by dev-java/commons-logging (version 1.0.3) doesn't have log4j su...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-08 12:11 UTC by Rhett Sutphin
Modified: 2003-12-25 21:24 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 Rhett Sutphin 2003-10-08 12:11:54 UTC
The java library /usr/share/commons-logging/lib/commons-logging.jar created by
`emerge commons-logging` does not contain log4j support, despite the presence of
log4j on the system.  (And despite the ebuild having an explicit dependence on
log4j.)

From a close examination of the output of the build, it is clear that it is not
finding log4j.  However, the messages that indicate this fly by quickly, and
there is no warning that the resulting library is incomplete.

Since log4j integration a major use of commons-logging, and the binaries you
download from the Jakarta Commons project do have log4j support, this is a
substantial failing of user expectations.  

Reproducible: Always
Steps to Reproduce:
1. emerge commons-logging (at the moment, this gets you 1.0.3)
2. Examine /usr/share/commons-logging/lib/commons-logging.jar like so:
   $ jar tf /usr/share/commons-logging/lib/commons-logging.jar | grep -i log4j
3. There should be several classes with log4j in the name, like Log4JLogger and 
Log4jFactory
Actual Results:  
Those classes are missing.


Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22-ck2)
=================================================================
System uname: 2.4.22-ck2 i686 AMD Athlon(tm) XP 1700+
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /opt/tomcat/conf
/usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss avi crypt cups encode foomaticdb gif gpm jpeg libg++ mad mikmod mmx
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml
gdbm berkdb slang readline arts tetex bonobo svga tcltk java guile postgres X
sdl tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk kde motif
opengl mozilla cdr acpi clamav curl doc dvd emacs ethereal gps gtk2 imagemagick
jikes junit md5sum moznocompose mozsvg mozxmlterm mule music pda samba tiff
wxwindows xinerama xvid -apm -qt"
Comment 1 Adrian Almenar 2003-12-19 21:55:21 UTC
Moving this again to java@gentoo.org, so everyone out there can help.
Comment 2 Adrian Almenar 2003-12-25 21:24:59 UTC
This should be fixed now. Please resync your portage tree, and try again. =)

Thanks.