First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 171274
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: OpenOffice Team <openoffice@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Miroslav Šulc <fordfrog@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
class-version-verify.log class-version-verify.log text/plain Miroslav Šulc 2007-03-17 19:54 0000 3.89 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 171274 depends on: Show dependency tree
Show dependency graph
Bug 171274 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-03-17 19:54 0000
Moving package file lists...
Cleaning up lists of files...
Fixing permissions...
Checking for DESTDIR inside installed files...
Packaging succeeded
 * Incorrect bytecode version found
 * in file:
/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/agenda.jar
 * See
/var/tmp/portage/app-office/openoffice-2.1.0-r1/temp/class-version-verify.log
for more details.

!!! ERROR: app-office/openoffice-2.1.0-r1 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_install
  ebuild.sh, line 1060:   Called qa_call 'src_install'
  environment, line 5405:   Called src_install
  openoffice-2.1.0-r1.ebuild, line 340:   Called java-pkg_regjar
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/agenda.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/aportisdoc.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/classes.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/commonwizards.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/fax.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/form.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/hsqldb.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/java_uno_accessbridge.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/java_uno.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/js.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/juh.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/jurt.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/jut.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/letter.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/officebean.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/pexcel.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/pocketword.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/query.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/report.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/ridl.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/sandbox.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/ScriptFramework.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/ScriptProviderForBeanShell.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/ScriptProviderForJava.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/ScriptProviderForJavaScript.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/sdbc_hsqldb.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/table.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/unoil.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/unoloader.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/web.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/writer2latex.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/XMergeBridge.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/xmerge.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/XSLTFilter.jar'
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/XSLTValidate.jar'
  java-utils-2.eclass, line 342:   Called java-pkg_verify-classes
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/image//usr/lib/openoffice/program/classes/agenda.jar'
  java-utils-2.eclass, line 2313:   Called die

!!! Incorrect bytecode found
!!! If you need support, post the topmost build error, and the call stack if
relevant.
!!! A complete build log is located at
'/var/tmp/portage/app-office/openoffice-2.1.0-r1/temp/build.log'.

!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.5  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.5.0.11"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info

------- Comment #1 From Miroslav Šulc 2007-03-17 19:54:57 0000 -------
Created an attachment (id=113602) [edit]
class-version-verify.log

------- Comment #2 From Miroslav Šulc 2007-03-17 19:55:43 0000 -------
Portage 2.1.2.2 (default-linux/x86/2006.0, gcc-4.1.2, glibc-2.5-r1,
2.6.20-gentoo-r3 i686)
=================================================================
System uname: 2.6.20-gentoo-r3 i686 Genuine Intel(R) CPU           T2300  @
1.66GHz
Gentoo Base System version 1.12.9
Timestamp of tree: Sat, 17 Mar 2007 07:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb
/usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/php/apache1-php5/ext-active/
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-activ
e/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig cvs distlocks metadata-transfer sandbox sfperms strict
test"
GENTOO_MIRRORS="ftp://gd.tuwien.ac.at/opsys/linux/gentoo/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://gentoo.prz.rzeszow.pl
ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.nyx.hu/gentoo
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LC_ALL="cs_CZ.utf8"
LINGUAS="cs"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages --
filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/voip /usr/local/portage
/home/fordfrog/gentoo/jboss-overlay
/home/fordfrog/gentoo/migrated-java-experimental-overlay
/home/fordfrog/gentoo/gentoo-gis/stable"
SYNC="rsync://rsync.cz.gentoo.org/gentoo-portage"
USE="X acpi alsa apache2 apm arts asf automount berkdb bitmap-fonts bluetooth
bzip2 caps cdr cli cracklib crypt cups dbus dhcp dri dv dvb dvd dvdr dvdread
eds emboss encode esd exif fbsplash ffmpeg firefox f
oomaticdb fortran gdal gdbm geos gif gimp gnokii gnome gphoto2 gpm grass
gstreamer gtk gtk2 gtkhtml hal howl iconv imagemagick imlib ipv6 irda isdnlog
jack jack-tmpfs java javascript jbig jpeg jpeg2k justify
 kde ladcca libg++ libnotify libwww lirc lm_sensors logrotate mad midi mikmod
mjpeg mmx motif mozdevelop mp3 mpeg mplayer msn ncurses nls no-old-linux nptl
nptlonly nsplugin nvidia ogg opengl oss pam pcmcia
pcre pdf perl pmu png povray ppds pppd proj python qt qt3 qt4 quicktime
rdesktop readline real reflection samba scanner sdl seamonkey session spell spl
sse sse2 ssl startup-notification subtitles svg tcpd te
st tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vhosts
visualization vorbis widescreen wifi win32codecs wmf x86 xcomposite xine xml
xorg xprint xscreensaver xv xvid zlib" ALSA_CARDS="hda
-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug
file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate
route share shm softvol" DVB_CARDS="usb-a800" EL
IBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" LINGUAS="cs" LIRC_DEVICES="avermedia" USERLAND="GNU" VI
DEO_CARDS="nv nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #3 From Petteri Räty 2007-03-17 21:30:53 0000 -------
Add JAVA_PKG_STRICT to make.conf to reproduce. This means that the installed
jar files are not able to run with the lowest jre specified on RDEPEND. In this
case it says that open office could be run with 1.4 but some jar files have 1.5
bytecode.

