Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549122 - [gnome-overlay]sci-geosciences/gnome-maps-3.16.1 looking for glib headers in the wrong place
Summary: [gnome-overlay]sci-geosciences/gnome-maps-3.16.1 looking for glib headers in ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: InOverlay, InVCS
Depends on:
Blocks: gnome-3.16
  Show dependency tree
 
Reported: 2015-05-10 23:38 UTC by Harris Landgarten
Modified: 2015-05-11 21:36 UTC (History)
0 users

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


Attachments
libchamplain-0.12.10-r1.ebuild added memphis USE flag (libchamplain-0.12.10-r1.ebuild,1.83 KB, text/plain)
2015-05-11 20:24 UTC, J. García
Details
libchamplain metadata.xml with memphis USE flag info (metadata.xml,340 bytes, text/xml)
2015-05-11 20:26 UTC, J. García
Details
gnome-maps-3.16.1.ebuild change RDEPEND for libchamplain (gnome-maps-3.16.1.ebuild,968 bytes, text/plain)
2015-05-11 20:27 UTC, J. García
Details
gnome-maps-3.16.1.ebuild change RDEPEND for libchamplain, corrected. (gnome-maps-3.16.1.ebuild,968 bytes, text/plain)
2015-05-11 20:52 UTC, J. García
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harris Landgarten 2015-05-10 23:38:50 UTC
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
Comment 1 J. García 2015-05-11 20:20:48 UTC
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
Comment 2 J. García 2015-05-11 20:24:22 UTC
Created attachment 403056 [details]
libchamplain-0.12.10-r1.ebuild added memphis USE flag
Comment 3 J. García 2015-05-11 20:26:17 UTC
Created attachment 403058 [details]
libchamplain metadata.xml with memphis USE flag info
Comment 4 J. García 2015-05-11 20:27:35 UTC
Created attachment 403060 [details]
gnome-maps-3.16.1.ebuild change RDEPEND for libchamplain
Comment 5 J. García 2015-05-11 20:31:11 UTC
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 6 J. García 2015-05-11 20:47:28 UTC
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
>"
Comment 7 J. García 2015-05-11 20:52:56 UTC
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.
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-05-11 21:31:48 UTC
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.
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-05-11 21:35:16 UTC
+*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.
+
Comment 10 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-05-11 21:35:49 UTC
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
Comment 11 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-05-11 21:36:03 UTC
Thanks for reporting.