Emerging openoffice-3.1.1 fails because the KDE4 headers aren't found. I have KDE 4.2.4 and 4.3.1 installed. Yes, that means I have kdeprefix enabled. I tried exporting KDEDIR first, but I'm guessing that somewhere, KDEDIR gets unset (and thus no longer exported). I even tried creating my own ebuild that exported KDEDIR right before make ... that didn't seem to help, either. Reproducible: Always Steps to Reproduce: 1. Install KDE4 with kdeprefix so that KDE goes into /usr/kde/4.X instead of /usr 2. Try to emerge openoffice-3.1.1 Actual Results: checking for KDE4 headers... no configure: error: KDE4 headers not found. Please specify the root of your KDE4 installation by exporting KDEDIR before running "configure". Portage 2.2_rc40 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 x86_64) ================================================================= System uname: Linux-2.6.29-gentoo-r5-x86_64-AMD_Phenom-tm-_9850_Quad-Core_Processor-with-gentoo-2.0.1 Timestamp of tree: Thu, 03 Sep 2009 07:45:01 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.5.4-r3, 2.6.2-r1 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -pipe -march=native" 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/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/kde/4.3/env /usr/kde/4.3/share/config /usr/kde/4.3/shutdown /usr/share/config /var/bind /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O3 -pipe -march=native" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo ftp://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://gentoo.mirrors.tds.net/gentoo" LANG="en_US.utf8" LC_ALL="en_US.utf8" LDFLAGS="-Wl,-O1" LINGUAS="en" MAKEOPTS="-j9 -l25" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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="/home/dmcbride/cvs/portdir-mine /usr/portage/local/layman/qting-edge /usr/portage/local/layman/jokey /usr/portage/local/layman/kde-testing" SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 apache2 arts audiofile avi bash-completion berkdb branding bzip2 cairo cddb cdparanoia cdr cli cracklib crypt css cups dbus dri dvd dvdr dvdread encode exif expat ffmpeg fftw firefox fontconfig fortran gd gdbm gif gimp gmp gnutls gpm gs hal htmlhandbook iconv imagemagick ipv6 isdnlog java jbig jpeg jpeg2k kde kdeprefix lcms lzo mad mjpeg mmx mng mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre perl png pppd python qt4 readline reflection sdl session smp spl sse sse2 ssl subversion svg sysfs tcpd threads tiff truetype unicode vcd vorbis wmf x264 xcb xcomposite xinerama xml xorg xulrunner xvid zlib" 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="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" FOO2ZJS_DEVICES="hp2600n" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="vesa fbdev radeon radeonhd" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 203085 [details] build log the build log at failure
same issue here.
*** Bug 283590 has been marked as a duplicate of this bug. ***
@openoffice: guys probably simple export KDEDIR=${KDEDIR} after src_prepare should work. We don't export this thing because cmake based stuff didn't need it. We might consider adding it to the eclass if it really works ;]
(In reply to comment #4) > @openoffice: > guys probably simple export KDEDIR=${KDEDIR} after src_prepare should work. > We don't export this thing because cmake based stuff didn't need it. > We might consider adding it to the eclass if it really works ;] > Well you are the KDE pro around here, so I trust your advice ;) added this to the ebuild right now, so please check if it helps
Well i might be kde pro but i am only familiar with detection for cmake based build system so everything we do here is "new" :] But i hope it will fix the issue :]
Given bug 283370 and KDE 4 not being stable, an OOo 3.3.1 ebuild without KDE 4 integration should be stabilized asap.
Again good time to mention my wish for package.use.stable.mask :]
(In reply to comment #7) > Given bug 283370 and KDE 4 not being stable, an OOo 3.3.1 ebuild without KDE 4 > integration should be stabilized asap. > 1) This should really be discussed in the other bug 2) Also see: Bug #283575 It's not that easy...
(In reply to comment #7) > Given bug 283370 and KDE 4 not being stable, an OOo 3.3.1 ebuild without KDE 4 > integration should be stabilized asap. Why? What is preventing someone with KDE-3.5 to emerge OOo-3.1.1 without the kde use flag?
Also, this bug only affects people using the *unsupported* +kdeprefix use flag.
(In reply to comment #11) > Also, this bug only affects people using the *unsupported* +kdeprefix use flag. Realy? I did not use kdeprefix
FYI: I seem to get the same problem with the new 3.1.1 ebuild exporting KDEDIR. As I mentioned in my original report, I created my own ebuild and already tried something to that effect, and it hadn't worked.
Exporting KDEDIR doesn't fix the problem. Unfortunately the configure script only uses KDEDIR to locate KDE 3.5, not 4.
(In reply to comment #8) > Again good time to mention my wish for package.use.stable.mask :] > I'm not sure about other use cases, but adding yet more complexity to profiles and tree management to save the low cost of just another ebuild revision to be added, violates the KISS principle, imho. (In reply to comment #10) > Why? What is preventing someone with KDE-3.5 to emerge OOo-3.1.1 without the > kde use flag? A vulnerability requires quick stabilization of an unaffected version. The fundamental requirement of the stable tree is, that all dependencies of the ebuild to be stabilized are or get marked stable without braking another dependency chain. I guess KDE 4.3.1 won't go stable within a few days.
(In reply to comment #16) > (In reply to comment #10) > > Why? What is preventing someone with KDE-3.5 to emerge OOo-3.1.1 without the > > kde use flag? > > A vulnerability requires quick stabilization of an unaffected version. The > fundamental requirement of the stable tree is, that all dependencies of the > ebuild to be stabilized are or get marked stable without braking another > dependency chain. I guess KDE 4.3.1 won't go stable within a few days. You're right. I only understood your comment after replying and after talking to Tomáš. @Andreas: Would you prefer to drop KDE-4 integration for the moment or to package.use.mask it until KDE-4 gets marked stable?
(In reply to comment #17) > (In reply to comment #16) > > (In reply to comment #10) > > > Why? What is preventing someone with KDE-3.5 to emerge OOo-3.1.1 without the > > > kde use flag? > > > > A vulnerability requires quick stabilization of an unaffected version. The > > fundamental requirement of the stable tree is, that all dependencies of the > > ebuild to be stabilized are or get marked stable without braking another > > dependency chain. I guess KDE 4.3.1 won't go stable within a few days. > > You're right. I only understood your comment after replying and after talking > to Tomáš. > > @Andreas: > > Would you prefer to drop KDE-4 integration for the moment or to > package.use.mask it until KDE-4 gets marked stable? > I guess it would be easiest to drop it for now, move 3.1.1 back to KDE 3-support only and target this for stabilization. At the same time do an -r1 with KDE4-support (only). Sounds good?
Adding upstream bug to URL. I've put a patch file on the upstream bug that is getting me past this. For the ebuild, I am copying it to the hotfix directory (which you can do with "use kde && cp ${FILESDIR}/... .../hotfix"), and still exporting KDEDIR. This will work until a proper upstream fix is available. (I'm really hoping KDE4 support doesn't get pushed back, can you tell?)
I've now got this working. Using the patch provided upstream (see https://bugzilla.novell.com/show_bug.cgi?id=539035 ), and changing the export of KDEDIR to KDE4DIR in the ebuild (why it's different, I don't really know, but, hey it works), copying the patch over if the kde use flag is enabled, and deleting my ~/.config/Trolltech.conf file, everything is working. Adding that patch in should allow OOo to stabilise with kde support.
Created attachment 204240 [details] My updated ebuild This is the ebuild I am using where everything works. You'll need to save the patch from upstream in the files directory as kdeprefix.diff for this to work as-is.
I've just added the fix to the 3.1.1 ebuild, no need for rev bump, it's a build fix anyway. Please test, so that we can close this bug finally
The rev-less bump had the effect here of removing the kde use flag from openoffice: [ebuild R ] app-office/openoffice-3.1.1 [snip] (-kde*) [snip] Is it now always on or always off? If I rebuild this, will KDE 4 support still be working or not?
(In reply to comment #23) > The rev-less bump had the effect here of removing the kde use flag from > openoffice: [ebuild R ] app-office/openoffice-3.1.1 [snip] (-kde*) [snip] > > Is it now always on or always off? If I rebuild this, will KDE 4 support still > be working or not? > That is incorrect: the change did *not* remove the kde use flag. What happened was that at some point before that change was made the following lines were added to profiles/base/package.use.mask: # Nirbheek Chauhan <nirbheek@gentoo.org> (22 Sep 2009) # Broken with KDE4, mask for now >=app-office/openoffice-3.1.1 kde This means that it has been forcibly disabled in the profile, so you cannot enable USE=kde for >=app-office/openoffice-3.1.1. If you want to override this, then add ">=app-office/openoffice-3.1.1 -kde" to your /etc/portage/profile/package.use.mask file (create it if it doesn't exist).
I hate reporting problems with openoffice, kdelibs, etc. Testing the fix takes too long ;-) Anyway, I've rebuilt this and I'm getting my old problem back: /usr/lib64/openoffice/program/soffice.bin: symbol lookup error: /usr/kde/4.3/lib64/kde4/plugins/styles/oxygen.so: undefined symbol: _ZNK6KStyle26standardIconImplementationEN6QStyle14StandardPixmapEPK12QStyleOptionPK7QWidget This may be because it somehow got built against 4.2 instead of 4.3 but is running against 4.3. A quick google, and I added the following section to my ~/.config/Trolltech.conf: [qt] 4.5\libraryPath=/usr/kde/4.3/lib64/kde4/plugins:/usr/kde/4.2/lib64/kde4/plugins Now it works. Deleting the Trolltech.conf file didn't seem to work. I wonder if the kde4*.eclass in portage vs the kde4*.eclass in the kde-testing overlay is the cause of this ... since my testing overlay uses the kde-testing overlay for its eclasses and so maybe got a different KDEDIR during compilation. Thanks!
KDE4 (-prefix) and OO.o work fine here after unmasking -kde* The only problem left is that using multiple KDE4s troubling the selection. To not block anything where there are no troubles we should unmask the kde USE flag and exclude the use of kde while having kdeprefix enabled. This will allow to further investigate reasons for comment #25 behaviour.
Andreas, it seems like your fix from comment #22 removed the /usr/lib/qt4 addition to patches/dev300/kde4-configure.diff. I am assuming you did that because it made patches/dev300/kde4-configure2.diff fail? The problem is that I am now getting build failures again (the same as in bug #280344). These had been fixed by hardcoding /usr/lib/qt4 into qt_libdirs. Maybe /usr/lib/qt4 needs to be added by patching patches/dev300/kde4-configure2.diff instead, now? I'll try this locally and report back in a few hours whether it worked ...
OK, here is the summary: The changes introduced according to comment #22 trigger bug #280344 once again for me (that bug had been fixed before). The culprit for this regression is a no longer added path entry '/usr/lib/qt4' in patches/dev300/kde4-configure.diff. Adding this path entry to patches/dev300/kde4-configure2.diff instead, by adding the following additional lines to /usr/portage/app-office/openoffice/files/gentoo-3.1.1.diff: --- patches/dev300/kde4-configure2.diff.old 2009-10-10 14:53:44.000000000 +1100 +++ patches/dev300/kde4-configure2.diff 2009-10-10 14:53:58.000000000 +1100 @@ -7,7 +7,7 @@ - qt_incdirs="$QTINC $QTDIR /usr/include/qt4 /usr/include $x_includes" - qt_libdirs="$QTLIB /usr/lib $x_libraries" + qt_incdirs="$QT4INC $QT4DIR $QTINC $QTDIR /usr/include/qt4 /usr/include $x_includes" -+ qt_libdirs="$QT4LIB $QTLIB /usr/lib $x_libraries" ++ qt_libdirs="$QT4LIB $QTLIB /usr/lib/qt4 /usr/lib $x_libraries" kde_incdirs="/usr/include $x_includes" kde_libdirs="/usr/lib $x_libraries" fixes the issue for me. After these changes the package compiles and installs fine and according to a quick test the applications seem to work fine, including the kde4 stuff. For the record, I do not use kdeprefix and I am running Qt 4.5.3 and KDE 4.3.1 on an x86 system.
Created attachment 208477 [details] Log for emerge of openoffice-3.1.1
HI, not sure if this is related, but it seems the kde USE flag was enabled again for openoffice. Portage asked me to re-emerge openoffice 3.1.1 today because of the kde USE flag and stopped because it didn't find the QT4 libraries. I attached the output. I have x11-libs/qt-core-4.5.2 installed and I switched from KDE 3.5.10 to stable KDE 4.3.1 recently. emerge --info: Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r8 i686) ================================================================= System uname: Linux-2.6.30-gentoo-r8-i686-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-1.12.11.1 Timestamp of tree: Wed, 28 Oct 2009 00:00:01 +0000 distcc 3.1 i686-pc-linux-gnu [disabled] ccache version 2.4 [enabled] app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.6.2-r1 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -fno-delete-null-pointer-checks -fwrapv" 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/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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -fno-delete-null-pointer-checks -fwrapv" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://distfiles.gentoo.org" LANG="de_DE.utf8" LC_ALL="POSIX" LDFLAGS="-Wl,-O1" LINGUAS="de en" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib accessibility acl acpi alsa apache2 apm arts artswrappersuid asf aspell audiofile bash-completion binary-drivers branding bzip2 cairo caps cdparanoia cdr chm clamav cli consolekit cracklib crypt css ctype cups dbm dbus dmi doc dri dts dvd dvdnav dvdr dvdread eds emacs embedded emboss encode esd evo exif expat extrafilters fam fbcon ffmpeg firefox flac fontconfig foomaticdb fortran ftp gcj gd gdbm gif gimp glitz glut gmp gnutls gphoto2 gpm graphviz gs gstreamer gtk hal hddtemp iconv icq id3 idn ieee1394 imagemagick imap imlib jadetex java javascript jpeg jpeg2k kde kdehiddenvisibility kipi kpathsea lame libnotify lm_sensors logitech-mouse logrotate logwatch lzo mad mbox mikmod mime mjpeg mmx mmxext mng modules moneyplex mono motif mp3 mp4 mpeg mpeg2 mplayer msn mudflap musicbrainz mysql mysqli ncurses nls npp nptl nptlonly nsplugin offensive ogg ole openexr opengl openmp oss pam pcre pda pdf perl plasma pmu png posix ppds pppd print python pyzord qt-static qt3 qt3support qt4 quicktime razor rdesktop readline reflection rtc samba sasl scanner sdl sensord session sharedmem slang smp snmp sockets sox spell spl sql sqlite3 sse sse2 ssl startup-notification svg sysfs syslog tcl tcpd thunar tidy tiff tk toolbar tools truetype unicode usb userlocales v4l v4l2 vcd vim-syntax vim-with-x visualization vorbis webkit win32codecs wxwindows x264 x86 xcomposite xft xine xinetd xml xorg xosd xpm xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev vga v4l" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Regards, Oliver
I have this problem too. I have qt 3.5 and 4.2 installed, no kdeprefix.
Ok confirm that it indeed fails with qt3 around. @Suka: the patch from comment #28 fixed it. Would you consider applying it?
(In reply to comment #32) > Ok confirm that it indeed fails with qt3 around. > > @Suka: the patch from comment #28 fixed it. Would you consider applying it? > Yep, surely, just commited the fix. Sorry for taking so long. Should be fixed again...
(In reply to comment #2) > same issue here. >
> Yep, surely, just commited the fix. Sorry for taking so long. Should be fixed > again... Confirmation: Openoffice compiles fine again. Thanks! Oliver