Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145189 - openoffice-2.0.3 fails to compile with sun-jdk-1.5.0.08
Summary: openoffice-2.0.3 fails to compile with sun-jdk-1.5.0.08
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-26 09:06 UTC by Heiko Baums
Modified: 2006-09-13 00:02 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Baums 2006-08-26 09:06:28 UTC
After uninstalling sun-jdk-1.4.12 openoffice-2.0.3 fails to compile with sun-jdk-1.5.0.08 because it can't find a JDK.

This is the error log:

make writeable...
echo dummy > ./unxlngi6.pro/misc/build/xt-20051206/makefile.mk.dummy
touch ./unxlngi6.pro/misc/build/xt-20051206/makefile.mk.dummy
echo dummy > ./unxlngi6.pro/misc/build/xt-20051206/makefile.mk
touch ./unxlngi6.pro/misc/build/xt-20051206/makefile.mk
cd ./unxlngi6.pro/misc/build && cat ../../../xt-20051206.patch | patch -b -p2 && touch so_patched_xt
patching file xt-20051206/build.xml
Hunk #1 succeeded at 1 with fuzz 2.
patching file xt-20051206/makefile.mk
patching file xt-20051206/src/xt/java/com/jclark/xsl/tr/AppendAction.java
patching file xt-20051206/src/xt/java/com/jclark/xsl/trax/TransformerFactoryImpl.java
patching file xt-20051206/src/xt/java/com/jclark/xsl/expr/PatternList.java
touch ./unxlngi6.pro/misc/build/so_patched_xt
touch ./unxlngi6.pro/misc/build/so_configured_xt
mkdir ./unxlngi6.pro/misc/build/xt-20051206/
mkdir: cannot create directory `./unxlngi6.pro/misc/build/xt-20051206/': File exists
cd ./unxlngi6.pro/misc/build/xt-20051206/ && dmake    && touch so_built_xt
-------------
/usr/bin/ant -Dprj=../../../.. -Dprjname=xt -Ddebug=off -Doptimize=on  -Dtarget=compile -Dsolar.update=on -Dout=../../../../unxlngi6.pro -Dinpath=unxlngi6.pro -Dproext=".pro"  -Dsolar.bin=/usr/var/portage/openoffice-2.0.3/work/ooo-build-2.0.3.0/build/OOO_2_0_3/solver/680/unxlngi6.pro/bin -Dsolar.jar=/usr/var/portage/openoffice-2.0.3/work/ooo-build-2.0.3.0/build/OOO_2_0_3/solver/680/unxlngi6.pro/bin -Dsolar.doc=/usr/var/portage/openoffice-2.0.3/work/ooo-build-2.0.3.0/build/OOO_2_0_3/solver/680/unxlngi6.pro/doc  -Dcommon.jar=/usr/var/portage/openoffice-2.0.3/work/ooo-build-2.0.3.0/build/OOO_2_0_3/solver/680/unxlngi6.pro/bin -Dcommon.doc=  -f build.xml  -emacs
Traceback (most recent call last):
  File "/usr/bin/java-config-1", line 14, in ?
    from java_config import jc_options
  File "/usr/lib/python2.4/site-packages/java_config/jc_options.py", line 18, in ?
    from jc_util import get_line_from_env_file
  File "/usr/lib/python2.4/site-packages/java_config/jc_util.py", line 111, in ?
    JAVA_HOME = get_java_home()
  File "/usr/lib/python2.4/site-packages/java_config/jc_util.py", line 70, in get_java_home
    for f in os.listdir('/etc/env.d/java/'):
OSError: [Errno 2] No such file or directory: '/etc/env.d/java/'
Error: No JDK found!
Try using java-config script to set your JDK
Remember that you need a JDK not a JRE
dmake:  Error code 1, while making 'ANTBUILD'
'---* tg_merge.mk *---'
dmake:  Error code 255, while making './unxlngi6.pro/misc/build/so_built_xt'
'---* tg_merge.mk *---'

ERROR: Error 65280 occurred while making /usr/var/portage/openoffice-2.0.3/work/ooo-build-2.0.3.0/build/OOO_2_0_3/xt
make: *** [stamp/build] Error 1

!!! ERROR: app-office/openoffice-2.0.3 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  openoffice-2.0.3.ebuild, line 252:   Called die

!!! Build failed
!!! If you need support, post the topmost build error, and the call stack if relevant.


emerge --info:

Gentoo Base System version 1.12.4
Portage 2.1.1_pre5-r3 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.17-gentoo-r6 i686)
=================================================================
System uname: 2.6.17-gentoo-r6 i686 AMD Athlon(tm) XP 1600+
Last Sync: Sat, 26 Aug 2006 02:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LINGUAS="de"
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'"
PORTAGE_TMPDIR="/usr/var"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac aalib accessibility acpi alsa apache2 apm arts asf audiofile avi berkdb bitmap-fonts bluetooth bzip2 cdda cddb cdparanoia cdr chipcard cli crypt cups curl dga directfb divx4linux dlloader doc dri dv dvb dvd dvdr dvdread eds effects elibc_glibc emacs emboss encode expat extrafilters fame fbcon ffmpeg firefox flac foomaticdb fortran ftp gcc-libffi gcj gd gdbm geldkarte gif gimp glitz gmp gpm graphviz gs gstreamer gtk gtk2 gtkhtml hbci iconv idn imagemagick imlib inkjar input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 irmc isdnlog jce jpeg kde kernel_linux lcms ldap leim libg++ libwww linguas_de lirc lirc_devices_devinput live mad mailwrapper mbox mbrola mikmod mjpeg mmx mmx2 mmxext mng modplug motif mozilla mp3 mp4 mpeg mplayer mysql mysqli nas ncurses network nls nptl nptlonly nsplugin nvidia objc objc-gc odbc offensive ofx ogg oggvorbis opengl oss pam pcre pdf pdflib perl php plugin png ppds pppd print python qt qt3 qt4 quicktime quotes readline real reflection rtc rtsp scanner sdl session slang slideshow smime speex spell spl sqlite sse sse-filters ssl svg svga tcl tcltk tcpd tetex theora threads tidy tiff tk tokenizer tools truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l v4l2 vdr video_cards_nvidia video_cards_v4l vidix visualization vlm vorbis win32codecs wmf xcomposite xine xml xml2 xmms xorg xpm xv xvid yv12 zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Andreas Proschofsky (RETIRED) gentoo-dev 2006-08-26 09:55:48 UTC
That's an unfortunate little side effect of being in between the migration to the new java-system. 2.0.3 is the latest version on both x86 and ~x86 though the first still uses the old system and the latter the new one. (which results in the old ebuild being restricted to an 1.4 jdk on ~x86). Not sure how to handle that. In the meantime you can unmask 2.0.4-rc1 which works just fine with jdk-1.5
Comment 2 Heiko Baums 2006-08-26 10:14:47 UTC
I don't know if it's possible but maybe you could make a second ebuild for openoffice with a higher version number.

E.g.:
openoffice-2.0.3 (uses the old java system - 1.4 - and is set to x86)
openoffice-2.0.3-r1 (uses the new java system - 1.5 - and is set to ~x86)
Comment 3 Andreas Proschofsky (RETIRED) gentoo-dev 2006-08-26 11:34:36 UTC
(In reply to comment #2)
> I don't know if it's possible but maybe you could make a second ebuild for
> openoffice with a higher version number.
> 
> E.g.:
> openoffice-2.0.3 (uses the old java system - 1.4 - and is set to x86)
> openoffice-2.0.3-r1 (uses the new java system - 1.5 - and is set to ~x86)
> 

For sure, but that would require everyone who already has OOo 2.0.3 built to rebuild it for no gain, which is something I really don't want to do with OOo. So I guess we'll have to live with that until the not-so-far-away 2.0.4
Comment 4 Heiko Baums 2006-08-26 12:53:10 UTC
Either this or people who don't want to recompile it can put openoffice-2.0.3-r1 into /etc/portage/package.mask.

But I guess I can live with a missing java based feature of OOo until OOo 2.0.4 is released.

So let's wait for OOo 2.0.4.
Comment 5 Andreas Proschofsky (RETIRED) gentoo-dev 2006-09-13 00:02:23 UTC
Closing this as it is already fixed, just not available to everyone, but still...