Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285084 - openoffice fails to build if no gtk+ is installed
Summary: openoffice fails to build if no gtk+ is installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-15 13:34 UTC by Michael Mair-Keimberger (mm1ke)
Modified: 2009-11-28 20:34 UTC (History)
0 users

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


Attachments
building with normal use-flags (build-2009-09-10-normal.log,5.67 KB, text/plain)
2009-09-15 13:38 UTC, Michael Mair-Keimberger (mm1ke)
Details
building without any useflag (build-without-any-flag.log,5.67 KB, text/plain)
2009-09-15 13:39 UTC, Michael Mair-Keimberger (mm1ke)
Details
building with only the kde flag (build-only-kde-flag.log,5.67 KB, text/plain)
2009-09-15 13:40 UTC, Michael Mair-Keimberger (mm1ke)
Details
3 complete build logs (build-log.tar.gz,737.03 KB, application/octet-stream)
2009-11-27 17:59 UTC, Michael Mair-Keimberger (mm1ke)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mair-Keimberger (mm1ke) 2009-09-15 13:34:13 UTC
I really wanted to install openoffice without gtk+, but actually, it's not possible.
If tested a few different use-flags configuration but it always failed. After i install gtk+ and emerged openoffice with only the kde flag it works.

After every try i've copied the build logs, which i will upload here. I would really like to see openoffice working  without gtk+ so if its possible please fix the problem.
If its not possible, adding gtk+ to the dependencies would fix the problem actually.

Reproducible: Always

Steps to Reproduce:
1. emerge -C openoffice gtk+
2. USE="-gtk" openoffice
3.

Actual Results:  
build fails:
1 module(s): 
	psprint
need(s) to be rebuilt

Reason(s):

ERROR: error 65280 occurred while making /var/tmp/portage/app-office/openoffice-3.1.1/work/ooo/build/ooo310-m19/psprint/source/fontmanager

Attention: if you build and deliver the above module(s) you may prolongue your the build issuing command "build --from psprint"