------- Comment #4 From Andreas Proschofsky 2007-04-24 21:18:43 0000 -------
(In reply to comment #3)
> Add JAVA_PKG_STRICT to make.conf to reproduce. This means that the installed
> jar files are not able to run with the lowest jre specified on RDEPEND. In this
> case it says that open office could be run with 1.4 but some jar files have 1.5
> bytecode.
> 

So any idea how to fix this?

------- Comment #5 From Petteri Räty 2007-04-24 21:21:54 0000 -------
(In reply to comment #4)
> 
> So any idea how to fix this?
> 

Make sure the class files get built with $(java-pkg_javac-args). Normally this
happens automatically with autotools based stuff or ant stuff but not all make
based stuff behaves well.

------- Comment #6 From Hanno Meyer-Thurow 2007-04-24 21:26:09 0000 -------
Usually openoffice build adds '-source 1.4 -target 1.4' to compile Java source.
So it must be missing there. Is there a tool to check installed jar files on
system to verify?

------- Comment #7 From Petteri Räty 2007-04-24 21:45:08 0000 -------
(In reply to comment #6)
> Usually openoffice build adds '-source 1.4 -target 1.4' to compile Java source.
> So it must be missing there. Is there a tool to check installed jar files on
> system to verify?
> 

class-version-verify.py (Should be renamed to class-version-verify I think).
That's what the eclass uses to give this error.

------- Comment #8 From Hanno Meyer-Thurow 2007-04-25 20:57:41 0000 -------
I cannot reproduce. With openoffice-2.2.1_pre15 and gcj-jdk-4.3 (jdk-1.5) I get
this:

# class-version-verify.py -t 1.4 -r /usr/lib64/openoffice/
CVV: 4
Checked: 3582 Good: 3582 Bad: 0

# class-version-verify.py -t 1.4 -r -v /usr/lib64/openoffice/ | grep agenda.jar
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/PlaceholderTextElement.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/TextElement.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/CallWizard$WizardImplementation.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/AgendaElement.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/CallWizard.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/TopicsControl$ControlRow.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/AgendaTemplate.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/AgendaTemplate$ItemsTable.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/AgendaWizardDialogImpl.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/AgendaWizardDialogConst.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/TopicsControl.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/AgendaItem.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/AgendaTemplate$Topics.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/TableCellFormatter.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/ParaStyled.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/PlaceholderElement.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/TemplateConsts.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/AgendaWizardDialogImpl$1.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/AgendaWizardDialogImpl$RedrawListener.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/AgendaWizardDialogImpl$myPathSelectionListener.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/CGTopic.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/AgendaWizardDialogResources.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/AgendaWizardDialog.class
Good: 1.4 /usr/lib64/openoffice/program/classes/agenda.jar
com/sun/star/wizards/agenda/CGAgenda.class

------- Comment #9 From Petteri Räty 2007-04-26 08:30:05 0000 -------
(In reply to comment #8)
> I cannot reproduce. With openoffice-2.2.1_pre15 and gcj-jdk-4.3 (jdk-1.5) I get
> this:
> 

I would guess that gcj-jdk-4.3 still generates 1.4 bytecode by default. You can
verify this with a Hello World program.

------- Comment #10 From Vlastimil Babka (Caster) 2007-04-26 08:49:38 0000 -------
On IRC, Hanno said that you are not adding --with-java-target-version=1.4 to
configure flags while his ebuild in gcj-overlay does, and that's the
difference.

Should be best --with-java-target-version="$(java-pkg_get-target)"
Supposedly they use it for both -source and -target which is fine.

------- Comment #11 From Marat Radchenko 2007-04-27 11:02:56 0000 -------
this bug applies to app-office/openoffice-2.2.0 also.

------- Comment #12 From Vlastimil Babka (Caster) 2007-06-21 06:04:50 0000 -------
This works:

--- openoffice-2.2.1.ebuild     16 Jun 2007 12:00:10 -0000      1.5
+++ openoffice-2.2.1.ebuild     21 Jun 2007 00:22:41 -0000
@@ -214,6 +214,7 @@
        #Use flag checks
        if use java ; then
                echo "--with-ant-home=${ANT_HOME}" >> ${CONFFILE}
+               echo "--with-java-target-version=$(java-pkg_get-target)" >>
${CONFFILE}
                echo "--with-jdk-home=$(java-config --jdk-home 2>/dev/null)" >>
${CONFFILE}
                echo "--with-system-beanshell" >> ${CONFFILE}
                echo "--with-system-xalan" >> ${CONFFILE}

------- Comment #13 From Andreas Proschofsky 2007-06-21 07:04:28 0000 -------
I've added this to the ebuild now, sorry for taking so long...

First Last Prev Next    No search results available      Search page      Enter new bug