When using fop to compile my .fo files into pdf's, it dies with an error. Running fop without any command line options also yeilds the same result. Reproducible: Always Steps to Reproduce: 1. execute fop 2. 3. Actual Results: Traceback (most recent call last): File "/usr/bin/gjl-python3.2", line 273, in <module> env = get_env(pkg) File "/usr/bin/gjl-python3.2", line 215, in get_env env = manager.build_dep_env_vars([package.name()], set()) File "/usr/lib64/python3.2/site-packages/java_config_2/EnvironmentManager.py", line 401, in build_dep_env_vars self.add_pkg_env_vars(pkg, env) File "/usr/lib64/python3.2/site-packages/java_config_2/EnvironmentManager.py", line 373, in add_pkg_env_vars val = pkg.query(var) File "/usr/lib64/python3.2/site-packages/java_config_2/Virtual.py", line 180, in query return self.get_provider().query(var) File "/usr/lib64/python3.2/site-packages/java_config_2/VM.py", line 53, in query raise EnvironmentUndefinedError java_config_2.Errors.EnvironmentUndefinedError Couldn't get needed information Expected Results: A functioning peice of software. Portage 2.1.11.63 (default/linux/amd64/13.0/desktop, gcc-4.6.3, glibc-2.17, 3.7.10-gentoo-r1 x86_64) ================================================================= System uname: Linux-3.7.10-gentoo-r1-x86_64-AMD_Phenom-tm-_II_X4_810_Processor-with-gentoo-2.2 KiB Mem: 4055496 total, 578512 free KiB Swap: 311521620 total, 311373528 free Timestamp of tree: Wed, 15 May 2013 13:00:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 app-shells/bash: 4.2_p45 dev-java/java-config: 2.1.12-r1 dev-lang/python: 2.7.4, 3.2.4 dev-util/cmake: 2.8.10.2-r2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.10.3, 1.11.6, 1.12.6 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.6.3, 4.7.2-r1 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.9 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo ACCEPT_KEYWORDS="amd64 ~x86" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -msse3 -msse4a -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=k8 -msse3 -msse4a -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 64bit X a52 aac aacs aalib acl acpi addns alsa amd64 ap apm applet appletalk artworkextra attica autopid avahi bash-completion berkdb bluetooth bogofilter bookmarks branding bzip2 cairo cdda cdr cli clutter connection-sharing conntrack consolekit contrast corefonts cracklib crypt cue cups curl cxx dbus device-mapper dhcp dillo down-root download downloads-monitor dri dts dv dvb dvd dvdr eds emboss emoticon emotion encode equalizer exif extensions extras faac faad fam fat ffmpeg fingerprint firefox firefox-bookmarks fits flac flash flickr fontconfig fontforge fortran fuse gcrypt gdbm gdu geonames gif gimp gles1 gles2 gnome gnome-keyring gnome-online-accounts googledrive gphoto2 gpm gps graphicsmagick graphviz grilo gsmloc gstreamer gtk gtk3 hfs hostip http hyphenation iconv icq icu id3tag imagemagick imlib infinality introspection ios ipod ipv6 irc jabber jack jai jpeg jpeg2k kde lame lastfm lcms ldap lensfun libass libcaca libnotify libsamplerate lua lzma mad map matroska mms mmx mng modules mp3 mp4 mpeg msn mudflap multicore multilib mysql nautilus ncurses network nfs nfsv3 nfsv4 nls nmap nmap-update nntp nominatim nping nptl nsplugin nss ntfs ntp nvidia offensive ogg openexr opengl openmp openrc openvpn p2p pam pango passwordsave pcre pdf perl pidgin plasma playlist plazes plugins png policykit postscript ppds ppp prediction projectm pulseaudio python qt3support qt4 quicktime raw readline resolvconf rss samba sasl sbsms script scrobbler sdl sdlgfx semantic-desktop sendto sensord session shout sip skins smbsharemodes smp socialweb spamassassin spell sqlite sse sse2 sse3 sse4 ssh ssl ssse3 startup-notification svg swat systemd taglib tcl tcpd telepathy theora threads thunar thunderbird tiff tk tokyocabinet tools tor-hardening tracker transparent-proxy truetype twolame udev udisks unicode upcall upnp upnp-av upower usb utilities utils v4l vala vamp vcd vorbis web webkit wifi wmf wps wxwidgets x264 xattr xcb xcomposite xface xinerama xml xorg xosd xpm xscreensaver xv xvid yahoo yahoo-geo zeitgeist zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_CA" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia nv v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Please post your `emerge -vpq dev-java/fop' output in a comment.
(In reply to comment #1) > Please post your `emerge -vpq dev-java/fop' output in a comment. Sure: [ebuild R ] dev-java/fop-0.95 USE="hyphenation jai (-doc) -examples -jimi -source"
Let's first see if your Java environment is alright. Please respond with the output of `java-check-environment` in a comment.
OK :) * === Java Environment Checker === * The purpose of this script is to check the sanity of your Java Environment. * We have significantly changed and improved the way Java is handled in many * respects. * Please refer to our upgrade guide for details: * http://www.gentoo.org/proj/en/java/java-upgrade.xml * Checking fastjar ... [ ok ] * Checking vm_environment_files ... [ ok ] * Checking user_settings ... [ ok ] * Checking generation_1_system_vm ... [ ok ] * Checking java_config_1 ... [ ok ] * Checking global_classpath ... grep: /etc/env.d/binutils: Is a directory grep: /etc/env.d/blas: Is a directory grep: /etc/env.d/cblas: Is a directory grep: /etc/env.d/gcc: Is a directory grep: /etc/env.d/python: Is a directory [ ok ] * Checking virtual_provides ... [ ok ] * Checking overlays_eclasses ... [ ok ] * Checking package_env ... [ ok ] * Checking proc_mounted ... [ ok ] * Java environment is sane. Congratulations!
Coming back to this and poking around at it a bit. I downloaded a binary build of fop (both 0.95 and 1.0) from Apache's site and it works fine. I noticed these lines within /usr/share/fop/package.env though and I'm wondering if they're correct: VM=">=virtual/jre-1.4" MERGE_VM="icedtea-bin-7" I'm using sun-jre-bin-1.6 on this system and obviously gjl is having environment issues.
One more comment. Switiching to icedtea-bin-6 as my system vm allows fop to function as expected. Thus we obviously have an issue with the sun jdk when trying to execute fop.
sun-* is no longer unmasked in Portage tree; if anyone can repro with a different VM, feel free to (ask to) reopen.
Marking this bug as FIXED.