Package: mockobjects
Version: 0.09-1
Severity: serious
Tags: patch

When building 'mockobjects' in a clean 'unstable' chroot,
I get the following error:

junit:
    [mkdir] Created dir: /srv/dbuild/tmp/mockobjects-0.09/out/j2ee/classes

BUILD FAILED
/srv/dbuild/tmp/mockobjects-0.09/build.xml:176: 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: 8 seconds
make: *** [install] Error 1


Please add the missing Build-Depends on 'ant-optional' to debian/control.

The attached patch also changes the build system to use the free java
java-gcj-compat-dev.

Regards
Andreas Jochens

diff -urN ../tmp-orig/mockobjects-0.09/debian/control ./debian/control
--- ../tmp-orig/mockobjects-0.09/debian/control 2006-10-05 12:02:53.000000000 
+0000
+++ ./debian/control    2006-10-05 12:02:30.000000000 +0000
@@ -1,15 +1,15 @@
 Source: mockobjects
-Section: contrib/devel
+Section: devel
 Priority: optional
 Maintainer: Marcus Crafter <[EMAIL PROTECTED]>
-Build-Depends-Indep: debhelper (>= 4.0.0), ant, j2sdk1.4 | j2sdk1.3 | 
java2-compiler, junit
+Build-Depends-Indep: debhelper (>= 4.0.0), ant, ant-optional, 
java-gcj-compat-dev, junit
 Standards-Version: 3.6.1.1
 
 Package: libmockobjects-java
-Section: contrib/devel
+Section: devel
 Priority: optional
 Architecture: all
-Depends: {misc:Depends}, java2-runtime | java1-runtime
+Depends: java2-runtime | java1-runtime
 Description: Framework for developing and using mock objects
  Mock Objects is a test-first driven framework for building
  generic software and/or unit testing frameworks. It supports:
@@ -25,10 +25,9 @@
   and io.
 
 Package: libmockobjects-java-doc
-Section: contrib/devel
+Section: devel
 Priority: optional
 Architecture: all
-Depends: {misc:Depends}
 Description: Framework for developing and using mock objects
  Mock Objects is a test-first driven framework for building
  generic software and/or unit testing frameworks. It supports:


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to