[Bug 465005] New: BuildService: build failure "bytecode version error"
https://bugzilla.novell.com/show_bug.cgi?id=465005 Summary: BuildService: build failure "bytecode version error" Product: openSUSE 11.1 Version: Final Platform: i586 OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: richard.bos@xs4all.nl QAContact: qa@suse.de Found By: Community User For openSUSE_11.1 and up the rpm build for rpms that provide binary java classes (pre-compiled). The error is: With java 1.6.0 installed, following error: FHoSS.jar: de/fhg/fokus/hss/sh/data/ShDataParser.class FHoSS.jar: de/fhg/fokus/hss/sh/ShConstants.class FHoSS.jar: de/fhg/fokus/hss/sh/ShExperimentalResultException.class ERROR: the files above contain java bytecode for something later than java 1.5, ERROR: please set the javac target to 1.5 or lower. error: Bad exit status from /var/tmp/rpm-tmp.99596 (%install) The message is confusing as it states that the classes for later than 1.5. As I build the rpm with java-1.6.0, that should match, but the advice is too use 1.5.0? ERROR: the files above contain java bytecode for something later than java 1.5, ERROR: please set the javac target to 1.5 or lower.
From the build service list the following advice is obtained: I'd recommend to use
export NO_BRP_CHECK_BYTECODE_VERSION=true In your specfile in the install section. That will switch off that broken check. See also: http://lists.opensuse.org/opensuse-buildservice/2008-12/msg00016.html and http://lists.opensuse.org/opensuse-buildservice/2008-12/msg00018.html What results in: http://en.opensuse.org/Java/Packaging/Cookbook#bytecode_version_error My email to the list is archived at http://lists.opensuse.org/opensuse-buildservice/2009-01/msg00081.html 1) Is it possible to disable the check for non SLE distributions. 2) Is it possible to make the warning less confusing? ERROR: the files above contain java bytecode for something later than java 1.5, ERROR: please set the javac target to 1.5 or lower. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=465005
User meissner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=465005#c1
--- Comment #1 from Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=465005
User choeger@open-xchange.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=465005#c2
--- Comment #2 from Carsten Hoeger
https://bugzilla.novell.com/show_bug.cgi?id=465005
User richard.bos@xs4all.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=465005#c3
--- Comment #3 from Richard Bos
https://bugzilla.novell.com/show_bug.cgi?id=465005
User choeger@open-xchange.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=465005#c4
--- Comment #4 from Carsten Hoeger
https://bugzilla.novell.com/show_bug.cgi?id=465005
User richard.bos@xs4all.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=465005#c5
--- Comment #5 from Richard Bos
https://bugzilla.novell.com/show_bug.cgi?id=465005
Cyril Hrubis
https://bugzilla.novell.com/show_bug.cgi?id=465005
Cyril Hrubis
participants (1)
-
bugzilla_noreply@novell.com