I'm using icedtea6 with the javascript USE flag enabled, and I get errors building the rhino module of app-office/openoffice-3.0.0. I tried rebuilding dev-java/rhino (and switching to MAKEOPTS=-j1, which as promised made the errors more interpretable), but that didn't keep the build from failing. My emerge --info is below, and I've attached my build.log separately. Portage 2.2_rc12 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.8_p20080602-r0, 2.6.25-protect-r7 x86_64) ================================================================= System uname: Linux-2.6.25-protect-r7-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-glibc2.2.5 Timestamp of tree: Mon, 20 Oct 2008 18:15:02 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r7 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.4.6-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo http://www.gtlib.gatech.edu/pub/gentoo ftp://ftp.gtlib.gatech.edu/pub/gentoo http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.osuosl.org/ " LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en_US en ja" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/roslin /usr/portage/local/layman/desktop-effects /usr/portage/local/layman/java-overlay /usr/local/portage" SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage" USE="64bit 7zip X a52 aac aalib acl acpi aim alsa amarok amazon amd64 animgif anthy applet audacious bash-completion berkdb bittorrent bluetooth branding bzip2 cairo cdaudio cdda cddb cdparanoia cdr cjk cli console cracklib crypt css cups dbus dict directfb divx djvu dri dvd dvdnav dvdr dvdread dvi eds emboss encode esd exif fam fat fbcon fbcondecor fbsplash ffmpeg flac fortran ftp gdbm gif gimp gimpprint glitz glsa gmail gnome gpm gs gstreamer gtk hal hdaps hddtemp hfs ibmacpi iconv icq icu idea ieee1394 imagemagick ipv6 ipw4965 isdnlog jabber java javascript jingle john jpeg kerberos lame laptop latex ldap libcaca libnotify lm_sensors lua mad matroska md5sum midi mikmod mmx mng mono mp3 mpeg mplayer msn mtp mudflap multilib musicbrainz mysql ncurses nethack nls nptl nptlonly nsplugin ntfs offensive ogg opengl openmp openssl opensslcrypt openvpn pam pcmcia pcre pdf perl pidgin png pop ppds pppd prediction python qt3support quicktime rar raw readline realmedia reflection reiserfs sdl server session spell spl sse sse2 ssl svg sysfs tcpd theora threads thunderbird tiff timidity tracker truetype uim unicode usb vim-syntax vim-with-x visualization vorbis wav wifi wma wmp wordperfect wxwindows x264 xcb xcomposite xml xorg xscreensaver xulrunner xv xvid yahoo 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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard synaptics mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en ja" USERLAND="GNU" VIDEO_CARDS="vesa vga i810 intel" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Hiya Randall, I don't see the build.log yet, any chance you could re-attach it please?
Created attachment 169302 [details] Log of my attempted build of openoffice-3.0 Oh, sorry; it must have choked on the file because it was too large. Let's see if gzipping it helps.
There is a patch in ooo-build for this I guess since I cannot open the build.log. buildfix-openjdk-6-no-rhino.diff I wonder if all JDKs have ${java.home}/jre/lib/rt.jar as bootclasspath..? http://svn.gnome.org/viewvc/ooo-build/branches/ooo-build-3-0/patches/dev300/buildfix-openjdk-6-no-rhino.diff?view=markup
This patch looks relevant to my bug, but it doesn't just apply cleanly by adding epatch "${FILESDIR}/buildfix-openjdk-6-no-rhino.diff" to the src_unpack() section of the ebuild; it can't find the file to patch. Also, should I try to upload my build log again? Even pasting just the rhino-related part of the log makes this comment too long.
Created attachment 169326 [details] Build log again, this time bzip2'ed rather than gzipped. Incidentally, I had color output enabled when I did this emerge, and the build log still has the color codes in it. When viewing with less, these are all properly converted into colors (for me at least); if you're having weird issues with ESC[33;01m*ESC[0m and such appearing, that's why.
Created attachment 169328 [details] Same as before, but with a different content type specified Oh, and it's possible that my having incorrectly specified the content type before resulted in you seeing the raw gzip file, rather than being given the opportunity to download it and uncompress it on your system. Let's see if application/octet-stream works better.
The bz2'ed log is fine, thanks. The patch I mentioned must be added to GentooOnly section in /.../ooo-build/patches/dev300/apply file; after you run 'ebuild /path/to/ebuild unpack'. Not as epatch argument in src_unpack. Then continue with 'ebuild /path/to/ebuild install qmerge'
OK, adding it to the apply file after the unpack and before the compile worked for me. Still, I'm a little unclear on what the patch does. The name suggests that it disables rhino; the lack of a "Building module rhino" section in my final build.log seems to agree with this. (I think; I've since wiped my /var/tmp/portage/, so I can't check at the moment.) Does my build of OOo do less as a result of this patch? Also, is the patch going to be incorporated into the upstream source? A modified, silent-bump ebuild? Can it be safely applied when using any JDK, and if not is there a way to conditionally apply it from an ebuild?
That patch does not disable rhino build. You should have a js.jar somewhere in /usr/lib/openoffice/. The problem is a namespace collition with the built-in rhino from openjdk(icedtea) and rhino standalone. Sun JDK does not have this problem since they renamed the package there, afaik. As for a problem see comment 3. (bootclasspath) Does IBM JDK have jre/lib/rt.jar? I do not know.
will this patch make it to the main tree? because 1. the linked page sucks so everyone would have to copy the patch line by line or work the line numbers out of it somehow and 2. there will be more people working with openjdk/icedtea as time goes by and they all will hit this bug
Can someone clear up how to workaround this, as I haven't managed so far, and it's been more than a month since I've last done a successful world update, because of this bug. I added this to my ebuild in my overlay: cp -f "${FILESDIR}/buildfix-openjdk-6-no-rhino.diff" "${S}/patches/dev300" sed 1428ibuildfix-openjdk-6-no-rhino.diff "${S}/patches/dev300/apply" just after the other cp's, and I put the patch in the FILESDIR, but it doesn't change anything. What exactly needs to be done?
Has anyone gotten this to work? I'm still unclear on how and where to apply the patch. It would be nice if this was pushed into the main tree.
Even with applied patch, building of OpenOfficeOrg still fails with same error in module rhino
Is this going to be resolved any time soon, as 2.4.* series were already removed from the tree and only ebuilds for openoffice.org (marked as stable=/) don't merge?
I just installed openoffice-3.0.1 from the main tree and it installed fine with the java flag and icedtea6.
Oh, thanks for pointing it out - indeed it did merge this night, I think bug can be closed now.
Late closure...