Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219126 - add java-virtuals/jaf for dev-java/sun-jaf or >=1.5 VM
Summary: add java-virtuals/jaf for dev-java/sun-jaf or >=1.5 VM
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: java-virtuals
  Show dependency tree
 
Reported: 2008-04-24 08:43 UTC by Martin von Gagern
Modified: 2008-04-28 00:57 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 Martin von Gagern 2008-04-24 08:43:44 UTC
ant-javamail-1.7.0-r1 fails to build here, where ant-javamail-1.7.0 worked all right. One notable difference between these two is the dropped special handling of jaf. Especially as the references to javax.activation seem to be part of the ant task sources, I guess this task should depend on jaf, no matter whether javamail depends on jaf as well or not.

build-dep:
[javac.ant] Compiling 1 source file to /var/tmp/portage/dev-java/ant-javamail-1.7.0-r1/work/apache-ant-1.7.0/build/classes
[javac.ant] /var/tmp/portage/dev-java/ant-javamail-1.7.0-r1/work/apache-ant-1.7.0/src/main/org/apache/tools/ant/taskdefs/email/MimeMailer.java:38: package javax.activation does not exist
[javac.ant] import javax.activation.DataHandler;
[javac.ant]                         ^
[javac.ant] /var/tmp/portage/dev-java/ant-javamail-1.7.0-r1/work/apache-ant-1.7.0/src/main/org/apache/tools/ant/taskdefs/email/MimeMailer.java:39: package javax.activation does not exist
[javac.ant] import javax.activation.FileDataSource;
[javac.ant]                         ^
[javac.ant] /var/tmp/portage/dev-java/ant-javamail-1.7.0-r1/work/apache-ant-1.7.0/src/main/org/apache/tools/ant/taskdefs/email/MimeMailer.java:73: package javax.activation does not exist
[javac.ant]     class StringDataSource implements javax.activation.DataSource {
[javac.ant]                                                       ^
[javac.ant] /var/tmp/portage/dev-java/ant-javamail-1.7.0-r1/work/apache-ant-1.7.0/src/main/org/apache/tools/ant/taskdefs/email/MimeMailer.java:215: cannot resolve symbol
[javac.ant] symbol  : class DataHandler 
[javac.ant] location: class org.apache.tools.ant.taskdefs.email.MimeMailer
[javac.ant]             textbody.setDataHandler(new DataHandler(sds));
[javac.ant]                                         ^
[javac.ant] /var/tmp/portage/dev-java/ant-javamail-1.7.0-r1/work/apache-ant-1.7.0/src/main/org/apache/tools/ant/taskdefs/email/MimeMailer.java:231: cannot resolve symbol
[javac.ant] symbol  : class FileDataSource 
[javac.ant] location: class org.apache.tools.ant.taskdefs.email.MimeMailer
[javac.ant]                 FileDataSource fileData = new FileDataSource(file);
[javac.ant]                 ^
[javac.ant] /var/tmp/portage/dev-java/ant-javamail-1.7.0-r1/work/apache-ant-1.7.0/src/main/org/apache/tools/ant/taskdefs/email/MimeMailer.java:231: cannot resolve symbol
[javac.ant] symbol  : class FileDataSource 
[javac.ant] location: class org.apache.tools.ant.taskdefs.email.MimeMailer
[javac.ant]                 FileDataSource fileData = new FileDataSource(file);
[javac.ant]                                               ^
[javac.ant] /var/tmp/portage/dev-java/ant-javamail-1.7.0-r1/work/apache-ant-1.7.0/src/main/org/apache/tools/ant/taskdefs/email/MimeMailer.java:232: cannot resolve symbol
[javac.ant] symbol  : class DataHandler 
[javac.ant] location: class org.apache.tools.ant.taskdefs.email.MimeMailer
[javac.ant]                 DataHandler fileDataHandler = new DataHandler(fileData);
[javac.ant]                 ^
[javac.ant] /var/tmp/portage/dev-java/ant-javamail-1.7.0-r1/work/apache-ant-1.7.0/src/main/org/apache/tools/ant/taskdefs/email/MimeMailer.java:232: cannot resolve symbol
[javac.ant] symbol  : class DataHandler 
[javac.ant] location: class org.apache.tools.ant.taskdefs.email.MimeMailer
[javac.ant]                 DataHandler fileDataHandler = new DataHandler(fileData);
[javac.ant]                                                   ^
[javac.ant] 8 errors

BUILD FAILED
/var/tmp/portage/dev-java/ant-javamail-1.7.0-r1/work/apache-ant-1.7.0/build.xml:658: Compile failed; see the compiler error output for details.

Total time: 4 seconds
 * 
 * ERROR: dev-java/ant-javamail-1.7.0-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3937:  Called ant-tasks_src_compile
 *             environment, line  382:  Called eant '-Dbuild.dep=javamail' 'jar-dep'
 *             environment, line  925:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 *  The die message:
 *   eant failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/dev-java:ant-javamail-1.7.0-r1:20080424-081222.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/ant-javamail-1.7.0-r1/temp/environment'.
 * 
!!! When you file a bug report, please include the following information:
GENTOO_VM=blackdown-jdk-1.4.2  CLASSPATH="" JAVA_HOME="/opt/blackdown-jdk-1.4.2.03"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"

Installed javamail packages:
[U] dev-java/ant-javamail (1.7.0@01/08/08 -> (~)1.7.0-r1)
[I] dev-java/gnu-javamail (1.0-r2(1)@11/28/07)
[I] dev-java/sun-javamail (1.4.1@12/21/07)
[I] java-virtuals/javamail (1.0-r1@11/29/07)

JAR files in ${S}/lib:
lib/ant.jar -> /usr/share/ant-core/lib/ant.jar
lib/mail.jar -> /usr/share/sun-javamail/lib/mail.jar

Debug output from eclass:
>>> Unpacking source...
>>> Unpacking apache-ant-1.7.0-src.tar.bz2 to /var/tmp/portage/dev-java/ant-javamail-1.7.0-r1/work
>>> Unpacking ant-1.7.0-gentoo.tar.bz2 to /var/tmp/portage/dev-java/ant-javamail-1.7.0-r1/work
debug: java-pkg_jar-from: entering function, parameters: --build-only ant-core ant.jar
debug: java-pkg_ensure-dep: entering function, parameters: build ant-core
debug: Matching against: ant-core
debug: java-pkg_jar-from: entering function, parameters: --virtual javamail
debug: java-pkg_ensure-dep: entering function, parameters: javamail
debug: Matching against: javamail
debug: java-pkg_record-jar_: entering function, parameters: javamail
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-java/ant-javamail-1.7.0-r1/work/apache-ant-1.7.0 ...
debug: eant: entering function, parameters: -Dbuild.dep=javamail jar-dep
debug: java-ant_bsfix: entering function, parameters:
debug: java-pkg_needs-vm: entering function, parameters:
debug: java-ant_bsfix_files: entering function, parameters: ./build.xml
debug: java-ant_bsfix_files: target: 1.4 source: 1.4
debug: java-ant_bsfix_files: ./build.xml
debug: Using second generation rewriter

Output from "java-config --classpath=javamail":
/usr/share/sun-javamail/lib/mail.jar

Portage version (head line of emerge --info):
Portage 2.1.5_rc6 (default-linux/x86/2007.0/desktop, gcc-4.2.3, glibc-2.7-r2, 2.6.25-gentoo-r1 i686)
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2008-04-24 13:21:25 UTC
Ah yes. The activation classes come with the jdk after 1.4. Should just virtual it. 
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-04-27 11:14:06 UTC
The original problem was fixed meanwhile by adding sun-jaf dep back.
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2008-04-28 00:57:16 UTC
Virtual added.