Debian Bug report logs -
#447143
java-gcj-compat-dev: UnboundLocalError: local variable 'MAX_CLASSES_PER_JAR' referenced before assignment
Reported by: Kobayashi Noritada <nori1@dolphin.c.u-tokyo.ac.jp>
Date: Thu, 18 Oct 2007 12:09:01 UTC
Severity: important
Tags: patch
Found in version java-gcj-compat/1.0.76-6
Fixed in version java-gcj-compat/1.0.76-7
Done: Matthias Klose <doko@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#447143; Package java-gcj-compat-dev.
(full text, mbox, link).
Acknowledgement sent to Kobayashi Noritada <nori1@dolphin.c.u-tokyo.ac.jp>:
New Bug report received and forwarded. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
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)
[fix-unboundlocalerror.patch (text/x-makefile, attachment)]
Information forwarded to debian-bugs-dist@lists.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#447143; Package java-gcj-compat-dev.
(full text, mbox, link).
Acknowledgement sent to Florian Weimer <fw@deneb.enyo.de>:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>.
(full text, mbox, link).
Message #10 received at 447143@bugs.debian.org (full text, mbox, reply):
severity 447143 important
thanks
This bug is rather annoying because it breaks builds. Shall I upload
the patch from this bug report?
Severity set to `important' from `normal'
Request was from Florian Weimer <fw@deneb.enyo.de>
to control@bugs.debian.org.
(Sun, 21 Oct 2007 17:33:03 GMT) (full text, mbox, link).
Reply sent to Matthias Klose <doko@debian.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Kobayashi Noritada <nori1@dolphin.c.u-tokyo.ac.jp>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #17 received at 447143-close@bugs.debian.org (full text, mbox, reply):
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-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Thu, 29 Nov 2007 07:27:19 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed Jan 10 21:41:18 2018;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.