Debian Bug report logs -
#679365
pylucene: Please generate backwards compatible Java bytecode
Reported by: Niels Thykier <niels@thykier.net>
Date: Thu, 28 Jun 2012 08:27:02 UTC
Severity: serious
Tags: jessie, patch, sid
Found in version pylucene/3.5.0-1
Fixed in version 3.5.0-1.2
Done: Niels Thykier <niels@thykier.net>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, niels@thykier.net, Dmitry Nezhevenko <dion@dion.org.ua>:
Bug#679365; Package src:pylucene.
(Thu, 28 Jun 2012 08:27:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Niels Thykier <niels@thykier.net>:
New Bug report received and forwarded. Copy sent to niels@thykier.net, Dmitry Nezhevenko <dion@dion.org.ua>.
(Thu, 28 Jun 2012 08:27:06 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: pylucene
Version: 3.5.0-1
Severity: important
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: openjdk-7-transition
Hi,
When building pylucene with Java7 as default java it FTBFS because jcc
does not recognise Java7 bytecode. Please see attached patch as an
example of how to solve this. You can test the patch with the
binaries of java-common in experimental.
NB: pylucene still FTBFS when this patch is applied, but it gives a
different error[1], which I believe is unrelated to Java7 and just a
general FTBFS. You will get a second bug if I can reproduce that in a
sid chroot.
~Niels
[1] ValueError: (<Class: class org.apache.lucene.analysis.pt.PortugueseStemmer>, 'python class name already in use, use --rename', u'PortugueseStemmer', <Class: class org.tartarus.snowball.ext.PortugueseStemmer>)
[pylucene.diff (text/x-diff, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Dmitry Nezhevenko <dion@dion.org.ua>:
Bug#679365; Package src:pylucene.
(Fri, 14 Dec 2012 14:45:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Hideki Yamane <henrich@debian.or.jp>:
Extra info received and forwarded to list. Copy sent to Dmitry Nezhevenko <dion@dion.org.ua>.
(Fri, 14 Dec 2012 14:45:03 GMT) (full text, mbox, link).
Message #10 received at 679365@bugs.debian.org (full text, mbox, reply):
Hi,
About "incompatible-java-bytecode-format with OpenJDK 7 as default-jdk" issue,
I wonder which version should be specified to keep backward compatibility.
https://bugs.launchpad.net/ubuntu/+bugs?field.tag=java7-bytecode
I've found this is reported in LP#1049779.
And I've investigated how should be fixed, and specifying target version
is good way. But I cannot decide which version would be used.
In Bug#673177, it is specified with 1.4.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673177
> * Build class files with source/target = 1.4 to ensure backwards
> compatibility. Thanks to James Page. (Closes: #673177)
And Bug#679365, it is 1.5.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=679365
> diff -Nru pylucene-3.5.0/debian/ant.properties pylucene-3.5.0/debian/ant.properties
> --- pylucene-3.5.0/debian/ant.properties 1970-01-01 01:00:00.000000000 +0100
> +++ pylucene-3.5.0/debian/ant.properties 2012-06-28 10:15:05.000000000 +0200
> @@ -0,0 +1,4 @@
> +# Ensure that source and target are 1.5
> +# For backwards compat on Java 7
> +ant.build.javac.source=1.5
> +ant.build.javac.target=1.5
However, James said "Default base target version should be Java6" in
discussion for lintian.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673276
So, 1.4, 1.5 or 1.6?
> This is somewhat complicated by the fact that on kfreebsd we still don't have
> openjdk, so we're using GCJ/GIJ, which is really a 1.5 implementation.
If it's true, 1.5. If not, 1.6 IMO.
--
Regards,
Hideki Yamane henrich @ debian.or.jp/org
http://wiki.debian.org/HidekiYamane
Information forwarded
to debian-bugs-dist@lists.debian.org, Dmitry Nezhevenko <dion@dion.org.ua>:
Bug#679365; Package src:pylucene.
(Fri, 14 Dec 2012 17:12:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Niels Thykier <niels@thykier.net>:
Extra info received and forwarded to list. Copy sent to Dmitry Nezhevenko <dion@dion.org.ua>.
(Fri, 14 Dec 2012 17:12:03 GMT) (full text, mbox, link).
Message #15 received at 679365@bugs.debian.org (full text, mbox, reply):
On 2012-12-14 15:41, Hideki Yamane wrote:
> Hi,
>
Hi,
Moving this to debian-java@l.d.o.
> About "incompatible-java-bytecode-format with OpenJDK 7 as default-jdk" issue,
> I wonder which version should be specified to keep backward compatibility.
> https://bugs.launchpad.net/ubuntu/+bugs?field.tag=java7-bytecode
>
> I've found this is reported in LP#1049779.
> And I've investigated how should be fixed, and specifying target version
> is good way. But I cannot decide which version would be used.
>
> [...]
>
> So, 1.4, 1.5 or 1.6?
>
Honestly, in practise either of version <= 1.6 will do. I think most of
us pick 1.5 out of habbit.
>
>> This is somewhat complicated by the fact that on kfreebsd we still don't have
>> openjdk, so we're using GCJ/GIJ, which is really a 1.5 implementation.
>
> If it's true, 1.5. If not, 1.6 IMO.
>
>
You would think that, but no. GCJ/GIJ is instructed to accept any known
major Java version and then croak if it sees a byte code it doesn't grok[1].
However, GCJ/GIJ does not (to my knowledge) have the full Java 1.6
(nor 1.7) library behind it, so the code will still crash due to missing
methods or classes. However, the bytecode "format" is not going to save
you from that. If we were to check that, we would have to use a JavaX
library when compiling in 1.X mode.
I am told that OpenJDK 7 has been ported to kFreeBSD and it is simply
stalled a buildd issue. If so, I'd rather see GCJ/GIJ being removed as
a "Java implementation"[2]. Anyway, this part is all "for Jessie", so ...
~Niels
[1] http://gcc.gnu.org/ml/java-patches/2012-q2/msg00013.html
[2] E.g. default-jre would never use GCJ/GIJ and GCJ/GIJ should stop
providing javaX-runtime etc. Though, GCJ/GIJ will still remain as it is
used for bootstrapping OpenJDK.
Severity set to 'serious' from 'important'
Request was from Matthias Klose <doko@debian.org>
to control@bugs.debian.org.
(Tue, 14 May 2013 16:21:11 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Dmitry Nezhevenko <dion@dion.org.ua>:
Bug#679365; Package src:pylucene.
(Tue, 14 May 2013 16:24:13 GMT) (full text, mbox, link).
Acknowledgement sent
to Markus Koschany <apo@gambaru.de>:
Extra info received and forwarded to list. Copy sent to Dmitry Nezhevenko <dion@dion.org.ua>.
(Tue, 14 May 2013 16:24:13 GMT) (full text, mbox, link).
Message #22 received at 679365@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Control: severity -1 serious
Dear Maintainer,
OpenJDK6 support will be dropped from Debian. Hence the severity of this
bug is release critical now. Please transition your package to use
OpenJDK7 as the default java implementation for Jessie. In most cases a
patch has already been provided for the transition. Please feel free to
ask questions about this bug report or the transition in general on the
debian-java mailing list.
For the Debian Java Team
Markus Koschany
[signature.asc (application/pgp-signature, attachment)]
Added tag(s) sid and jessie.
Request was from Holger Levsen <holger@layer-acht.org>
to control@bugs.debian.org.
(Mon, 03 Jun 2013 15:57:14 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Dmitry Nezhevenko <dion@dion.org.ua>:
Bug#679365; Package src:pylucene.
(Fri, 21 Jun 2013 14:39:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Sylvestre Ledru <sylvestre@debian.org>:
Extra info received and forwarded to list. Copy sent to Dmitry Nezhevenko <dion@dion.org.ua>.
(Fri, 21 Jun 2013 14:39:04 GMT) (full text, mbox, link).
Message #29 received at 679365@bugs.debian.org (full text, mbox, reply):
Hello Dmitry,
I just uploaded the version 3.5.0-1.2 of pylucene prepared by Niels and
checked by Shuxiong in the context of the GSoC.
I uploaded it with a 5 days delay.
This upload should fix the RC bug 679365.
Hope you don't mind,
Sylvestre
Reply sent
to Niels Thykier <niels@thykier.net>:
You have taken responsibility.
(Wed, 26 Jun 2013 15:39:05 GMT) (full text, mbox, link).
Notification sent
to Niels Thykier <niels@thykier.net>:
Bug acknowledged by developer.
(Wed, 26 Jun 2013 15:39:05 GMT) (full text, mbox, link).
Message #34 received at 679365-done@bugs.debian.org (full text, mbox, reply):
Version: 3.5.0-1.2
On 2012-06-28 10:24, Niels Thykier wrote:
> Source: pylucene
> Version: 3.5.0-1
> Severity: important
> Tags: patch
> User: ubuntu-devel@lists.ubuntu.com
> Usertags: openjdk-7-transition
>
>
> Hi,
>
> When building pylucene with Java7 as default java it FTBFS because jcc
> does not recognise Java7 bytecode. Please see attached patch as an
> example of how to solve this. You can test the patch with the
> binaries of java-common in experimental.
>
> NB: pylucene still FTBFS when this patch is applied, but it gives a
> different error[1], which I believe is unrelated to Java7 and just a
> general FTBFS. You will get a second bug if I can reproduce that in a
> sid chroot.
>
> ~Niels
>
> [1] ValueError: (<Class: class org.apache.lucene.analysis.pt.PortugueseStemmer>, 'python class name already in use, use --rename', u'PortugueseStemmer', <Class: class org.tartarus.snowball.ext.PortugueseStemmer>)
>
This was fixed in 3.5.0-1.2, but the changelog had a typo in to Closes line.
~Niels
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sun, 04 Aug 2013 07:34:35 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:
Sat Jul 1 13:54:34 2023;
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.