rmdir /tmp/7561
make: *** [stamp/build] Error 1
 [31;01m*[0m 
 [31;01m*[0m ERROR: app-office/openoffice-3.1.1 failed.
 [31;01m*[0m Call stack:
 [31;01m*[0m               ebuild.sh, line   49:  Called src_compile
 [31;01m*[0m             environment, line 5203:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m       make || die "Build failed"
 [31;01m*[0m  The die message:
 [31;01m*[0m   Build failed
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant.
 [31;01m*[0m A complete build log is located at '/var/tmp/portage/app-office/openoffice-3.1.1/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/app-office/openoffice-3.1.1/temp/environment'.
 [31;01m*[0m 
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info

Expected Results:  
openoffice should build without gtk+

Portage 2.2_rc40 (default/linux/x86/10.0, gcc-4.3.2, glibc-2.10.1-r0, 2.6.31-gentoo i686)
=================================================================                        
System uname: Linux-2.6.31-gentoo-i686-Intel-R-_Pentium-R-_4_CPU_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 12 Sep 2009 08:15:02 +0000                                        
app-shells/bash:     4.0_p33                                                              
dev-java/java-config: 2.1.9                                                               
dev-lang/python:     2.5.4-r3, 2.6.2-r1, 3.1.1
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
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="/media/overlays/local"
SYNC="rsync://tunafix/gentoo-portage"
USE="X acl alsa berkdb bzip2 cdr cli consolekit cracklib crypt cups dbus dri dvd fortran gdbm gpm hal iconv ipv6 isdnlog jpeg kde mad mp3 mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl policykit pppd python qt3support qt4 readline reflection rss semantic-desktop session spl ssl sysfs tcpd unicode webkit x86 xcomposite xorg xv 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 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" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Michael Mair-Keimberger (mm1ke) 2009-09-15 13:38:30 UTC
Created attachment 204185 [details]
building with normal use-flags

[ebuild   R   ] app-office/openoffice-3.1.1  USE="cups dbus opengl pam (-aqua) -bash-completion -binfilter -debug -eds -gnome -gstreamer -gtk -java -kde -ldap -mono -nsplugin -odk -templates" LINGUAS="de* -af -ar -as_IN -be_BY -bg -bn -br -brx -bs -ca -cs -cy -da -dgo -dz -el -en -en_GB -en_US -en_ZA -eo -es -et -eu -fa -fi -fr -ga -gl -gu -he -hi_IN -hr -hu -id -it -ja -ka -kk -km -kn_IN -ko -kok -ks -ku -lt -mai -mk -ml_IN -mn -mni -mr_IN -nb -ne -nl -nn -nr -ns -oc -or_IN -pa_IN -pl -pt -pt_BR -ru -rw -sa_IN -sat -sd -sh -sk -sl -sr -ss -st -sv -sw_TZ -ta -ta_IN -te_IN -tg -th -ti_ER -tn -tr -ts -uk -ur_IN -uz -ve -vi -xh -zh_CN -zh_TW -zu" 0 kB
Comment 2 Michael Mair-Keimberger (mm1ke) 2009-09-15 13:39:26 UTC
Created attachment 204187 [details]
building without any useflag

[ebuild   R   ] app-office/openoffice-3.1.1  USE="(-aqua) -bash-completion -binfilter -cups -dbus -debug -eds -gnome -gstreamer -gtk -java -kde -ldap -mono -nsplugin -odk -opengl -pam -templates" LINGUAS="-af -ar -as_IN -be_BY -bg -bn -br -brx -bs -ca -cs -cy -da -de -dgo -dz -el -en -en_GB -en_US -en_ZA -eo -es -et -eu -fa -fi -fr -ga -gl -gu -he -hi_IN -hr -hu -id -it -ja -ka -kk -km -kn_IN -ko -kok -ks -ku -lt -mai -mk -ml_IN -mn -mni -mr_IN -nb -ne -nl -nn -nr -ns -oc -or_IN -pa_IN -pl -pt -pt_BR -ru -rw -sa_IN -sat -sd -sh -sk -sl -sr -ss -st -sv -sw_TZ -ta -ta_IN -te_IN -tg -th -ti_ER -tn -tr -ts -uk -ur_IN -uz -ve -vi -xh -zh_CN -zh_TW -zu" 0 kB
Comment 3 Michael Mair-Keimberger (mm1ke) 2009-09-15 13:40:21 UTC
Created attachment 204189 [details]
building with only the kde flag

[ebuild   R   ] app-office/openoffice-3.1.1  USE="kde (-aqua) -bash-completion -binfilter -cups -dbus -debug -eds -gnome -gstreamer -gtk -java -ldap -mono -nsplugin -odk -opengl -pam -templates" LINGUAS="-af -ar -as_IN -be_BY -bg -bn -br -brx -bs -ca -cs -cy -da -de -dgo -dz -el -en -en_GB -en_US -en_ZA -eo -es -et -eu -fa -fi -fr -ga -gl -gu -he -hi_IN -hr -hu -id -it -ja -ka -kk -km -kn_IN -ko -kok -ks -ku -lt -mai -mk -ml_IN -mn -mni -mr_IN -nb -ne -nl -nn -nr -ns -oc -or_IN -pa_IN -pl -pt -pt_BR -ru -rw -sa_IN -sat -sd -sh -sk -sl -sr -ss -st -sv -sw_TZ -ta -ta_IN -te_IN -tg -th -ti_ER -tn -tr -ts -uk -ur_IN -uz -ve -vi -xh -zh_CN -zh_TW -zu" 0 kB
Comment 4 Olivier Crete (RETIRED) gentoo-dev 2009-09-19 21:07:05 UTC
I guess its a good time to remove USE=gtk
Everyone shoould have GTK+!
Comment 5 Andreas Proschofsky (RETIRED) gentoo-dev 2009-11-25 12:02:40 UTC
Interesting, I've seen this bug in the past, but it doesn't seem to happen for everyone... Still - thinking about making gtk+ a hard dependency (as the nsplugin-stuff also seems to not work without it)
Comment 6 Hanno Zysik (geki) 2009-11-25 14:17:36 UTC
Hmmm, I just wonder, there is no gtk+ code where it fails.

See: http://svn.services.openoffice.org/opengrok/search?q=&defs=&refs=&path=psprint%2Fsource%2Ffontmanager&hist=&project=%2FOOO310_13

So, actually a complete build.log with an error would help identify the problem. ;)
Comment 7 Michael Mair-Keimberger (mm1ke) 2009-11-27 17:58:22 UTC
Happily, i still have all the complete build logs :D (i'll upload them as a tar.gz)
But, i think this bug is obsolent now, because things changed in the tree and gtk+ would be pulled into the dependency anyway.

Though, installing openoffice without the need of gtk+ would be still nice ;)

Here is the dep-tree (openoffice without any flag):

Calculating dependencies... done!
[ebuild  N    ] app-office/openoffice-3.1.1  USE="(-aqua) -bash-completion -binfilter -cups -dbus -debug -eds -gnome -gstreamer -gtk -java -kde -ldap -mono -nsplugin -odk -opengl -pam -templates" LINGUAS="-af -ar -as_IN -be_BY -bg -bn -br -brx -bs -ca -cs -cy -da -de -dgo -dz -el -en -en_GB -en_US -en_ZA -eo -es -et -eu -fa -fi -fr -ga -gl -gu -he -hi_IN -hr -hu -id -it -ja -ka -kk -km -kn_IN -ko -kok -ks -ku -lt -mai -mk -ml_IN -mn -mni -mr_IN -nb -ne -nl -nn -nr -ns -oc -or_IN -pa_IN -pl -pt -pt_BR -ru -rw -sa_IN -sat -sd -sh -sk -sl -sr -ss -st -sv -sw_TZ -ta -ta_IN -te_IN -tg -th -ti_ER -tn -tr -ts -uk -ur_IN -uz -ve -vi -xh -zh_CN -zh_TW -zu" 0 kB
[ebuild  N    ]  dev-perl/Archive-Zip-1.30  0 kB
[ebuild  N    ]  dev-libs/redland-1.0.9-r1  USE="berkdb ssl -mysql -postgres -sqlite -threads -xml" 0 kB
[ebuild  N    ]   dev-libs/rasqal-0.9.16  USE="pcre -gmp -test -xml" 0 kB
[ebuild  N    ]  app-text/libwpd-0.8.14  USE="-doc" 0 kB
[ebuild  N    ]   gnome-extra/libgsf-1.14.16  USE="bzip2 -doc -gnome -gtk -python" 0 kB
[ebuild  N    ]    gnome-base/gconf-2.28.0-r1  USE="policykit -debug -doc -ldap" 0 kB
[ebuild  N    ]     x11-libs/gtk+-2.18.3  USE="cups jpeg xinerama -debug -doc -jpeg2k -test -tiff -vim-syntax" 0 kB
[ebuild  N    ]      x11-libs/pango-1.26.0  USE="X -debug -doc -test" 0 kB
[ebuild  N    ]       x11-libs/cairo-1.8.8  USE="X opengl svg -cleartype -debug -directfb -doc -glitz -xcb" 0 kB
[ebuild  N    ]      dev-libs/atk-1.28.0  USE="-debug -doc" 0 kB
[ebuild  N    ]     gnome-base/orbit-2.14.17  USE="-doc" 0 kB
[ebuild  N    ]      dev-libs/libIDL-0.8.13  USE="-debug" 0 kB
[ebuild  N    ]  app-text/hunspell-1.2.8  USE="ncurses nls readline" 0 kB
[ebuild  N    ]  media-libs/vigra-1.6.0  USE="jpeg zlib -doc -fftw -png -test -tiff" 0 kB
[ebuild  N    ]  dev-libs/icu-4.2.1  USE="-debug -doc -examples" 0 kB

Total: 16 packages (16 new), Size of downloads: 0 kB
Comment 8 Michael Mair-Keimberger (mm1ke) 2009-11-27 17:59:39 UTC
Created attachment 211346 [details]
3 complete build logs
Comment 9 Hanno Zysik (geki) 2009-11-28 00:09:49 UTC
Okay, my mistake. I somehow thought some fedora patch required glib only and not gtk+, but ...

gtk+ is pulled in by bug 289879. And by following patches. I wonder if they are really necessary..?

( http://cgit.freedesktop.org/ooo-build/ooo-build/tree/patches/dev300/apply?h=ooo-build-3-1-1 )
[ CairoFonts ]
# needs Gtk2.0 >= 2.10 and cairo, so this is on the own section
ooo59127.vcl.honourcairofont.diff
psprint-fontconfig-fix.diff, n#407958, thorsten

The error:
___
Entering /var/tmp/portage/app-office/openoffice-3.1.1/work/ooo/build/ooo310-m19/psprint/source/fontmanager
Package gdk-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gdk-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gdk-2.0' found
dmake:  Error code 1, while making 'Shell escape'

 * Searching for /usr/lib64/pkgconfig/gdk-2.0.pc ... 
x11-libs/gtk+-2.18.3 (/usr/lib64/pkgconfig/gdk-2.0.pc)
Comment 10 Hanno Zysik (geki) 2009-11-28 00:15:57 UTC
As stated in OOo IssueZilla report [0], it should be reworked to not to depend on gtk+. :)

[0] http://www.openoffice.org/issues/show_bug.cgi?id=59127
Comment 11 Hanno Zysik (geki) 2009-11-28 00:29:31 UTC
Hmm, I may be tired. At least it was introduced by that patch. I build OOo without gtk to check now. ;)
Comment 12 Hanno Zysik (geki) 2009-11-28 03:43:24 UTC
There is hope for OOo 3.2.
I built a recent milestone with USE="-gnome -gtk -nsplugin gstreamer".
And no links to gtk or gdk, just a glib link in avmedia module for gstreamer.

Hmm, I just rechecked the patch I mentioned and the gdk code is gone for OOo 3.2.
For OOo 3.1.x the gdk code is still there. *argh*

Sorry for the spam. :/
Comment 13 Andreas Proschofsky (RETIRED) gentoo-dev 2009-11-28 20:34:37 UTC
Great observations Hanno, thanks :-) For 3.1.1 I've now added a patch to remove the CairoFonts-usage when build without the gtk and gnome use-flags.

So: Closing.