compile fails with: In file included from /var/tmp/paludis/sci-geosciences-gnome-maps-3.16.1/work/gnome-maps-3.16.1/lib/maps-contact-store.h:23:0, from <stdin>:4: /usr/include/glib-object.h:23:30: fatal error: gobject/gbinding.h: No such file or directory #include <gobject/gbinding.h> There are some others too. All the headers from glib are in /usr/include/glib-2.0/ but gnome-maps is looking for them in /usr/include
I was bumping this ebuild and got into this error, but after digging I found out is not about glib but about media-libs/libchamplain and it depending on media-libs/memphis (Wich doesn't seem to be a very well maintained backend for libchamplain[1]. My way of working aroud it was to introduce the memphis USE flag into libchamplain, and change RDEPENDS of maps to be build without it. The complete error message I got, and the command that caused it is this: === /usr/bin/g-ir-scanner --warn-all --namespace=GnomeMaps --nsversion=1.0 --libtool="/bin/sh ../libtool" --pkg=gobject-2.0 --pkg=geocode-glib-1.0 --include=GLib-2.0 --include=GObject-2.0 --include=GeocodeGlib-1.0 --include=Champlain-0.12 --pkg-export=gnome-maps-1.0 --library=libgnome-maps.la --symbol-prefix=maps --identifier-prefix=Maps --cflags-begin -I.. -I.. -I. --cflags-end maps-contact-store.c maps-contact.c maps-contact-store.h maps-contact.h maps.h maps-enum-types.c maps-enum-types.h libgnome-maps.la --output GnomeMaps-1.0.gir Package champlain-memphis-0.12 was not found in the pkg-config search path. Perhaps you should add the directory containing `champlain-memphis-0.12.pc' ^^^^^ *****This is the real error to the PKG_CONFIG_PATH environment variable No package 'champlain-memphis-0.12' found In file included from <stdin>:4:0: /var/tmp/portage/sci-geosciences/gnome-maps-3.16.1/work/gnome-maps-3.16.1/lib/maps-contact-store.h:23:25: fatal error: glib-object.h: No such file or directory #include <glib-object.h> ^ compilation terminated. === I'd say this is an upstream error for libchamplain also, inside their files there's still references to champlain-memphis.pc.in( in champlain/Makefile.am:168), though the file was removed in the upstream commit 0bd28ea. Btw, checking the fedora packages I found they build libchamplain without memphis support. there's where I got the idea from. I didn't try however just adding back the missing file. [1]https://git.gnome.org/browse/libchamplain/commit/champlain?id=0bd28ea1cc6aac6954185fc6e884162a15eda733
Created attachment 403056 [details] libchamplain-0.12.10-r1.ebuild added memphis USE flag
Created attachment 403058 [details] libchamplain metadata.xml with memphis USE flag info
Created attachment 403060 [details] gnome-maps-3.16.1.ebuild change RDEPEND for libchamplain
I also posted these changes to my github fork of the gnome/overlay, https://github.com/j-g-/gnome/commits/master Do you gnome devs check the github mirror for pull requests?
Comment on attachment 403060 [details] gnome-maps-3.16.1.ebuild change RDEPEND for libchamplain ># Copyright 1999-2015 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >EAPI="5" >GCONF_DEBUG="no" > >inherit eutils gnome2 > >DESCRIPTION="A map application for GNOME" >HOMEPAGE="https://wiki.gnome.org/Apps/Maps" > >LICENSE="GPL-2+ LGPL-2+ MIT CC-BY-3.0 CC-BY-SA-3.0" >SLOT="0" >IUSE="" >KEYWORDS="~amd64 ~x86" > >RDEPEND=" > >=app-misc/geoclue-0.12.99:2.0 > >=dev-libs/folks-0.10 > >=dev-libs/gjs-1.43.3 > >=dev-libs/gobject-introspection-0.6.3 > >=dev-libs/glib-2.39.3:2 > >=dev-libs/libgee-0.16:0.8[introspection] > media-libs/clutter-gtk:1.0[introspection] > media-libs/clutter:1.0[introspection] > media-libs/cogl:1.0[introspection] > >=media-libs/libchamplain-0.12.9:0.12[introspection,-memphis] > net-libs/libsoup:2.4[introspection] > >=sci-geosciences/geocode-glib-3.15.2[introspection] > x11-libs/gdk-pixbuf:2[introspection] > >=x11-libs/gtk+-3.15.9:3[introspection] >" > >DEPEND="${RDEPEND} > >=dev-util/intltool-0.40 > virtual/pkgconfig >"
Created attachment 403064 [details] gnome-maps-3.16.1.ebuild change RDEPEND for libchamplain, corrected. Corrected a ',' I missed, in RDEPEND. Sorry for the lot of unnecessary post, I'm not very familiar with bugzilla yet.
After checking all reverse dependencies, none are using the memphis .pc from libchamplain and as found in upstream's git history, it is experimental and unmaintained backend so just hard disabled.
+*libchamplain-0.12.10-r1 (11 May 2015) + + 11 May 2015; Gilles Dartiguelongue <eva@gentoo.org> + +libchamplain-0.12.10-r1.ebuild: + Disable memphis support, as recommended by upstream, bug #549122. +
commit ccb15dc9d4ef3236c7d3a4070f88721fc7414f9a Author: Gilles Dartiguelongue <eva@gentoo.org> Date: Mon May 11 23:32:58 2015 +0200 sci-geosciences/gnome-maps: fix build issue due to libchamplain Build was failing due to reference to memphis in libchamplain introspection files while corresponding pkgconfig files were removed some versions ago. Raise dependency to a fixed version of libchamplain and add missing USE flag dependency for GtkChamplain. See https://bugs.gentoo.org/show_bug.cgi?id=549122
Thanks for reporting.