You are not logged in.

#1 2012-10-14 13:00:41

billisbrother
Member
Registered: 2011-03-22
Posts: 11

deskbar-applet-2.32.0 - glib.h - error

Hi

I am setting up a fresh Funtoo installation and I am currently stuck at installing gnome-2.32.1-r2.
More precisely, it's "deskbar-applet" which's the problem. I try to report the problem, so it can be tracked down.

A short version of the problem (more detailed information at the end..)

localhost ~ # emerge deskbar-applet
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) gnome-extra/deskbar-applet-2.32.0
 * deskbar-applet-2.32.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...  
....
/usr/include/glib-2.0/glib/gstring.h:28:2: error: #error "Only <glib.h> can be included directly."
....

The problem has been reported on the Gentoo Forums [1], where two approaches are being presented.
1. revdep-rebuild && depclean && revdep-rebuild   
   --> however, as I am doing a fresh install of gnome, the above depclean would unmerge all the >200 packages I have already build. 
2. patching the sources
  --> Maybe there is a way to provide a patch with the next sync?! I am sorry, I am not quite sure how to provide such a patch.

Is there any other way to fix this? Or should I wait for the next sync?

Thank you!

Best, Josef


[1] http://forums.gentoo.org/viewtopic-t-93 … cf64ca99ae

PS. I run this Funtoo (stable, amd64) instance as a VirtualBox guest.
Some more details:

localhost ~ # emerge -av gnome

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] gnome-extra/deskbar-applet-2.32.0  USE="eds -spell" 0 kB
[ebuild  N     ] gnome-extra/hamster-applet-2.32.1  USE="eds -libnotify" 0 kB
[ebuild  N     ] x11-misc/xdg-user-dirs-0.14  USE="gtk nls" 0 kB
[ebuild  N     ] x11-misc/xdg-user-dirs-gtk-0.9  0 kB
[ebuild  N     ] gnome-base/gnome-session-2.32.1-r3  USE="ipv6 -debug -doc" 0 kB
[ebuild  N     ] gnome-base/gnome-2.32.1-r2  USE="cdr cups dvdr policykit -accessibility -ldap -mono" 0 kB

Total: 6 packages (6 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] 

>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 6) gnome-extra/deskbar-applet-2.32.0
 * deskbar-applet-2.32.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                     [ ok ]
>>> Unpacking source...
>>> Unpacking deskbar-applet-2.32.0.tar.bz2 to /var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work
>>> Source unpacked in /var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work
>>> Preparing source in /var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0 ...
 * QA Notice: The 'hasq' function is deprecated (replaced by 'has')
 * Fixing OMF Makefiles ...                                                                                                                                          [ ok ]
 * Running elibtoolize in: deskbar-applet-2.32.0/
 *   Applying portage/2.2 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.2.6 patch ...
 * Converting shebang in 'deskbar/deskbar-applet.py'
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0 ...
 * econf: updating deskbar-applet-2.32.0/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating deskbar-applet-2.32.0/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --enable-evolution --exec-prefix=/usr --disable-scrollkeeper --disable-scrollkeeper
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for style of include used by make... GNU
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking dependency style of x86_64-pc-linux-gnu-gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for x86_64-pc-linux-gnu-objdump... x86_64-pc-linux-gnu-objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking command to parse /usr/bin/nm -B output from x86_64-pc-linux-gnu-gcc object... ok
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-pc-linux-gnu-gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... (cached) yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking dependency style of x86_64-pc-linux-gnu-gcc... (cached) gcc3
checking for pkg-config... yes
checking whether NLS is requested... yes
checking for intltool >= 0.35.0... 0.50.2 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.12.4
checking for XML::Parser... ok
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... (cached) /usr/bin/gmsgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for x86_64-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking gnome-doc-utils >= 0.3.2... yes
checking for gconftool-2... /usr/bin/gconftool-2
Using config source xml:merged:/etc/gconf/gconf.xml.defaults for schema installation
Using $(sysconfdir)/gconf/schemas as install directory for schema files
checking for a Python interpreter with version >= 2.4... python
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib64/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib64/python2.7/site-packages
checking for headers required to compile python extensions... found
checking for DESKBAR... yes
checking for gnomeapplet module... yes
checking for python module dbus... yes
checking for python module gconf... yes
checking for python module gio... yes
checking for python module glib... yes
checking for python module gnomedesktop... yes
checking for python module gnomekeyring... yes
checking for python module gobject... yes
checking for python module gtk... yes
checking for python module gtk.gdk... yes
checking for python module pango... yes
checking for python module wnck... yes
checking for EVOLUTION... yes
checking for pygtk-codegen-2.0... /usr/bin/pygtk-codegen-2.0
checking for pygtk defs... /usr/share/pygtk/2.0/defs
checking for prctl... yes
checking whether PR_SET_NAME is declared... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating deskbar/Makefile
config.status: creating deskbar/defs.py
config.status: creating deskbar/core/Makefile
config.status: creating deskbar/core/keybinder/Makefile
config.status: creating deskbar/core/updater/Makefile
config.status: creating deskbar/core/_userdirs/Makefile
config.status: creating deskbar/handlers/Makefile
config.status: creating deskbar/handlers/actions/Makefile
config.status: creating deskbar/handlers/evolution/Makefile
config.status: creating deskbar/osutils/Makefile
config.status: creating deskbar/interfaces/Makefile
config.status: creating deskbar/ui/Makefile
config.status: creating deskbar/ui/cuemiac/Makefile
config.status: creating deskbar/ui/iconentry/Makefile
config.status: creating deskbar/ui/preferences/Makefile
config.status: creating data/Makefile
config.status: creating data/deskbar-applet.pc
config.status: creating data/art/Makefile
config.status: creating po/Makefile.in
config.status: creating help/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands

deskbar-applet v2.32.0

Prefix............... : /usr
Evolution Support.... : yes
Dbus Services Dir.... : /usr/share/dbus-1/services
Now type make to compile
Then su to root and type: make install

>>> Source configured.
>>> Compiling source in /var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0 ...
make -j2 
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0'
Making all in deskbar
make[2]: Entering directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0/deskbar'
make  all-recursive
make[3]: Entering directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0/deskbar'
Making all in core
make[4]: Entering directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0/deskbar/core'
Making all in keybinder
make[5]: Entering directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0/deskbar/core/keybinder'
  CC     eggaccelerators.lo
  CC     _keybindermodule.lo
  CC     tomboykeybinder.lo
  GEN    _keybinder.c
note: pygtk-codegen-2.0 is deprecated, use pygobject-codegen-2.0 instead
note: I will now try to invoke pygobject-codegen-2.0 in the same directory
***INFO*** The coverage of global functions is 100.00% (4/4)
***INFO*** There are no declared methods.
***INFO*** There are no declared virtual proxies.
***INFO*** There are no declared virtual accessors.
***INFO*** There are no declared interface proxies.
  CC     _keybinder.lo
  CCLD   _keybinder.la
make[5]: Leaving directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0/deskbar/core/keybinder'
Making all in updater
make[5]: Entering directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0/deskbar/core/updater'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0/deskbar/core/updater'
Making all in _userdirs
make[5]: Entering directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0/deskbar/core/_userdirs'
  CC     __userdirsmodule.lo
  CCLD   __userdirs.la
make[5]: Leaving directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0/deskbar/core/_userdirs'
make[5]: Entering directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0/deskbar/core'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0/deskbar/core'
make[4]: Leaving directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0/deskbar/core'
Making all in handlers
make[4]: Entering directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0/deskbar/handlers'
Making all in actions
make[5]: Entering directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0/deskbar/handlers/actions'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0/deskbar/handlers/actions'
Making all in evolution
make[5]: Entering directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0/deskbar/handlers/evolution'
  CC     _evolutionmodule.lo
  CC     evolution.lo
In file included from evolution.c:2:
/usr/include/glib-2.0/glib/gstring.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from evolution.h:5,
                 from evolution.c:6:
/usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from ./evolution.h:5,
                 from _evolutionmodule.c:10:
/usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly."
make[5]: *** [evolution.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: *** [_evolutionmodule.lo] Error 1
make[5]: Leaving directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0/deskbar/handlers/evolution'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0/deskbar/handlers'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0/deskbar'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0/deskbar'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0'
make: *** [all] Error 2
emake failed
 * ERROR: gnome-extra/deskbar-applet-2.32.0 failed (compile phase):
 *   compile failure
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_compile
 *   environment, line 6032:  Called gnome2_src_compile
 *   environment, line 2914:  Called die
 * The specific snippet of code:
 *       emake || die "compile failure"
 * 
 * If you need support, post the output of `emerge --info '=gnome-extra/deskbar-applet-2.32.0'`,
 * the complete build log and the output of `emerge -pqv '=gnome-extra/deskbar-applet-2.32.0'`.
 * The complete build log is located at '/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/temp/environment'.
 * Working directory: '/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0'
 * S: '/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0'

>>> Failed to emerge gnome-extra/deskbar-applet-2.32.0, Log file:

>>>  '/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/temp/build.log'

 * Messages for package gnome-extra/deskbar-applet-2.32.0:

 * ERROR: gnome-extra/deskbar-applet-2.32.0 failed (compile phase):
 *   compile failure
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_compile
 *   environment, line 6032:  Called gnome2_src_compile
 *   environment, line 2914:  Called die
 * The specific snippet of code:
 *       emake || die "compile failure"
 * 
 * If you need support, post the output of `emerge --info '=gnome-extra/deskbar-applet-2.32.0'`,
 * the complete build log and the output of `emerge -pqv '=gnome-extra/deskbar-applet-2.32.0'`.
 * The complete build log is located at '/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/temp/environment'.
 * Working directory: '/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0'
 * S: '/var/tmp/portage/gnome-extra/deskbar-applet-2.32.0/work/deskbar-applet-2.32.0'
localhost ~ # 
localhost ~ # emerge --info '=gnome-extra/deskbar-applet-2.32.0'
Portage 2.3.4-r9 (funtoo/1.0/linux-gnu/arch/x86-64bit, gcc-4.4.5, glibc-2.11.3, 3.4.9-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.4.9-gentoo-x86_64-Intel-R-_Core-TM-_i7-2635QM_CPU_@_2.00GHz-with-gentoo-2.2.0
Timestamp of tree: Sun, 14 Oct 2012 05:45:01 +0000
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r1000, 3.2.3-r1000
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2.0-r1
sys-apps/openrc:          0.10.2-r6
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.6
sys-devel/binutils:       2.20.1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.5-r1
sys-devel/libtool:        2.4-r3
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.11.3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles mini-manifest news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="git://github.com/funtoo/ports-2012.git"
SYNC_USER="root"
USE="X acl acpi alsa amd64 berkdb bzip2 cdr cjk colord cracklib crypt cups cxx dbus dri dvd dvdr dvdread eds emerald evo exif ffmpeg flac fuse gdbm gif gnome gnome-keyring gnutls gpm gstreamer gtk iconv ipv6 jpeg lame lcms lm_sensors mad mmx modules mp3 mpeg mudflap multilib nautilus ncurses nls nptl offensive ogg opengl openmp pam pcre pdf png policykit pppd pulseaudio python readline sse sse2 ssl svg tcpd tiff truetype udev unicode vorbis wavpack xcb xml xorg 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 cgi cgid 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 authn_core authz_core socache_shmcb unixd" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_ABIS="2.7 3.2" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="virtualbox" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK

Offline

#2 2012-10-15 11:48:34

Juippisi
Member
From: /home
Registered: 2012-03-01
Posts: 51

Re: deskbar-applet-2.32.0 - glib.h - error

Well, I can help you with a temporary fix that should get it compiled. You need to create your own overlay, and put an upgraded ebuild and the patch there.

You can skip most of the following steps if you already have your own overlay up.
mkdir -p /usr/local/portage/gnome-extra/deskbar-applet/files
mkdir -p /usr/local/portage/profiles
echo "localhost" > /usr/local/portage/profiles/repo_name

Put PORTDIR_OVERLAY="/usr/local/portage" into your make.conf.

cd /usr/local/portage/gnome-extra/deskbar-applet
Put the following contents into deskbar-applet-2.32.0.ebuild

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/deskbar-applet/deskbar-applet-2.32.0.ebuild,v 1.12 2012/05/05 06:25:17 jdhore Exp $

EAPI="3"
GCONF_DEBUG="no"
PYTHON_DEPEND="2:2.5"

inherit eutils gnome2 python

DESCRIPTION="An Omnipresent Versatile Search Interface"
HOMEPAGE="http://projects.gnome.org/deskbar-applet/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd"
IUSE="eds spell"

RDEPEND="
	>=x11-libs/gtk+-2.20:2
	>=gnome-base/gnome-desktop-2.10:2
	>=gnome-base/gconf-2:2
	|| ( gnome-base/gnome-panel[bonobo] <gnome-base/gnome-panel-2.32 )

	>=dev-python/pygtk-2.12:2
	>=dev-python/pygobject-2.15.3:2
	>=dev-python/dbus-python-0.80.2

	>=dev-python/gconf-python-2.22.1:2
	>=dev-python/gnome-applets-python-2.22
	>=dev-python/gnome-desktop-python-2.22
	>=dev-python/gnome-keyring-python-2.22
	>=dev-python/libwnck-python-2.22

	eds? ( >=gnome-extra/evolution-data-server-1.7.92 )
	spell? ( >=gnome-extra/gnome-utils-2.16.2 )"
DEPEND="${RDEPEND}
	sys-devel/gettext
	>=dev-util/intltool-0.35
	app-text/scrollkeeper
	app-text/gnome-doc-utils
	virtual/pkgconfig
	app-text/docbook-xml-dtd:4.2"

pkg_setup() {
	DOCS="AUTHORS ChangeLog NEWS README TODO"
	G2CONF="${G2CONF}
		$(use_enable eds evolution)
		--exec-prefix=/usr
		--disable-scrollkeeper"
	python_set_active_version 2
}

src_unpack() {
    unpack "${A}"
    cd "${S}"
    epatch "${FILESDIR}"/evolution_c_and_h.patch
}

src_prepare() {
	gnome2_src_prepare

	# disable pyc compiling
	mv py-compile py-compile.orig
	ln -s $(type -P true) py-compile

	python_convert_shebangs -r 2 .
}

src_compile() {
	# Needed for import gnomedesktop in configure, bug #270524
	addpredict "$(unset HOME; echo ~)/.gnome2"

	gnome2_src_compile
}

src_install() {
	gnome2_src_install
	python_clean_installation_image
	python_convert_shebangs 2 "${ED}"usr/libexec/${PN}/${PN}
}

pkg_postinst() {
	gnome2_pkg_postinst
	python_need_rebuild
	python_mod_optimize deskbar
	python_mod_optimize /usr/libexec/deskbar-applet/deskbar-applet
	python_mod_optimize /usr/libexec/deskbar-applet/modules-2.20-compatible

	if ! has_version gnome-extra/gnome-utils; then
		ewarn "The dictionary plugin in deskbar-applet uses the dictionary from "
		ewarn "gnome-extra/gnome-utils.  If it is not present, the dictionary "
		ewarn "plugin will fail silently."
	fi
}

pkg_postrm() {
	gnome2_pkg_postrm
	python_mod_cleanup deskbar
	python_mod_cleanup /usr/libexec/deskbar-applet/deskbar-applet
	python_mod_cleanup /usr/libexec/deskbar-applet/modules-2.20-compatible
}

cd files
Put the following contents into evolution_c_and_h.patch

diff -Naur deskbar-applet-2.32.0-orig/deskbar/handlers/evolution/evolution.c deskbar-applet-2.32.0/deskbar/handlers/evolution/evolution.c
--- deskbar-applet-2.32.0-orig/deskbar/handlers/evolution/evolution.c	2010-09-27 16:25:25.000000000 +0300
+++ deskbar-applet-2.32.0/deskbar/handlers/evolution/evolution.c	2012-10-15 14:25:12.936548169 +0300
@@ -1,5 +1,4 @@
 #include <glib.h>
-#include <glib/gstring.h>
 #include <libebook/e-book.h>
 #include <pango/pango.h>
 #include <string.h>
diff -Naur deskbar-applet-2.32.0-orig/deskbar/handlers/evolution/evolution.h deskbar-applet-2.32.0/deskbar/handlers/evolution/evolution.h
--- deskbar-applet-2.32.0-orig/deskbar/handlers/evolution/evolution.h	2010-09-27 16:25:25.000000000 +0300
+++ deskbar-applet-2.32.0/deskbar/handlers/evolution/evolution.h	2012-10-15 14:25:12.936548169 +0300
@@ -2,7 +2,7 @@
 #ifndef __DESKBAR_EVOLUTION_H__
 #define __DESKBAR_EVOLUTION_H__
 
-#include <glib/gtypes.h>
+#include <glib.h>
 #include <gdk-pixbuf/gdk-pixbuf.h>
 
 G_BEGIN_DECLS

cd ..
ebuild deskbar-applet-2.32.0.ebuild digest
emerge -av deskbar-applet-2.32.0::localhost

That should do it.

Offline

#3 2012-10-15 12:00:07

billisbrother
Member
Registered: 2011-03-22
Posts: 11

Re: deskbar-applet-2.32.0 - glib.h - error

Thank you very much for your reply! I will try it out.

Cheers, Josef

Offline

Board footer

Powered by FluxBB