Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 242986 - app-office/openoffice-3.0.0 build fails on rhino module
Summary: app-office/openoffice-3.0.0 build fails on rhino module
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-21 00:16 UTC by Randall Wald
Modified: 2009-05-17 08:21 UTC (History)
3 users (show)

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


Attachments
Log of my attempted build of openoffice-3.0 (build.log.gz,246.16 KB, application/x-gzip)
2008-10-21 12:13 UTC, Randall Wald
Details
Build log again, this time bzip2'ed rather than gzipped. (build.log.bz2,177.86 KB, text/plain)
2008-10-21 17:10 UTC, Randall Wald
Details
Same as before, but with a different content type specified (build.log.bz2,177.86 KB, application/octet-stream)
2008-10-21 17:12 UTC, Randall Wald
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Randall Wald 2008-10-21 00:16:06 UTC
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
Comment 1 Mike Auty (RETIRED) gentoo-dev 2008-10-21 09:13:28 UTC
Hiya Randall, I don't see the build.log yet, any chance you could re-attach it please?
Comment 2 Randall Wald 2008-10-21 12:13:49 UTC
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.
Comment 3 Hanno Zysik (geki) 2008-10-21 14:38:52 UTC
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
Comment 4 Randall Wald 2008-10-21 16:58:47 UTC
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.
Comment 5 Randall Wald 2008-10-21 17:10:24 UTC
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.
Comment 6 Randall Wald 2008-10-21 17:12:41 UTC
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.
Comment 7 Hanno Zysik (geki) 2008-10-21 18:05:43 UTC
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'
Comment 8 Randall Wald 2008-10-22 19:01:28 UTC
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?
Comment 9 Hanno Zysik (geki) 2008-10-22 19:47:15 UTC
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.
Comment 10 Michael Gaber 2008-11-11 21:10:31 UTC
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
Comment 11 Milko Krachounov 2008-12-06 14:55:23 UTC
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?
Comment 12 Eric Smith 2009-01-02 04:59:58 UTC
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.
Comment 13 Nikolay Engyozov 2009-01-11 10:55:38 UTC
Even with applied patch, building of OpenOfficeOrg still fails with same error in module rhino
Comment 14 Marek Sapota 2009-02-25 19:03:10 UTC
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?
Comment 15 Eric Smith 2009-02-25 23:18:23 UTC
I just installed openoffice-3.0.1 from the main tree and it installed fine with the java flag and icedtea6.
Comment 16 Marek Sapota 2009-02-26 08:24:01 UTC
Oh, thanks for pointing it out - indeed it did merge this night, I think bug can be closed now.
Comment 17 Andreas Proschofsky (RETIRED) gentoo-dev 2009-05-17 08:21:23 UTC
Late closure...