--- Begin Message ---
Package: java-gcj-compat-dev
Version: 1.0.76-6
Severity: normal
Tags: patch
Hi,
Building db 4.6.21-3 fails with an error as follows:
dh_nativejava -plibdb4.6-java-gcj -v
dh_nativejava: Compatibility levels before 4 are deprecated.
aot-compile -L /usr/lib/gcj debian/libdb4.6-java
Traceback (most recent call last):
File "/usr/bin/aot-compile", line 95, in ?
compiler.compile()
File "/usr/lib/python2.4/site-packages/aotcompile.py", line 99, in compile
self.writeMakefile(MAKEFILE, jobs)
File "/usr/lib/python2.4/site-packages/aotcompile.py", line 127, in writeMakefile
values = job.ruleArguments()
File "/usr/lib/python2.4/site-packages/aotcompile.py", line 276, in ruleArguments
self.__makeBlocks()
File "/usr/lib/python2.4/site-packages/aotcompile.py", line 227, in __makeBlocks
if len(self.blocks[-1]) >= MAX_CLASSES_PER_JAR \
UnboundLocalError: local variable 'MAX_CLASSES_PER_JAR' referenced before assignment
dh_nativejava: command returned error code 256
make: *** [binary-arch] Error 1
This seems to be due to a bug in aotcompile.py included in
java-gcj-compat-dev. I've created a patch to fix aotcompile.py.in.
Could you please apply it?
Many thanks,
-nori
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-686
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
--- aotcompile.py.in.orig 2007-10-18 19:35:02.000000000 +0900
+++ aotcompile.py.in 2007-10-18 20:26:06.000000000 +0900
@@ -31,9 +31,6 @@
GCJFLAGS = ["-g", "-O2", "-fPIC", "-findirect-dispatch", "-fjni"]
LDFLAGS = ["-Wl,-Bsymbolic"]
-MAX_CLASSES_PER_JAR = 1024
-MAX_BYTES_PER_JAR = 1048576
-
MAKEFILE = "Makefile"
MAKEFILE_HEADER = '''\
@@ -197,6 +194,8 @@
__init__ method. The reason this is not done is because we
need to parse every class file. This is slow, and unnecessary
if the job is subsetted."""
+ MAX_CLASSES_PER_JAR = 1024
+ MAX_BYTES_PER_JAR = 1048576
names = {}
for hash, bytes in self.classes.items():
name = classname(bytes)
--- End Message ---
--- Begin Message ---
Source: java-gcj-compat
Source-Version: 1.0.76-7
We believe that the bug you reported is fixed in the latest version of
java-gcj-compat, which is due to be installed in the Debian FTP archive:
java-gcj-compat-dev_1.0.76-7_i386.deb
to pool/main/j/java-gcj-compat/java-gcj-compat-dev_1.0.76-7_i386.deb
java-gcj-compat-plugin_1.0.76-7_i386.deb
to pool/main/j/java-gcj-compat/java-gcj-compat-plugin_1.0.76-7_i386.deb
java-gcj-compat_1.0.76-7.diff.gz
to pool/main/j/java-gcj-compat/java-gcj-compat_1.0.76-7.diff.gz
java-gcj-compat_1.0.76-7.dsc
to pool/main/j/java-gcj-compat/java-gcj-compat_1.0.76-7.dsc
java-gcj-compat_1.0.76-7_i386.deb
to pool/main/j/java-gcj-compat/java-gcj-compat_1.0.76-7_i386.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 447143@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Matthias Klose <doko@debian.org> (supplier of updated java-gcj-compat package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Sun, 21 Oct 2007 20:25:26 +0200
Source: java-gcj-compat
Binary: java-gcj-compat-plugin java-gcj-compat-dev java-gcj-compat
Architecture: source i386
Version: 1.0.76-7
Distribution: unstable
Urgency: medium
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Description:
java-gcj-compat - Java runtime environment using GIJ
java-gcj-compat-dev - Java runtime environment with GCJ
java-gcj-compat-plugin - Web browser plugin to execute Java (tm) applets using gij
Closes: 447143
Changes:
java-gcj-compat (1.0.76-7) unstable; urgency=medium
.
* Fix aotcompile. Closes: #447143.
Files:
1fcb1de951693c275ae24ac26f89fc27 969 interpreters optional java-gcj-compat_1.0.76-7.dsc
bb5810d9dc12c0ed1762746aa1ac9bfa 12349 interpreters optional java-gcj-compat_1.0.76-7.diff.gz
86bedb5da466e79bae4b1481828f307f 15184 devel optional java-gcj-compat-dev_1.0.76-7_i386.deb
c40ce15a50087606a3e24b4510327a25 73684 interpreters optional java-gcj-compat_1.0.76-7_i386.deb
0137dff4021233f699126f7d56c9ae14 1404 interpreters optional java-gcj-compat-plugin_1.0.76-7_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHG5yXStlRaw+TLJwRAnIRAJ9cQ11icCPNhE+rLf6cyuv0HLfoAwCdEmEY
iEMGST6q69A5z4CXZ9l7iZw=
=ihk1
-----END PGP SIGNATURE-----
--- End Message ---