Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 163049 - dev-java/jline-0.9.9-r1 doesn't compile
Summary: dev-java/jline-0.9.9-r1 doesn't compile
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: 2007-01-21 11:32 UTC by Giacomo Graziosi
Modified: 2007-01-21 14:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge --info,3.73 KB, text/plain)
2007-01-21 11:33 UTC, Giacomo Graziosi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Giacomo Graziosi 2007-01-21 11:32:35 UTC
I got this error while emerging jruby:

>>> Emerging (1 of 2) dev-java/jline-0.9.9-r1 to /
 * jline-0.9.9.zip MD5 ;-) ...                                                                                                                                              [ ok ]
 * jline-0.9.9.zip RMD160 ;-) ...                                                                                                                                           [ ok ]
 * jline-0.9.9.zip SHA1 ;-) ...                                                                                                                                             [ ok ]
 * jline-0.9.9.zip SHA256 ;-) ...                                                                                                                                           [ ok ]
 * jline-0.9.9.zip size ;-) ...                                                                                                                                             [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                        [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                       [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                      [ ok ]
 * checking jline-0.9.9.zip ;-) ...                                                                                                                                         [ ok ]
 * Using: blackdown-jdk-1.4.2
>>> Unpacking source...
>>> Unpacking jline-0.9.9.zip to /var/tmp/portage/dev-java/jline-0.9.9-r1/work
removed `jline-0.9.9/jline-0.9.9.jar'
>>> Source unpacked.
Rewriting source attributes
Using Sax to rewrite the build.xml files
Rewriting ./build.xml
Rewriting target attributes
Using Sax to rewrite the build.xml files
Rewriting ./build.xml
>>> Compiling source in /var/tmp/portage/dev-java/jline-0.9.9-r1/work/jline-0.9.9/src ...
Buildfile: build.xml

compile:
    [mkdir] Created dir: /var/tmp/portage/dev-java/jline-0.9.9-r1/work/jline-0.9.9/src/target/classes
    [javac] Compiling 21 source files to /var/tmp/portage/dev-java/jline-0.9.9-r1/work/jline-0.9.9/src/target/classes
    [javac] /var/tmp/portage/dev-java/jline-0.9.9-r1/work/jline-0.9.9/src/src/main/java/jline/ConsoleReader.java:625: warning: plainTextFlavor in java.awt.datatransfer.DataFlavor has been deprecated
    [javac]                 getTransferData(DataFlavor.plainTextFlavor);
    [javac]                                           ^
    [javac] 1 warning
     [copy] Copying 3 files to /var/tmp/portage/dev-java/jline-0.9.9-r1/work/jline-0.9.9/src/target/classes

test-junit-present:

junit-present:

compile-tests:
    [mkdir] Created dir: /var/tmp/portage/dev-java/jline-0.9.9-r1/work/jline-0.9.9/src/target/test-classes
    [javac] Compiling 6 source files to /var/tmp/portage/dev-java/jline-0.9.9-r1/work/jline-0.9.9/src/target/test-classes
     [copy] Copying 1 file to /var/tmp/portage/dev-java/jline-0.9.9-r1/work/jline-0.9.9/src/target/test-classes

test:
    [mkdir] Created dir: /var/tmp/portage/dev-java/jline-0.9.9-r1/work/jline-0.9.9/src/target/test-reports

BUILD FAILED
/var/tmp/portage/dev-java/jline-0.9.9-r1/work/jline-0.9.9/src/build.xml:48: Could not create task or type of type: junit.

Ant could not find the task or a class this task relies upon.

This is common and has a number of causes; the usual 
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file: 
 - You have misspelt 'junit'.
   Fix: check your spelling.
 - The task needs an external JAR file to execute
     and this is not found at the right place in the classpath.
   Fix: check the documentation for dependencies.
   Fix: declare the task.
 - The task is an Ant optional task and the JAR file and/or libraries
     implementing the functionality were not found at the time you
     yourself built your installation of Ant from the Ant sources.
   Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
     task and make sure it contains more than merely a META-INF/MANIFEST.MF.
     If all it contains is the manifest, then rebuild Ant with the needed
     libraries present in ${ant.home}/lib/optional/ , or alternatively,
     download a pre-built release version from apache.org
 - The build file was written for a later version of Ant
   Fix: upgrade to at least the latest release version of Ant
 - The task is not an Ant core or optional task 
     and needs to be declared using <taskdef>.
 - You are attempting to use a task defined using 
    <presetdef> or <macrodef> but have spelt wrong or not 
   defined it at the point of use

Remember that for JAR files to be visible to Ant tasks implemented
in ANT_HOME/lib, the files must be in the same directory or on the
classpath

Please neither file bug reports on this problem, nor email the
Ant mailing lists, until all of these causes have been explored,
as this is not an Ant bug.

Total time: 1 second

!!! ERROR: dev-java/jline-0.9.9-r1 failed.
Call stack:
  ebuild.sh, line 1611:   Called dyn_compile
  ebuild.sh, line 968:   Called qa_call 'src_compile'
  environment, line 4485:   Called src_compile
  ebuild.sh, line 1301:   Called java-pkg-2_src_compile
  java-pkg-2.eclass, line 80:   Called eant 'jar' '-f' 'build.xml'
  java-utils-2.eclass, line 1582:   Called die

!!! 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/tmp/portage/dev-java/jline-0.9.9-r1/temp/build.log'.

!!! 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"
and of course, the output of emerge --info
Comment 1 Giacomo Graziosi 2007-01-21 11:33:20 UTC
Created attachment 107658 [details]
emerge --info
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-01-21 14:12:34 UTC
Fixed in CVS. As a workaround until you get it on your sync mirror, emerge -1 dev-java/ant and try again. Thanks.