Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100807 - dev-java/velocity-1.4-r1 does not compile with useflag "j2ee"
Summary: dev-java/velocity-1.4-r1 does not compile with useflag "j2ee"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-30 04:50 UTC by Edwin van Ouwerkerk Moria
Modified: 2006-09-10 02:48 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 Edwin van Ouwerkerk Moria 2005-07-30 04:50:59 UTC
The emerge fails when j2ee support is enabled.

Reproducible: Always
Steps to Reproduce:
1. add "j2ee" to useflags for velocity
2. emerge velocity

Actual Results:  
build fails:
Calculating dependencies  >>> Unpacking source...
>>> Unpacking velocity-1.4.tar.gz to /var/tmp/portage/velocity-1.4-r1/work
>>> Source unpacked.
Buildfile: build.xml

env:
     [echo] java.home = /opt/sun-jdk-1.4.2.08/jre
     [echo] user.home = /root
     [echo] java.class.path =
/usr/share/ant-core/lib/ant-launcher.jar:/usr/share/log4j/lib/log4j.ja
r:/usr/share/xerces-2/lib/xercesSamples.jar:/usr/share/xerces-2/lib/xercesImpl.jar:/usr/share/xerces
-2/lib/xml-apis.jar:/usr/share/xerces-2/lib/xmlParserAPIs.jar:/usr/share/xalan/lib/xalan.jar:/usr/sh
are/junit/lib/junit.jar:/usr/share/antlr/lib/antlr.jar:/usr/share/bcel/lib/bcel.jar:/usr/share/bsh/l
ib/bsh.jar:/usr/share/commons-beanutils-1.6/lib/commons-beanutils.jar:/usr/share/commons-collections
are/ant-core/lib/ant-trax.jar:/usr/share/ant-core/lib/ant-antlr.jar:/usr/share/ant-core/lib/ant-apac
he-bcel.jar:/usr/share/ant-core/lib/ant-commons-logging.jar:/usr/share/ant-core/lib/ant-commons-net.
jar:/usr/share/ant-core/lib/ant-jdepend.jar:/usr/share/ant-core/lib/ant-jsch.jar:/usr/share/ant-core
/lib/ant-apache-log4j.jar:/usr/share/ant-core/lib/ant-apache-oro.jar:/usr/share/ant-core/lib/ant-apa
che-regexp.jar:/usr/share/ant-core/lib/ant-xalan1.jar:/usr/share/ant-core/lib/ant-javamail.jar:/usr/
share/ant-core/lib/xjavac.jar


prepare:
    [mkdir] Created dir: /var/tmp/portage/velocity-1.4-r1/work/velocity-1.4/bin
    [mkdir] Created dir:
/var/tmp/portage/velocity-1.4-r1/work/velocity-1.4/bin/classes
    [mkdir] Created dir: /var/tmp/portage/velocity-1.4-r1/work/velocity-1.4/bin/src
     [copy] Copying 196 files to
/var/tmp/portage/velocity-1.4-r1/work/velocity-1.4/bin/src

compile:
    [javac] Compiling 195 source files to
/var/tmp/portage/velocity-1.4-r1/work/velocity-1.4/bin/cla
sses
    [javac]
/var/tmp/portage/velocity-1.4-r1/work/velocity-1.4/bin/src/org/apache/velocity/test/Velo
cityServletTest.java:132:
org.apache.velocity.test.VelocityServletTest.MockServletContext is not abs
tract and does not override abstract method getServletContextName() in
javax.servlet.ServletContext
    [javac]     static class MockServletContext implements ServletContext
    [javac]            ^
    [javac]
/var/tmp/portage/velocity-1.4-r1/work/velocity-1.4/bin/src/org/apache/velocity/test/Velo
cityServletTest.java:242:
org.apache.velocity.test.VelocityServletTest.MockHttpServletResponse is no
:
BUILD FAILED
/var/tmp/portage/velocity-1.4-r1/work/velocity-1.4/build/build.xml:189: Compile
failed; see the compiler error output for details.

Total time: 7 seconds

!!! ERROR: dev-java/velocity-1.4-r1 failed.
!!! Function src_compile, Line 33, Exitcode 1
!!! Java compile failed.
!!! If you need support, post the topmost build error, NOT this status message.


Expected Results:  
a working velocity installation :-)
by removing the j2ee useflag the build runs correctly, but functionality is missing.

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r0, 2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1.80GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/
http://pandemonium.tiscali.de/pub/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X aalib alsa apm avi berkdb bitmap-fonts cdr crypt cups curl emboss
encode fam flac foomaticdb fortran gd gdbm gif gphoto2 gtk2 imagemagick imlib
java jpeg junit libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl ogg
oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline
ruby samba sdl slang source spell ssl svga tcltk tcpd tiff truetype
truetype-fonts type1-fonts unicode vorbis xml2 xv zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2006-09-10 02:48:49 UTC
The j2ee use flag is not available in the current ebuilds. Please open a new bug for getting it back if you need it.