Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254879 - media-libs/pdflib-7.0.2_p8 generates too high bytecode
Summary: media-libs/pdflib-7.0.2_p8 generates too high bytecode
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Matti Bickel (RETIRED)
Depends on:
Reported: 2009-01-13 19:34 UTC by Petteri Räty (RETIRED)
Modified: 2010-04-03 08:25 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

Patch for makefile to respect JAVAC and JAVACFLAGS (pdflib-7.0.2_p8-javafixes.patch,1.02 KB, patch)
2009-02-14 16:01 UTC, Serkan Kaba (RETIRED)
Details | Diff
Patch against latest ebuild fixing Java related issues (pdflib-ebuild.patch,1.31 KB, patch)
2009-02-14 16:04 UTC, Serkan Kaba (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2009-01-13 19:34:42 UTC
./config/install-sh -c pdflib-config /var/tmp/portage/media-libs/pdflib-7.0.2_p8/image/usr/bin
install: omitting directory `doc/pdflib'
 * Incorrect bytecode version found
 * in file: bind/pdflib/java/pdflib.jar
 * See /var/tmp/portage/media-libs/pdflib-7.0.2_p8/temp/class-version-verify.log for more details.

pena betelgeuse # cat /var/tmp/portage/media-libs/pdflib-7.0.2_p8/temp/class-version-verify.log
Bad: 1.6 bind/pdflib/java/pdflib.jar com/pdflib/pdflib.class
Bad: 1.6 bind/pdflib/java/pdflib.jar com/pdflib/PDFlibException.class
CVV: 4
Checked: 2 Good: 0 Bad: 2

Portage 2.2_rc20 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.28-gentoo i686)
System uname: Linux-2.6.28-gentoo-i686-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-glibc2.0
Timestamp of tree: Unknown
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r15, 2.5.2-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1-r1
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
FEATURES="ccache collision-protect distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unmerge-orphans userfetch userpriv usersandbox verify-rdepend"
LDFLAGS="-Wl,--as-needed -Wl,-O1"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/mnt/checkouts/overlays/flameeyes-overlay /mnt/checkouts/overlays/openrc /mnt/checkouts/overlays/sunrise /mnt/checkouts/overlays/wschlich-testing /mnt/checkouts/overlays/jokey /mnt/checkouts/overlays/finnish /mnt/checkouts/overlays/betelgeuse /mnt/checkouts/overlays/java"
USE="a52 aac acl acpi alsa audiofile bash-completion berkdb bluetooth branding bzip2 cairo caps cdb cddb cdparanoia cdr cli cracklib crypt cups dbus dri dts dvd dvdr dvdread emboss evo fam ffmpeg firefox gif glib hal iconv ipv6 isdnlog java jpeg kde kdeenablefinal kdehiddenvisibility libnotify logitech-mouse mad mikmod mjpeg mmx mp3 mp4 mpeg mudflap ncurses network nptl nptlonly nsplugin nvidia offensive ogg opengl openmp pam pcre pdf png ppds pppd pulseaudio qt3 qt3support quicktime readline reflection rtc samba session spell spl sse sse2 ssl ssse3 startup-notification subversion svg symlink sysfs theora threads tiff truetype udev unicode usb userlocales vim-syntax vorbis win32codecs x86 xcb xcomposite xinerama xml xorg xulrunner xv xvid xvmc 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fi" USERLAND="GNU" VIDEO_CARDS="none nvidia"
Comment 1 Manfred Knick 2009-02-12 15:42:33 UTC
Please, note that this bug blocks the final emerge of KDE 4.2 :

# emerge -pq kde-meta
[ebuild  N    ] media-libs/pdflib-7.0.2_p8
[ebuild  N    ] sci-visualization/gnuplot-4.2.3-r2
[ebuild  N    ] sci-libs/libqalculate-0.9.6-r1
[ebuild  N    ] kde-base/step-4.2.0
[ebuild  N    ] kde-base/kdeedu-meta-4.2.0
[ebuild  N    ] kde-base/kde-meta-4.2.0

and thus also blocks cleaning the system from older versions 
via "emerge -a --depclean".

Thus, I would consider this bug as of "critical" severity.

Kind regards
Comment 2 Manfred Knick 2009-02-14 08:23:25 UTC
Hint concerning bug 214920 "media-libs/pdflib-7.0.3 version bump"

Unfortunately, testing this newer version in my local overlay,
it also failed with "too high bytecode" error.
Comment 3 Manfred Knick 2009-02-14 09:52:10 UTC
> ... Called java-pkg_verify-classes 'bind/pdflib/java/pdflib.jar'

$ cd /usr/portage/eclass/
$ grep "javatoolkit" *java*.eclass
java-ant-2.eclass:      >=dev-java/javatoolkit-0.3.0-r2"
java-utils-2.eclass:            version_verify="/usr/$(get_libdir)/javatoolkit/bin/"

# /usr/lib64/javatoolkit/bin/ -t 1.4 bind/pdflib/java/pdflib.jar
Bad: 1.6 bind/pdflib/java/pdflib.jar com/pdflib/pdflib.class
Bad: 1.6 bind/pdflib/java/pdflib.jar com/pdflib/PDFlibException.class
CVV: 4
Checked: 2 Good: 0 Bad: 2

# /usr/lib64/javatoolkit/bin/ -t 1.6 bind/pdflib/java/pdflib.jar
CVV: 6
Checked: 2 Good: 2 Bad: 0

# grep "sun-jdk-"  /Storage-B/Portage_tmp/portage/media-libs/pdflib-7.0.3/temp/build.log

 * Using: sun-jdk-1.6

./configure ... --with-java=/opt/sun-jdk- ...

checking for Java header files... -I/opt/sun-jdk- -I/opt/sun-jdk-

../../../libtool ... -I/opt/sun-jdk- -I/opt/sun-jdk- ... pdflib_java.c

GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-"

$ equery list dev-java/jdk
[I--] [ ~] dev-java/blackdown-jdk- (1.4.2)
[I--] [  ] dev-java/sun-jdk- (1.5)
[I--] [ ~] dev-java/sun-jdk- (1.6)
Comment 4 Manfred Knick 2009-02-14 09:57:08 UTC
# cd /Storage-B/Portage_tmp/portage/media-libs/pdflib-7.0.3/work/PDFlib-Lite-7.0.3/

# grep jdk config.log

  $ ./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-java=/opt/sun-jdk- --with-py=/usr --with-pyincl=/usr/include/python2.5 --with-tcl=no --with-ruby=no --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu

PATH: /opt/blackdown-jdk-
PATH: /opt/blackdown-jdk-

configure:9190: x86_64-pc-linux-gnu-gcc -E -I/opt/sun-jdk-  conftest.c

/opt/sun-jdk- error: jni_md.h: No such file or directory

configure:9235: result: -I/opt/sun-jdk- -I/opt/sun-jdk-

JAVAINCLUDE='-I/opt/sun-jdk- -I/opt/sun-jdk-'
Comment 5 Serkan Kaba (RETIRED) gentoo-dev 2009-02-14 16:01:35 UTC
Created attachment 182008 [details, diff]
Patch for makefile to respect JAVAC and JAVACFLAGS
Comment 6 Serkan Kaba (RETIRED) gentoo-dev 2009-02-14 16:04:22 UTC
Created attachment 182009 [details, diff]
Patch against latest ebuild fixing Java related issues

Please revbump since the reported problem blocks installation only if JAVA_PKG_STRICT is set, which is not set for most of the users.
Comment 7 Manfred Knick 2009-02-14 17:36:12 UTC
(In reply to comment #6)


Serkan, your suspicion was justified:

# grep JAVA_PKG_STRICT make.conf

Sorry I missed that!

BUT: with

# cd /usr/local/portage/local-overlay/media-libs/pdflib &&  ll -R

drwxr-xr-x 2 root root 4,0K 14. Feb 17:53 files
-rw-r--r-- 1 root root 1,4K 14. Feb 17:53 Manifest
-rw-r--r-- 1 root root 4,0K 14. Feb 17:48 pdflib-7.0.2_p8.ebuild

-rw-r--r-- 1 root    root     547 14. Feb 17:53 fix-java-compile.patch
-rw-r--r-- 1 root    root    2,0K 14. Feb 17:53 pdflib-7.0.2_p8-gcc-4.3.patch
-rw-r--r-- 1 manfred manfred 1,1K 14. Feb 17:44 pdflib-7.0.2_p8-javafixes.patch
-rw-r--r-- 1 root    root     403 14. Feb 17:53 pdflib-7.0.2_p8-ruby-configure.patch
-rw-r--r-- 1 manfred manfred 1,4K 14. Feb 17:44 pdflib-ebuild.patch

, having your pdflib-ebuild.patch applied (to pdflib-7.0.2_p8.ebuild)
and the required "ebuild pdflib-7.0.2_p8.ebuild manifest",
I can confirm that 
   emerge of media-libs/pdflib-7.0.2_p8
  (and henceforth kde-base/kde-meta)
even with JAVA_PKG_STRICT being set. !+!

Thanks a lot.

As far as I am concerned, this bug could be closed as "WORKSFORME";
but perhaps we should better let it stay open
until a corresponding "pdflib-7.0.2_p8-r1" hits the tree?

Kind regards
Comment 8 Manfred Knick 2009-02-15 11:32:43 UTC
Because the patches can't be applied autmatically one after another,
I have incorporated both patch lines into a proposal for

   --> pdflib-7.0.3.ebuild :
Comment 9 Matti Bickel (RETIRED) gentoo-dev 2010-04-01 00:12:33 UTC
This has nothing to do with the php herd. I'll take care of it in the upcoming pdflib-7.0.4 bump.
Comment 10 Matti Bickel (RETIRED) gentoo-dev 2010-04-02 20:42:30 UTC
Can somebody with more Java knowledge verify that this is indeed fixed with pdflib-7.0.4_p4-r1?
Comment 11 Petteri Räty (RETIRED) gentoo-dev 2010-04-03 08:25:05 UTC
pena betelgeuse # -t 1.4 /usr/share/pdflib-5/lib/pdflib.jar 
CVV: 4
Checked: 2 Good: 2 Bad: 0