Bug#334919: ant 1.6.5 fails on custom task, where ant 1.6.2 succeeded.

2005-10-21 Thread Michael Koch
On Thu, Oct 20, 2005 at 09:54:55PM +0200, Wolfgang Baer wrote:
 Hi Eric,
 
 this is definitly not a bug in ant but in your package. I will leave the bug
 open until it is fixed. Please test the comments below:
 
 Eric Lavarde wrote:
 BUILD FAILED
 /home/ericl/freemind-0.8.0/freemind/build.xml:71: The following error 
 occurred while executing this line:
 java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
 
 This class is and was never part of ant - its a xml api class provided by
 several packages in debian (libxerces2-java, libgnujaxp-java, 
 libjaxp1.2-java)
 
 Looking at your build file you seem to use the one from libgnujaxp-java
 (gnujaxp entry below).
 
 DEB_JARS := $(ANT_HOME)/lib/ant-launcher.jar xercesImpl gnujaxp
 
 But your control file doesn't include this build-dep so it is not available 
 as
 you can see by the ant command in the output.
 
 Suggested (not tested) fix:
 
 Either use jaxp-1.2 as you build-dep on libjaxp1.2-java
 or use xmlParserAPIs (the jar which is included in the libxerces2-java 
 package)
 
 Another fix - build-depend on libgnujaxp-java to satisfy gnujaxp jar. 
 However
 IMHO this would be bad as this introduces just one more build-dep which is 
 not
 needed.
 
 Please test it and close the bug if it fixes this. Otherwise I will
 have a look somewhere next week.

Is libgnujaxp-java needed anymore? Afaik all free runtimes should
include it already. GCJ does and GNU classpath does.


Cheers,
Michael
-- 
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html

Join the community at http://planet.classpath.org/


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



Bug#334919: ant 1.6.5 fails on custom task, where ant 1.6.2 succeeded.

2005-10-20 Thread Eric Lavarde
Package: ant
Version: 1.6.5-3
Severity: important


Hi,

I can't build anymore freemind 0.8.0 under unstable, if I try to
re-dpkg-buildpackage it, I get the following error:

make[1]: Entering directory `/home/ericl/freemind-0.8.0'
make[1]: Nothing to be done for `update-config'.
make[1]: Leaving directory `/home/ericl/freemind-0.8.0'
cd freemind  /usr/lib/j2sdk1.4-sun/bin/java -classpath 
/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/java/xercesImpl.jar:/usr/lib/j2sdk1.4-sun/lib/tools.jar
  -Dant.home=/usr/share/ant org.apache.tools.ant.Main-Dcompile.debug=true 
-Dcompile.optimize=true dist userdoc browser
Buildfile: build.xml

gen:

xmlbind.checkStatusOfGeneration:

xmlbind:
[mkdir] Created dir: /home/ericl/freemind-0.8.0/freemind/generated/actions
  [xjc] Compiling 
file:/home/ericl/freemind-0.8.0/freemind/freemind_actions.xsd

BUILD FAILED
/home/ericl/freemind-0.8.0/freemind/build.xml:71: The following error occurred 
while executing this line:
java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange

Total time: 1 second
make: *** [debian/stamp-ant-build] Error 1

I will attach rules and build.xml file, and you can get the package from
deb-src http://eric.lavar.de/comp/linux/debian/ experimental/
and try to rebuild it under unstable.

My first check tells me that it's actually within the instantiation of
the following taskdef that the problem appears:
taskdef name=xjc classname=com.sun.tools.xjc.XJCTask
   classpath=${jaxb} /

I'm happy about any help, Wolfgang is waiting for me to test his new
batik package... :-

Thanks, Eric

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-5.99.sarge1
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages ant depends on:
ii  kaffe 2:1.1.6-3  A JVM to run Java bytecode
ii  kaffe-pthreads [kaffe]2:1.1.6-3  A POSIX threads enabled version of
ii  libxerces2-java   2.6.2-3Validating XML parser for Java wit
ii  sablevm [java1-runtime]   1.11.3-1.1 Free implementation of Java Virtua
ii  sun-j2sdk1.4 [java2-runtime]  1.4.2+08   Java(TM) 2 SDK, Standard Edition,

Versions of packages ant recommends:
pn  ant-optional  none (no description available)
ii  jikes 1:1.22-3   Fast Java compiler adhering to lan
ii  jikes-sablevm [java-compiler] 1.11.3-1.1 Wrapper for jikes using classes fr
ii  kaffe-pthreads [java-compiler 2:1.1.6-3  A POSIX threads enabled version of
ii  sun-j2sdk1.4 [java-compiler]  1.4.2+08   Java(TM) 2 SDK, Standard Edition,

-- no debconf information
#!/usr/bin/make -f
# debian/rules for Commons Fileupload (uses CDBS)

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

#FREE JAVA (aka free-java-sdk)
#JAVA_HOME_DIRS   := /usr/lib/fjsdk
#JAVACMD  := /usr/lib/fjsdk/bin/java
#DEB_ANT_COMPILER := jikes

#NON-FREE JAVA (aka Sun)
JAVA_HOME_DIRS   := /usr/lib/j2sdk1.4-sun

ANT_HOME := /usr/share/ant
DEB_JARS := $(ANT_HOME)/lib/ant-launcher.jar xercesImpl gnujaxp
DEB_ANT_BUILD_TARGET := dist userdoc browser
DEB_BUILDDIR := freemind
DEB_COMPRESS_EXCLUDE := .mm

build:
/usr/bin/docbook-to-man debian/freemind.sgml  freemind.1
/usr/bin/docbook-to-man debian/urlsee.sgml  urlsee.1
# chmod +x bin/dist/freemind.sh # seems to be unnecessary
convert freemind/images/FreeMindWindowIcon.png 
freemind/images/FreeMindWindowIcon.xpm

clean:: 
-rm -f freemind/images/FreeMindWindowIcon.xpm
-rm -f urlsee.1 freemind.1
-rmdir bin

project name=freemind default=dist basedir=.
property name=ver value=0_8_0 /
property name=src value=. /
property name=src_base_for_post value=../ /
property name=build value=../bin/classes /
property name=dist value=../bin/dist /
property name=dist.lib value=${dist}/lib /
property name=dist_macos_name value=Mac_OS_X_Freemind-${ver} /
property name=dist_macos_base value=../bin/dist_macos /   
property name=dist_macos 
value=${dist_macos_base}/${dist_macos_name} /
property name=dist_macos_info 
value=${dist_macos}/FreeMind.app/Contents/Info.plist/property
property name=FM.jar value=${dist.lib}/freemind.jar/
property name=post value=../post /
property name=debug value=on /
property name=java_source_version value=1.2 /
property name=java_target_version value=1.2 /
property name=build.compiler value=modern /
property name=ant.dir value=lib/ant/lib/
property name=jarbundler.jar value = jarbundler-1.4.jar/




!-- begin generator part --
property name=jaxb 

Bug#334919: ant 1.6.5 fails on custom task, where ant 1.6.2 succeeded.

2005-10-20 Thread Wolfgang Baer

Hi Eric,

this is definitly not a bug in ant but in your package. I will leave the bug
open until it is fixed. Please test the comments below:

Eric Lavarde wrote:

BUILD FAILED
/home/ericl/freemind-0.8.0/freemind/build.xml:71: The following error occurred 
while executing this line:
java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange


This class is and was never part of ant - its a xml api class provided by
several packages in debian (libxerces2-java, libgnujaxp-java, libjaxp1.2-java)

Looking at your build file you seem to use the one from libgnujaxp-java
(gnujaxp entry below).


DEB_JARS := $(ANT_HOME)/lib/ant-launcher.jar xercesImpl gnujaxp


But your control file doesn't include this build-dep so it is not available as
you can see by the ant command in the output.

Suggested (not tested) fix:

Either use jaxp-1.2 as you build-dep on libjaxp1.2-java
or use xmlParserAPIs (the jar which is included in the libxerces2-java package)

Another fix - build-depend on libgnujaxp-java to satisfy gnujaxp jar. However
IMHO this would be bad as this introduces just one more build-dep which is not
needed.

Please test it and close the bug if it fixes this. Otherwise I will
have a look somewhere next week.

Regards,
Wolfgang


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