Bug#465389: gjdoc: please support src.com.sun.tools.javadoc.Main class

Marcus Better marcus at better.se
Fri Feb 15 02:44:43 UTC 2008


tag 465389 patch
thanks

This patch will do for TestNG purposes, it implements two of the overloaded methods.

With this patch the jar is built correctly, but I get some error from aot-compile that I don't know how to deal with:

dh_installdirs -pgjdoc 
rm -rf build-native
mkdir -p build-native
rm -rf build-native/*.jar*
cp -p *.jar build-native/
rm -rf build-resources
mkdir -p build-resources
cd build-resources; \
	for i in ../*.jar; do \
	  fastjar -xf $i; \
	done
find build-resources -name '*.class' -type f | xargs -r rm -f
rm -rf build-resources/META-INF build-resources/*.txt
find build-resources -depth -type d -empty -delete
cd build-resources && find -type f \
	    | fastjar -c -@ -f /home/marcus/src/debian/build-area/gjdoc-0.7.8/build-native/resources.jar
PYTHONPATH=/home/marcus/src/debian/build-area/gjdoc-0.7.8/debian \
	RPATH=-Wl,-rpath,/usr/lib/gcj-4.2-81 \
	    time python debian/aot-compile \
	        --gcj=gcj-4.2 --dbtool='gcj-dbtool-4.2' \
		-L /usr/lib/gcj build-native build-native
Traceback (most recent call last):
  File "debian/aot-compile", line 84, in ?
    compiler.compile()
  File "/home/marcus/src/debian/build-area/gjdoc-0.7.8/debian/aotcompile.py", line 118, in compile
    jobs = self.getJobList()
  File "/home/marcus/src/debian/build-area/gjdoc-0.7.8/debian/aotcompile.py", line 131, in getJobList
    jobs = weed_jobs(find_jobs(self.srcdir, self.exclusions))
  File "/home/marcus/src/debian/build-area/gjdoc-0.7.8/debian/aotcompile.py", line 187, in find_jobs
    job = JarJob(path)
  File "/home/marcus/src/debian/build-area/gjdoc-0.7.8/debian/aotcompile.py", line 316, in __init__
    self._walk(zipfile.ZipFile(path, "r"))
  File "/usr/lib/python2.4/zipfile.py", line 210, in __init__
    self._GetContents()
  File "/usr/lib/python2.4/zipfile.py", line 230, in _GetContents
    self._RealGetContents()
  File "/usr/lib/python2.4/zipfile.py", line 302, in _RealGetContents
    raise RuntimeError, \
RuntimeError: File name in directory "com/sun/tools/javadoc/" and header "META-INF/" differ.
Command exited with non-zero status 1
0.05user 0.03system 0:00.55elapsed 16%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (5major+1140minor)pagefaults 0swaps
make: *** [build-native-stamp] Fel 1
dpkg-buildpackage: misslyckades: fakeroot debian/rules binary returnerade felkod 2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: com.sun.tools.javadoc.Main.patch
Type: text/x-diff
Size: 1562 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20080215/371f9b04/attachment.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20080215/371f9b04/attachment.pgp 


More information about the pkg-java-maintainers mailing list