Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 76534
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Java team <java@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Kenyon Ralph <kenyon@kenyonralph.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 76534 depends on: Show dependency tree
Bug 76534 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-01-03 10:06 0000
# emerge -vp commons-net

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] dev-java/commons-net-1.3.0  -doc +jikes +junit 0 kB


# emerge -v commons-net
....
internal-test:
    [mkdir] Created dir: /var/tmp/portage/commons-net-1.3.0/work/commons-net-1.3.0-src/target/test-reports

BUILD FAILED
/var/tmp/portage/commons-net-1.3.0/work/commons-net-1.3.0-src/build.xml:93: 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/commons-net-1.3.0 failed.
!!! Function src_compile, Line 40, Exitcode 1
!!! died on ant

Build succeeds doing USE="-junit".  May be the same/similar to Bug 76485.

------- Comment #1 From Kenyon Ralph 2005-01-04 12:55:46 0000 -------
This works now, re-emerging with +junit.  Maybe it only fails if commons-net
isn't already installed.  Might as well close this bug if nobody else reports
any problems.

------- Comment #2 From Kenyon Ralph 2005-01-04 12:57:14 0000 -------
Oh, didn't notice that I can close it myself.  See Comment #1.

------- Comment #3 From Greg 2005-01-11 02:07:20 0000 -------
I still seem to have trouble with this. Even after emerging successfully with
junit disabled after re-emering i get the same error with junit enabled.

------- Comment #4 From Jan Brinkmann (RETIRED) 2005-01-11 02:18:51 0000 -------
i'll fix this later today. i've currently no possiblity to do that.

------- Comment #5 From Jan Brinkmann (RETIRED) 2005-01-11 09:27:57 0000 -------
fixed version now in portage. please do 'emerge sync' again and try it again.
thanks for the report.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug