all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [WIP 0/8] GNOME Maps
@ 2016-04-16  3:02 Leo Famulari
  2016-04-16  3:02 ` [WIP 1/8] gnu: telepathy-glib: Enable vala bindings Leo Famulari
                   ` (8 more replies)
  0 siblings, 9 replies; 28+ messages in thread
From: Leo Famulari @ 2016-04-16  3:02 UTC (permalink / raw)
  To: guix-devel

I'm struggling to get GNOME Maps [0] to work. I've attached my patch
series.

There is a log of the console output below.

GNOME is really another world to me; I don't know where to start with
these error messages and warnings.

GNOME Maps is cool because version 3.20 is supposed to include an
OpenStreetMap editor! This is version 3.18.2.

Any advice appreciated!

[0]
https://wiki.gnome.org/Apps/Maps

Here is the console output, including stderr:

$ gnome-maps
** (org.gnome.Maps:14112): WARNING **: Failed to load shared library 'libgoa-1.0.so.0' referenced by the typelib: libgoa-1.0.so.0: cannot open shared object file: No such file or directory

(org.gnome.Maps:14112): GLib-GObject-WARNING **: cannot retrieve default vtable for invalid or non-interface type 'void'

(org.gnome.Maps:14112): GLib-GObject-WARNING **: gsignal.c:1674: parameter 1 of type 'void' for signal "Gjs_AccountListBox::account_selected" is not a value type

(org.gnome.Maps:14112): Gjs-WARNING **: JS ERROR: Error: Unsupported type void, deriving from fundamental void
CheckInManager<._init@resource:///org/gnome/Maps/js/checkIn.js:47
wrapper@resource:///org/gnome/gjs/modules/lang.js:178
Application<._initServices@resource:///org/gnome/Maps/js/application.js:224
wrapper@resource:///org/gnome/gjs/modules/lang.js:178
Application<.vfunc_startup@resource:///org/gnome/Maps/js/application.js:200
wrapper@resource:///org/gnome/gjs/modules/lang.js:178
main@resource:///org/gnome/Maps/js/main.js:47
run@resource:///org/gnome/gjs/modules/package.js:192
start@resource:///org/gnome/gjs/modules/package.js:176
@/gnu/store/k4a5aacl0xknr9hakz1kh0ph3nnpbpb5-gnome-maps-3.18.2/share/gnome-maps/org.gnome.Maps:5


(org.gnome.Maps:14112): Gtk-CRITICAL **: gtk_tree_model_foreach: assertion 'GTK_IS_TREE_MODEL (model)' failed

(org.gnome.Maps:14112): Gtk-CRITICAL **: gtk_tree_model_filter_get_iter: assertion 'filter->priv->child_model != NULL' failed

(org.gnome.Maps:14112): Gtk-CRITICAL **: gtk_tree_model_foreach: assertion 'GTK_IS_TREE_MODEL (model)' failed

(org.gnome.Maps:14112): Gtk-CRITICAL **: gtk_tree_model_filter_get_iter: assertion 'filter->priv->child_model != NULL' failed

(org.gnome.Maps:14112): Gtk-CRITICAL **: gtk_tree_model_foreach: assertion 'GTK_IS_TREE_MODEL (model)' failed

(org.gnome.Maps:14112): Gtk-CRITICAL **: gtk_tree_model_filter_get_iter: assertion 'filter->priv->child_model != NULL' failed

(org.gnome.Maps:14112): Gtk-CRITICAL **: gtk_tree_model_foreach: assertion 'GTK_IS_TREE_MODEL (model)' failed

(org.gnome.Maps:14112): Gtk-CRITICAL **: gtk_tree_model_filter_get_iter: assertion 'filter->priv->child_model != NULL' failed

(org.gnome.Maps:14112): Gjs-WARNING **: JS ERROR: TypeError: Application.placeStore is null
FavoritesPopover<._init@resource:///org/gnome/Maps/js/favoritesPopover.js:61
wrapper@resource:///org/gnome/gjs/modules/lang.js:178
MainWindow<._init@resource:///org/gnome/Maps/js/mainWindow.js:87
wrapper@resource:///org/gnome/gjs/modules/lang.js:178
Application<._createWindow@resource:///org/gnome/Maps/js/application.js:236
wrapper@resource:///org/gnome/gjs/modules/lang.js:178
Application<.vfunc_activate@resource:///org/gnome/Maps/js/application.js:250
wrapper@resource:///org/gnome/gjs/modules/lang.js:178
main@resource:///org/gnome/Maps/js/main.js:47
run@resource:///org/gnome/gjs/modules/package.js:192
start@resource:///org/gnome/gjs/modules/package.js:176
@/gnu/store/k4a5aacl0xknr9hakz1kh0ph3nnpbpb5-gnome-maps-3.18.2/share/gnome-maps/org.gnome.Maps:5

Leo Famulari (8):
  gnu: telepathy-glib: Enable vala bindings.
  gnu: evolution-data-server: Build Vala bindings.
  gnu: Add folks.
  gnu: vala: Build Vala API (.vapi) generator.
  gnu: libchamplain: Update to 0.12.13.
  gnu: libchamplain: Build Vala bindings.
  gnu: Add gfbgraph.
  gnu: Add gnome-maps.

 gnu-system.am          |  1 +
 gnu/packages/glib.scm  |  4 +++
 gnu/packages/gnome.scm | 85 +++++++++++++++++++++++++++++++++++++++++++++++---
 gnu/packages/maps.scm  | 62 ++++++++++++++++++++++++++++++++++++
 4 files changed, 148 insertions(+), 4 deletions(-)
 create mode 100644 gnu/packages/maps.scm

-- 
2.7.3

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [WIP 1/8] gnu: telepathy-glib: Enable vala bindings.
  2016-04-16  3:02 [WIP 0/8] GNOME Maps Leo Famulari
@ 2016-04-16  3:02 ` Leo Famulari
  2016-05-02  8:30   ` Ludovic Courtès
  2016-04-16  3:02 ` [WIP 2/8] gnu: evolution-data-server: Build Vala bindings Leo Famulari
                   ` (7 subsequent siblings)
  8 siblings, 1 reply; 28+ messages in thread
From: Leo Famulari @ 2016-04-16  3:02 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/glib.scm (telepathy-glib)[arguments]: Add --enable-vala-bindings
to #:configure-flags.
[native-inputs]: Add vala.
---
 gnu/packages/glib.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
index e7e9df8..96b847e 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -33,6 +33,7 @@
   #:use-module (gnu packages compression)
   #:use-module (gnu packages flex)
   #:use-module (gnu packages gettext)
+  #:use-module (gnu packages gnome)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages libffi)
   #:use-module (gnu packages perl)
@@ -579,11 +580,14 @@ useful for C++.")
             (base32
              "0z261fwrszxb28ccg3hsg9rizig4s84zvwmx6y31a4pyv7bvs5w3")))))))
     (build-system gnu-build-system)
+    (arguments
+     '(#:configure-flags '("--enable-vala-bindings")))
     (native-inputs
      `(("glib" ,glib "bin") ; uses glib-mkenums
        ("gobject-introspection" ,gobject-introspection)
        ("pkg-config" ,pkg-config)
        ("python" ,python-2)
+       ("vala" ,vala)
        ("xsltproc" ,libxslt)))
     (propagated-inputs
      ;; There are all in the Requires.private field of telepathy-glib.pc.
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [WIP 2/8] gnu: evolution-data-server: Build Vala bindings.
  2016-04-16  3:02 [WIP 0/8] GNOME Maps Leo Famulari
  2016-04-16  3:02 ` [WIP 1/8] gnu: telepathy-glib: Enable vala bindings Leo Famulari
@ 2016-04-16  3:02 ` Leo Famulari
  2016-05-02  8:29   ` Ludovic Courtès
  2016-04-16  3:02 ` [WIP 3/8] gnu: Add folks Leo Famulari
                   ` (6 subsequent siblings)
  8 siblings, 1 reply; 28+ messages in thread
From: Leo Famulari @ 2016-04-16  3:02 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/gnome.scm (evolution-data-server)[arguments]: Add
--enable-vala-bindings to #:configure-flags.
[native-inputs]: Add vala.
---
 gnu/packages/gnome.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 0fd1d5b..7ba2283 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -4141,6 +4141,7 @@ Exchange, Last.fm, IMAP/SMTP, Jabber, SIP and Kerberos.")
              (nspr (assoc-ref %build-inputs "nspr")))
          (list "--disable-uoa"    ; disable Ubuntu Online Accounts support
                "--disable-google" ; disable Google Contacts support
+               "--enable-vala-bindings"
                (string-append "--with-nspr-includes=" nspr "/include/nspr")
                (string-append "--with-nss-includes=" nss "/include/nss")
                (string-append "--with-nss-libs=" nss "/lib/nss")))
@@ -4157,6 +4158,7 @@ Exchange, Last.fm, IMAP/SMTP, Jabber, SIP and Kerberos.")
        ("gperf" ,gperf)
        ("intltool" ,intltool)
        ("pkg-config" ,pkg-config)
+       ("vala" ,vala)
        ("python" ,python)))
     (propagated-inputs
      ;; These are all in the Requires field of .pc files.
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [WIP 3/8] gnu: Add folks.
  2016-04-16  3:02 [WIP 0/8] GNOME Maps Leo Famulari
  2016-04-16  3:02 ` [WIP 1/8] gnu: telepathy-glib: Enable vala bindings Leo Famulari
  2016-04-16  3:02 ` [WIP 2/8] gnu: evolution-data-server: Build Vala bindings Leo Famulari
@ 2016-04-16  3:02 ` Leo Famulari
  2016-05-02  8:26   ` Ludovic Courtès
  2016-04-16  3:02 ` [WIP 4/8] gnu: vala: Build Vala API (.vapi) generator Leo Famulari
                   ` (5 subsequent siblings)
  8 siblings, 1 reply; 28+ messages in thread
From: Leo Famulari @ 2016-04-16  3:02 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/gnome.scm (folks): New variable.
---
 gnu/packages/gnome.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 7ba2283..d1a5a46 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -16,6 +16,7 @@
 ;;; Copyright © 2016 Jochem Raat <jchmrt@riseup.net>
 ;;; Copyright © 2016 Rene Saavedra <rennes@openmailbox.org>
 ;;; Copyright © 2016 Kei Yamashita <kei@openmailbox.org>
+;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -4997,3 +4998,38 @@ specified duration and save it as a GIF encoded animated image file.")
      "Libzapojit is a GLib-based library for accessing online service APIs of
 Microsoft SkyDrive and Hotmail, using their REST protocols.")
     (license license:lgpl2.1+)))
+
+(define-public folks
+  (package
+    (name "folks")
+    (version "0.11.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://gnome/sources/" name "/"
+                    (version-major+minor version) "/"
+                    name "-" version ".tar.xz"))
+              (sha256
+               (base32
+                "1f51albxgfqxbax57i3pcgv2fx7i419xaapzdvldas6gw100ma1m"))))
+    (build-system glib-or-gtk-build-system)
+    (inputs
+     `(("bdb" ,bdb)
+       ("dbus-glib" ,dbus-glib)
+       ("evolution-data-server" ,evolution-data-server)
+       ("glib" ,glib)
+       ("libgee" ,libgee)
+       ("telepathy-glib" ,telepathy-glib)))
+    (native-inputs
+     `(("gobject-introspection" ,gobject-introspection)
+       ("intltool" ,intltool)
+       ("pkg-config" ,pkg-config)
+       ("vala" ,vala)))
+    (synopsis "Library to aggregates data about people")
+    (description "libfolks is a library that aggregates people from multiple
+sources (eg, Telepathy connection managers for IM contacts, Evolution Data
+Server for local contacts, libsocialweb for web service contacts, etc.) to
+create metacontacts.  It's written in Vala, which generates C code when
+compiled.")
+    (home-page "https://wiki.gnome.org/Projects/Folks")
+    (license license:lgpl2.1+)))
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [WIP 4/8] gnu: vala: Build Vala API (.vapi) generator.
  2016-04-16  3:02 [WIP 0/8] GNOME Maps Leo Famulari
                   ` (2 preceding siblings ...)
  2016-04-16  3:02 ` [WIP 3/8] gnu: Add folks Leo Famulari
@ 2016-04-16  3:02 ` Leo Famulari
  2016-05-02  8:27   ` Ludovic Courtès
  2016-04-16  3:02 ` [WIP 5/8] gnu: libchamplain: Update to 0.12.13 Leo Famulari
                   ` (4 subsequent siblings)
  8 siblings, 1 reply; 28+ messages in thread
From: Leo Famulari @ 2016-04-16  3:02 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/gnome.scm (vala)[arguments]: Pass --enable-apigen
to #:configure-flags.
---
 gnu/packages/gnome.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index d1a5a46..c709297 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -1709,7 +1709,9 @@ passwords in the GNOME keyring.")
                        (setenv "CC" "gcc")
                        ;; For missing '/etc/machine-id'.
                        (setenv "DBUS_FATAL_WARNINGS" "0")
-                       #t)))))
+                       #t)))
+       ;; Build the Vala API generator
+       #:configure-flags '("--enable-vapigen")))
     (native-inputs
      `(("pkg-config" ,pkg-config)
        ("flex" ,flex)
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [WIP 5/8] gnu: libchamplain: Update to 0.12.13.
  2016-04-16  3:02 [WIP 0/8] GNOME Maps Leo Famulari
                   ` (3 preceding siblings ...)
  2016-04-16  3:02 ` [WIP 4/8] gnu: vala: Build Vala API (.vapi) generator Leo Famulari
@ 2016-04-16  3:02 ` Leo Famulari
  2016-05-02  8:28   ` Ludovic Courtès
  2016-04-16  3:02 ` [WIP 6/8] gnu: libchamplain: Build Vala bindings Leo Famulari
                   ` (3 subsequent siblings)
  8 siblings, 1 reply; 28+ messages in thread
From: Leo Famulari @ 2016-04-16  3:02 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/gnome.scm (libchamplain): Update to 0.12.13.
---
 gnu/packages/gnome.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index c709297..9c694e9 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -2885,7 +2885,7 @@ GL based interactive canvas library.")
 (define-public libchamplain
   (package
     (name "libchamplain")
-    (version "0.12.12")
+    (version "0.12.13")
     (source (origin
               (method url-fetch)
               (uri (string-append
@@ -2893,7 +2893,7 @@ GL based interactive canvas library.")
                     version ".tar.xz"))
               (sha256
                (base32
-                "19jlhbgfn9c9g40b3fa2x373s6rfcwx5i9lbpl3vl7d901r7kpp7"))))
+                "1arzd1hsgq14rbiwa1ih2g250x6ljna2s2kiqfrw155c612s9cxk"))))
     (build-system gnu-build-system)
     (native-inputs `(("pkg-config" ,pkg-config)))
     (propagated-inputs
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [WIP 6/8] gnu: libchamplain: Build Vala bindings.
  2016-04-16  3:02 [WIP 0/8] GNOME Maps Leo Famulari
                   ` (4 preceding siblings ...)
  2016-04-16  3:02 ` [WIP 5/8] gnu: libchamplain: Update to 0.12.13 Leo Famulari
@ 2016-04-16  3:02 ` Leo Famulari
  2016-05-02  8:29   ` Ludovic Courtès
  2016-04-16  3:02 ` [WIP 7/8] gnu: Add gfbgraph Leo Famulari
                   ` (2 subsequent siblings)
  8 siblings, 1 reply; 28+ messages in thread
From: Leo Famulari @ 2016-04-16  3:02 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/gnome.scm (libchamplain)[native-inputs]: Add
gobject-introspection, vala.
[arguments]: New field.
---
 gnu/packages/gnome.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 9c694e9..c213da0 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -2895,7 +2895,11 @@ GL based interactive canvas library.")
                (base32
                 "1arzd1hsgq14rbiwa1ih2g250x6ljna2s2kiqfrw155c612s9cxk"))))
     (build-system gnu-build-system)
-    (native-inputs `(("pkg-config" ,pkg-config)))
+    (arguments '(#:configure-flags '("--enable-vala")))
+    (native-inputs
+     `(("gobject-introspection" ,gobject-introspection)
+       ("pkg-config" ,pkg-config)
+       ("vala" ,vala)))
     (propagated-inputs
      `(("libsoup" ,libsoup)
        ("sqlite" ,sqlite)
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [WIP 7/8] gnu: Add gfbgraph.
  2016-04-16  3:02 [WIP 0/8] GNOME Maps Leo Famulari
                   ` (5 preceding siblings ...)
  2016-04-16  3:02 ` [WIP 6/8] gnu: libchamplain: Build Vala bindings Leo Famulari
@ 2016-04-16  3:02 ` Leo Famulari
  2016-04-16  9:32   ` Alex Kost
  2016-04-16  3:02 ` [WIP 8/8] gnu: Add gnome-maps Leo Famulari
  2016-05-02  8:37 ` [WIP 0/8] GNOME Maps Ludovic Courtès
  8 siblings, 1 reply; 28+ messages in thread
From: Leo Famulari @ 2016-04-16  3:02 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/gnome.scm (gfbgraph): New variable.
---
 gnu/packages/gnome.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index c213da0..fa21a38 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -5039,3 +5039,36 @@ create metacontacts.  It's written in Vala, which generates C code when
 compiled.")
     (home-page "https://wiki.gnome.org/Projects/Folks")
     (license license:lgpl2.1+)))
+
+(define-public gfbgraph
+  (package
+    (name "gfbgraph")
+    (version "0.2.3")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://gnome/sources/" name "/"
+                    (version-major+minor version) "/"
+                    name "-" version ".tar.xz"))
+              (sha256
+               (base32
+                "1dp0v8ia35fxs9yhnqpxj3ir5lh018jlbiwifjfn8ayy7h47j4fs" ; 0.2.3
+                ))))
+    (build-system glib-or-gtk-build-system)
+    (arguments
+     `(#:tests? #f ; http://www.linuxfromscratch.org/blfs/view/stable-systemd/gnome/gfbgraph.html
+       #:configure-flags '("--disable-gtk-doc" ; --enable-gtk-doc fails even with gtk-doc as native-input
+                           "--disable-static"
+                           "--enable-introspection")))
+    (native-inputs
+     `(("pkg-config" ,pkg-config) ; necessary?
+       ("gobject-introspection" ,gobject-introspection)))
+    (inputs
+     `(("json-glib" ,json-glib)
+       ("gnome-online-accounts" ,gnome-online-accounts)
+       ("rest" ,rest)))
+    (synopsis "GLib/GObject wrapper for the Facebook API")
+    (description "This library allows you to use the Facebook API from
+GLib/GObject code.")
+    (home-page "https://wiki.gnome.org/Projects/GFBGraph")
+    (license license:lgpl2.1+)))
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [WIP 8/8] gnu: Add gnome-maps.
  2016-04-16  3:02 [WIP 0/8] GNOME Maps Leo Famulari
                   ` (6 preceding siblings ...)
  2016-04-16  3:02 ` [WIP 7/8] gnu: Add gfbgraph Leo Famulari
@ 2016-04-16  3:02 ` Leo Famulari
  2016-05-02  8:37 ` [WIP 0/8] GNOME Maps Ludovic Courtès
  8 siblings, 0 replies; 28+ messages in thread
From: Leo Famulari @ 2016-04-16  3:02 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/maps.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add it.
---
 gnu-system.am         |  1 +
 gnu/packages/maps.scm | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)
 create mode 100644 gnu/packages/maps.scm

diff --git a/gnu-system.am b/gnu-system.am
index 0165519..a29d997 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -219,6 +219,7 @@ GNU_SYSTEM_MODULES =				\
   gnu/packages/man.scm				\
   gnu/packages/mail.scm				\
   gnu/packages/make-bootstrap.scm		\
+  gnu/packages/maps.scm				\
   gnu/packages/markdown.scm			\
   gnu/packages/mate.scm             \
   gnu/packages/maths.scm			\
diff --git a/gnu/packages/maps.scm b/gnu/packages/maps.scm
new file mode 100644
index 0000000..7c4667e
--- /dev/null
+++ b/gnu/packages/maps.scm
@@ -0,0 +1,62 @@
+(define-module (gnu packages maps)
+  #:use-module (guix build-system glib-or-gtk)
+  #:use-module (guix download)
+  #:use-module (guix licenses)
+  #:use-module (guix packages)
+  #:use-module (guix utils)
+  #:use-module (gnu packages glib) ; intltool
+  #:use-module (gnu packages gnome)
+  #:use-module (gnu packages gtk)
+  #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages webkit)
+  #:use-module (gnu packages xml))
+
+(define-public gnome-maps
+  (package
+    (name "gnome-maps")
+    (version "3.18.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://gnome/sources/" name "/"
+                                  (version-major+minor version) "/"
+                                  name "-" version ".tar.xz"))
+              (sha256
+               (base32
+                "0y4jmh5hwskh2mnladh9hxp9k8as7crm8wwwiifvxsjjj9az2gv9"))))
+    (build-system glib-or-gtk-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after
+          'install 'wrap
+          (lambda* (#:key outputs #:allow-other-keys)
+            (let ((out (assoc-ref outputs "out"))
+                  (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
+              (wrap-program (string-append out "/bin/gnome-maps")
+               `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))
+              #t))))))
+    (native-inputs
+     `(
+       ("gobject-introspection" ,gobject-introspection)
+       ("intltool" ,intltool)
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("folks" ,folks)
+       ("libchamplain" ,libchamplain)
+       ("libgee" ,libgee)
+       ("libxml2" ,libxml2)
+       ("geoclue" ,geoclue)
+       ("geocode-glib" ,geocode-glib)
+       ("gfbgraph" ,gfbgraph)
+       ("gjs" ,gjs)
+       ("glib" ,glib)
+       ("gnome-online-accounts" ,gnome-online-accounts) ; necessary?
+       ("rest" ,rest)
+       ("webkitgtk" ,webkitgtk))) ; necessary?
+    (propagated-inputs
+     `(("gtk+3" ,gtk+))) ; necessary?
+    (synopsis "Graphical map viewer")
+    (description "GNOME Maps is a graphical map viewer.  It uses map data from
+the OpenStreetMap project.")
+    (home-page "https://wiki.gnome.org/Apps/Maps")
+    (license gpl2+)))
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* Re: [WIP 7/8] gnu: Add gfbgraph.
  2016-04-16  3:02 ` [WIP 7/8] gnu: Add gfbgraph Leo Famulari
@ 2016-04-16  9:32   ` Alex Kost
  2016-04-16  9:37     ` Alex Kost
  0 siblings, 1 reply; 28+ messages in thread
From: Alex Kost @ 2016-04-16  9:32 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Leo Famulari (2016-04-16 06:02 +0300) wrote:

> * gnu/packages/gnome.scm (gfbgraph): New variable.
> ---
>  gnu/packages/gnome.scm | 33 +++++++++++++++++++++++++++++++++
>  1 file changed, 33 insertions(+)
>
>
> diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
> index c213da0..fa21a38 100644
> --- a/gnu/packages/gnome.scm
> +++ b/gnu/packages/gnome.scm
> @@ -5039,3 +5039,36 @@ create metacontacts.  It's written in Vala, which generates C code when
>  compiled.")
>      (home-page "https://wiki.gnome.org/Projects/Folks")
>      (license license:lgpl2.1+)))
> +
> +(define-public gfbgraph
> +  (package
> +    (name "gfbgraph")
> +    (version "0.2.3")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append
> +                    "mirror://gnome/sources/" name "/"
> +                    (version-major+minor version) "/"
> +                    name "-" version ".tar.xz"))
> +              (sha256
> +               (base32
> +                "1dp0v8ia35fxs9yhnqpxj3ir5lh018jlbiwifjfn8ayy7h47j4fs" ; 0.2.3
                                                                          ^^^^^^^
Leftover?

> +                ))))
> +    (build-system glib-or-gtk-build-system)
> +    (arguments
> +     `(#:tests? #f ; http://www.linuxfromscratch.org/blfs/view/stable-systemd/gnome/gfbgraph.html
> +       #:configure-flags '("--disable-gtk-doc" ; --enable-gtk-doc fails even with gtk-doc as native-input
> +                           "--disable-static"
> +                           "--enable-introspection")))
> +    (native-inputs
> +     `(("pkg-config" ,pkg-config) ; necessary?

Did you check if it's necessary? :-)

> +       ("gobject-introspection" ,gobject-introspection)))
> +    (inputs
> +     `(("json-glib" ,json-glib)
> +       ("gnome-online-accounts" ,gnome-online-accounts)
> +       ("rest" ,rest)))
> +    (synopsis "GLib/GObject wrapper for the Facebook API")
> +    (description "This library allows you to use the Facebook API from
> +GLib/GObject code.")
> +    (home-page "https://wiki.gnome.org/Projects/GFBGraph")
> +    (license license:lgpl2.1+)))

-- 
Alex

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [WIP 7/8] gnu: Add gfbgraph.
  2016-04-16  9:32   ` Alex Kost
@ 2016-04-16  9:37     ` Alex Kost
  2016-04-16 16:08       ` Leo Famulari
  0 siblings, 1 reply; 28+ messages in thread
From: Alex Kost @ 2016-04-16  9:37 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Alex Kost (2016-04-16 12:32 +0300) wrote:

> Leo Famulari (2016-04-16 06:02 +0300) wrote:
[...]
>> +              (sha256
>> +               (base32
>> +                "1dp0v8ia35fxs9yhnqpxj3ir5lh018jlbiwifjfn8ayy7h47j4fs" ; 0.2.3
>                                                                           ^^^^^^^
> Leftover?
>
>> +                ))))
>> +    (build-system glib-or-gtk-build-system)
>> +    (arguments
>> +     `(#:tests? #f ; http://www.linuxfromscratch.org/blfs/view/stable-systemd/gnome/gfbgraph.html
>> +       #:configure-flags '("--disable-gtk-doc" ; --enable-gtk-doc fails even with gtk-doc as native-input
>> +                           "--disable-static"
>> +                           "--enable-introspection")))
>> +    (native-inputs
>> +     `(("pkg-config" ,pkg-config) ; necessary?
>
> Did you check if it's necessary? :-)

Sorry, I didn't notice it is "WIP".  Please ignore that message.

-- 
Alex

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [WIP 7/8] gnu: Add gfbgraph.
  2016-04-16  9:37     ` Alex Kost
@ 2016-04-16 16:08       ` Leo Famulari
  0 siblings, 0 replies; 28+ messages in thread
From: Leo Famulari @ 2016-04-16 16:08 UTC (permalink / raw)
  To: Alex Kost; +Cc: guix-devel

On Sat, Apr 16, 2016 at 12:37:10PM +0300, Alex Kost wrote:
> Alex Kost (2016-04-16 12:32 +0300) wrote:
> 
> > Leo Famulari (2016-04-16 06:02 +0300) wrote:
> [...]
> >> +              (sha256
> >> +               (base32
> >> +                "1dp0v8ia35fxs9yhnqpxj3ir5lh018jlbiwifjfn8ayy7h47j4fs" ; 0.2.3
> >                                                                           ^^^^^^^
> > Leftover?
> >
> >> +                ))))
> >> +    (build-system glib-or-gtk-build-system)
> >> +    (arguments
> >> +     `(#:tests? #f ; http://www.linuxfromscratch.org/blfs/view/stable-systemd/gnome/gfbgraph.html
> >> +       #:configure-flags '("--disable-gtk-doc" ; --enable-gtk-doc fails even with gtk-doc as native-input
> >> +                           "--disable-static"
> >> +                           "--enable-introspection")))
> >> +    (native-inputs
> >> +     `(("pkg-config" ,pkg-config) ; necessary?
> >
> > Did you check if it's necessary? :-)
> 
> Sorry, I didn't notice it is "WIP".  Please ignore that message.

I don't like to send WIP patches to the list, but I am really stuck.
Thanks for reading :)

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [WIP 3/8] gnu: Add folks.
  2016-04-16  3:02 ` [WIP 3/8] gnu: Add folks Leo Famulari
@ 2016-05-02  8:26   ` Ludovic Courtès
  0 siblings, 0 replies; 28+ messages in thread
From: Ludovic Courtès @ 2016-05-02  8:26 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Leo Famulari <leo@famulari.name> skribis:

> * gnu/packages/gnome.scm (folks): New variable.

Please make sure to check whether the result includes auto-generated
HTML docs, which usually takes up quite some space, and move it to a
“doc” output if it does.

Otherwise LGTM, thank you!

Ludo’.

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [WIP 4/8] gnu: vala: Build Vala API (.vapi) generator.
  2016-04-16  3:02 ` [WIP 4/8] gnu: vala: Build Vala API (.vapi) generator Leo Famulari
@ 2016-05-02  8:27   ` Ludovic Courtès
  0 siblings, 0 replies; 28+ messages in thread
From: Ludovic Courtès @ 2016-05-02  8:27 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Leo Famulari <leo@famulari.name> skribis:

> * gnu/packages/gnome.scm (vala)[arguments]: Pass --enable-apigen
> to #:configure-flags.

LGTM; I think this could go right now in ‘gnome-updates’.  :-)

Ludo’.

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [WIP 5/8] gnu: libchamplain: Update to 0.12.13.
  2016-04-16  3:02 ` [WIP 5/8] gnu: libchamplain: Update to 0.12.13 Leo Famulari
@ 2016-05-02  8:28   ` Ludovic Courtès
  0 siblings, 0 replies; 28+ messages in thread
From: Ludovic Courtès @ 2016-05-02  8:28 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Leo Famulari <leo@famulari.name> skribis:

> * gnu/packages/gnome.scm (libchamplain): Update to 0.12.13.

OK!

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [WIP 6/8] gnu: libchamplain: Build Vala bindings.
  2016-04-16  3:02 ` [WIP 6/8] gnu: libchamplain: Build Vala bindings Leo Famulari
@ 2016-05-02  8:29   ` Ludovic Courtès
  0 siblings, 0 replies; 28+ messages in thread
From: Ludovic Courtès @ 2016-05-02  8:29 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Leo Famulari <leo@famulari.name> skribis:

> * gnu/packages/gnome.scm (libchamplain)[native-inputs]: Add
> gobject-introspection, vala.
> [arguments]: New field.

Does it increase the closure size?  If not, LGTM.

Ludo’.

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [WIP 2/8] gnu: evolution-data-server: Build Vala bindings.
  2016-04-16  3:02 ` [WIP 2/8] gnu: evolution-data-server: Build Vala bindings Leo Famulari
@ 2016-05-02  8:29   ` Ludovic Courtès
  0 siblings, 0 replies; 28+ messages in thread
From: Ludovic Courtès @ 2016-05-02  8:29 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Leo Famulari <leo@famulari.name> skribis:

> * gnu/packages/gnome.scm (evolution-data-server)[arguments]: Add
> --enable-vala-bindings to #:configure-flags.
> [native-inputs]: Add vala.

LGTM.

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [WIP 1/8] gnu: telepathy-glib: Enable vala bindings.
  2016-04-16  3:02 ` [WIP 1/8] gnu: telepathy-glib: Enable vala bindings Leo Famulari
@ 2016-05-02  8:30   ` Ludovic Courtès
  0 siblings, 0 replies; 28+ messages in thread
From: Ludovic Courtès @ 2016-05-02  8:30 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Leo Famulari <leo@famulari.name> skribis:

> * gnu/packages/glib.scm (telepathy-glib)[arguments]: Add --enable-vala-bindings
> to #:configure-flags.
> [native-inputs]: Add vala.

If it does not increase the closure size, fine with me!

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [WIP 0/8] GNOME Maps
  2016-04-16  3:02 [WIP 0/8] GNOME Maps Leo Famulari
                   ` (7 preceding siblings ...)
  2016-04-16  3:02 ` [WIP 8/8] gnu: Add gnome-maps Leo Famulari
@ 2016-05-02  8:37 ` Ludovic Courtès
  2016-05-02 19:02   ` Leo Famulari
  2016-06-14  7:22   ` Leo Famulari
  8 siblings, 2 replies; 28+ messages in thread
From: Ludovic Courtès @ 2016-05-02  8:37 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Leo Famulari <leo@famulari.name> skribis:

> $ gnome-maps
> ** (org.gnome.Maps:14112): WARNING **: Failed to load shared library 'libgoa-1.0.so.0' referenced by the typelib: libgoa-1.0.so.0: cannot open shared object file: No such file or directory

It says “warning”, but that’s probably a significant issue since libgoa
is the “GNOME Online Accounts” library.  I suppose this can be fixed by
adding ‘gnome-online-accounts’ to the LD_LIBRARY_PATH.  Could you try
this?

(<https://wiki.gnome.org/Apps/Maps> says it uses OSM, so I hope it
doesn’t encourage the use of Google’s service, which is what GOA would
be about, I guess.)

HTH,
Ludo’.

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [WIP 0/8] GNOME Maps
  2016-05-02  8:37 ` [WIP 0/8] GNOME Maps Ludovic Courtès
@ 2016-05-02 19:02   ` Leo Famulari
  2016-05-03 11:39     ` Ludovic Courtès
  2016-06-14  7:22   ` Leo Famulari
  1 sibling, 1 reply; 28+ messages in thread
From: Leo Famulari @ 2016-05-02 19:02 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

On Mon, May 02, 2016 at 10:37:06AM +0200, Ludovic Courtès wrote:
> Leo Famulari <leo@famulari.name> skribis:
> 
> > $ gnome-maps
> > ** (org.gnome.Maps:14112): WARNING **: Failed to load shared library 'libgoa-1.0.so.0' referenced by the typelib: libgoa-1.0.so.0: cannot open shared object file: No such file or directory
> 
> It says “warning”, but that’s probably a significant issue since libgoa
> is the “GNOME Online Accounts” library.  I suppose this can be fixed by
> adding ‘gnome-online-accounts’ to the LD_LIBRARY_PATH.  Could you try
> this?

I'll try it!

> (<https://wiki.gnome.org/Apps/Maps> says it uses OSM, so I hope it
> doesn’t encourage the use of Google’s service, which is what GOA would
> be about, I guess.)

My motivation for packaging this program is that it is supposed to
support editing of OSM, which would require an OSM account. I assume
that is at least partially why GOA is required.

However, this program also depends on gfbgraph, which is a wrapper to
the Facebook API. I'm not sure what that's about :(

https://wiki.gnome.org/Projects/GFBGraph

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [WIP 0/8] GNOME Maps
  2016-05-02 19:02   ` Leo Famulari
@ 2016-05-03 11:39     ` Ludovic Courtès
  0 siblings, 0 replies; 28+ messages in thread
From: Ludovic Courtès @ 2016-05-03 11:39 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Leo Famulari <leo@famulari.name> skribis:

> My motivation for packaging this program is that it is supposed to
> support editing of OSM, which would require an OSM account. I assume
> that is at least partially why GOA is required.

Indeed, makes sense.

> However, this program also depends on gfbgraph, which is a wrapper to
> the Facebook API. I'm not sure what that's about :(
>
> https://wiki.gnome.org/Projects/GFBGraph

Blech.  Concerned users can easily prevent it from accessing Facebook,
for instance via the /etc/hosts trick:

  https://www.gnu.org/software/guix/manual/html_node/Networking-Services.html#index-_0025facebook_002dhost_002daliases

Highly recommended.  :-)

Ludo’.

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [WIP 0/8] GNOME Maps
  2016-05-02  8:37 ` [WIP 0/8] GNOME Maps Ludovic Courtès
  2016-05-02 19:02   ` Leo Famulari
@ 2016-06-14  7:22   ` Leo Famulari
  2016-06-14 12:17     ` Ludovic Courtès
  1 sibling, 1 reply; 28+ messages in thread
From: Leo Famulari @ 2016-06-14  7:22 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1292 bytes --]

On Mon, May 02, 2016 at 10:37:06AM +0200, Ludovic Courtès wrote:
> Leo Famulari <leo@famulari.name> skribis:
> 
> > $ gnome-maps
> > ** (org.gnome.Maps:14112): WARNING **: Failed to load shared library 'libgoa-1.0.so.0' referenced by the typelib: libgoa-1.0.so.0: cannot open shared object file: No such file or directory
> 
> It says “warning”, but that’s probably a significant issue since libgoa
> is the “GNOME Online Accounts” library.  I suppose this can be fixed by
> adding ‘gnome-online-accounts’ to the LD_LIBRARY_PATH.  Could you try
> this?

It works for version 3.18.2! Attached.

But now 3.20.1 is out, and I want to use that version. It fails like
this:

---
$ ./pre-inst-env guix environment --ad-hoc gnome-maps -- gnome-maps
(org.gnome.Maps:30607): Gjs-WARNING **: JS ERROR: Error: Requiring Geoclue, version none: Typelib file for namespace 'Geoclue' (any version) not found
@resource:///org/gnome/Maps/js/geoclue.js:23
@resource:///org/gnome/Maps/js/application.js:34
@resource:///org/gnome/Maps/js/main.js:43
start@resource:///org/gnome/gjs/modules/package.js:176
@/gnu/store/9dsfcqfnpjg81mbibxi5qvnbcz29srzy-gnome-maps-3.20.1/share/gnome-maps/org.gnome.Maps:5

JS_EvaluateScript() failed
---

So, I'm building geoclue with gobject-introspection overnight.

[-- Attachment #2: 0001-gnu-Add-gnome-maps.patch --]
[-- Type: text/x-diff, Size: 3085 bytes --]

From 95bc258f419673e1e311429383a08d850155fac9 Mon Sep 17 00:00:00 2001
From: Leo Famulari <leo@famulari.name>
Date: Sat, 5 Mar 2016 02:33:09 -0500
Subject: [PATCH] gnu: Add gnome-maps.

* gnu/packages/maps.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add it.
---
 gnu/packages/maps.scm | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)
 create mode 100644 gnu/packages/maps.scm

diff --git a/gnu/packages/maps.scm b/gnu/packages/maps.scm
new file mode 100644
index 0000000..057f81a
--- /dev/null
+++ b/gnu/packages/maps.scm
@@ -0,0 +1,65 @@
+(define-module (gnu packages maps)
+  #:use-module (guix build-system glib-or-gtk)
+  #:use-module (guix download)
+  #:use-module (guix licenses)
+  #:use-module (guix packages)
+  #:use-module (guix utils)
+  #:use-module (gnu packages glib) ; intltool
+  #:use-module (gnu packages gnome)
+  #:use-module (gnu packages gtk)
+  #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages webkit)
+  #:use-module (gnu packages xml))
+
+(define-public gnome-maps
+  (package
+    (name "gnome-maps")
+    (version "3.18.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://gnome/sources/" name "/"
+                                  (version-major+minor version) "/"
+                                  name "-" version ".tar.xz"))
+              (sha256
+               (base32
+                "0y4jmh5hwskh2mnladh9hxp9k8as7crm8wwwiifvxsjjj9az2gv9"))))
+    (build-system glib-or-gtk-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after
+          'install 'wrap
+          (lambda* (#:key inputs outputs #:allow-other-keys)
+            (let ((out (assoc-ref outputs "out"))
+                  (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
+                  (goa-path (string-append
+                              (assoc-ref inputs "gnome-online-accounts")
+                              "/lib")))
+              (wrap-program (string-append out "/bin/gnome-maps")
+               `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
+               `("LD_LIBRARY_PATH" ":" prefix (,goa-path)))
+              #t))))))
+    (native-inputs
+     `(("gobject-introspection" ,gobject-introspection)
+       ("intltool" ,intltool)
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("folks" ,folks)
+       ("libchamplain" ,libchamplain)
+       ("libgee" ,libgee)
+       ("libxml2" ,libxml2)
+       ("geoclue" ,geoclue)
+       ("geocode-glib" ,geocode-glib)
+       ("gfbgraph" ,gfbgraph)
+       ("gjs" ,gjs)
+       ("glib" ,glib)
+       ("gnome-online-accounts" ,gnome-online-accounts) ; necessary?
+       ("rest" ,rest)
+       ("webkitgtk" ,webkitgtk))) ; necessary?
+    (propagated-inputs
+     `(("gtk+3" ,gtk+))) ; necessary?
+    (synopsis "Graphical map viewer")
+    (description "GNOME Maps is a graphical map viewer.  It uses map data from
+the OpenStreetMap project.")
+    (home-page "https://wiki.gnome.org/Apps/Maps")
+    (license gpl2+)))
-- 
2.8.4


^ permalink raw reply related	[flat|nested] 28+ messages in thread

* Re: [WIP 0/8] GNOME Maps
  2016-06-14  7:22   ` Leo Famulari
@ 2016-06-14 12:17     ` Ludovic Courtès
  2016-06-14 14:21       ` Leo Famulari
  2016-06-14 20:21       ` Leo Famulari
  0 siblings, 2 replies; 28+ messages in thread
From: Ludovic Courtès @ 2016-06-14 12:17 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Leo Famulari <leo@famulari.name> skribis:

> On Mon, May 02, 2016 at 10:37:06AM +0200, Ludovic Courtès wrote:
>> Leo Famulari <leo@famulari.name> skribis:
>> 
>> > $ gnome-maps
>> > ** (org.gnome.Maps:14112): WARNING **: Failed to load shared library 'libgoa-1.0.so.0' referenced by the typelib: libgoa-1.0.so.0: cannot open shared object file: No such file or directory
>> 
>> It says “warning”, but that’s probably a significant issue since libgoa
>> is the “GNOME Online Accounts” library.  I suppose this can be fixed by
>> adding ‘gnome-online-accounts’ to the LD_LIBRARY_PATH.  Could you try
>> this?
>
> It works for version 3.18.2! Attached.

Cool, let’s commit this one as a starting point!

> But now 3.20.1 is out, and I want to use that version. It fails like
> this:
>
> ---
> $ ./pre-inst-env guix environment --ad-hoc gnome-maps -- gnome-maps
> (org.gnome.Maps:30607): Gjs-WARNING **: JS ERROR: Error: Requiring Geoclue, version none: Typelib file for namespace 'Geoclue' (any version) not found
> @resource:///org/gnome/Maps/js/geoclue.js:23
> @resource:///org/gnome/Maps/js/application.js:34
> @resource:///org/gnome/Maps/js/main.js:43
> start@resource:///org/gnome/gjs/modules/package.js:176
> @/gnu/store/9dsfcqfnpjg81mbibxi5qvnbcz29srzy-gnome-maps-3.20.1/share/gnome-maps/org.gnome.Maps:5
>
> JS_EvaluateScript() failed
> ---
>
> So, I'm building geoclue with gobject-introspection overnight.

Did we eventually figure out where/how this thing looks for typelib
file/gobject-introspection data?  It seems to be a “simple matter” of
telling it where to look for whatever it’s looking for.  :-)

> From 95bc258f419673e1e311429383a08d850155fac9 Mon Sep 17 00:00:00 2001
> From: Leo Famulari <leo@famulari.name>
> Date: Sat, 5 Mar 2016 02:33:09 -0500
> Subject: [PATCH] gnu: Add gnome-maps.
>
> * gnu/packages/maps.scm: New file.
> * gnu-system.am (GNU_SYSTEM_MODULES): Add it.

Make sure to add a license header, but otherwise LGTM, thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [WIP 0/8] GNOME Maps
  2016-06-14 12:17     ` Ludovic Courtès
@ 2016-06-14 14:21       ` Leo Famulari
  2016-06-14 20:21       ` Leo Famulari
  1 sibling, 0 replies; 28+ messages in thread
From: Leo Famulari @ 2016-06-14 14:21 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

On Tue, Jun 14, 2016 at 02:17:52PM +0200, Ludovic Courtès wrote:
> Leo Famulari <leo@famulari.name> skribis:
> > It works for version 3.18.2! Attached.
> 
> Cool, let’s commit this one as a starting point!

Soon :) I need to clean it up and re-review the earlier part of the
patch series.

> > But now 3.20.1 is out, and I want to use that version. It fails like
> > this:
> >
> > ---
> > $ ./pre-inst-env guix environment --ad-hoc gnome-maps -- gnome-maps
> > (org.gnome.Maps:30607): Gjs-WARNING **: JS ERROR: Error: Requiring Geoclue, version none: Typelib file for namespace 'Geoclue' (any version) not found
> > @resource:///org/gnome/Maps/js/geoclue.js:23
> > @resource:///org/gnome/Maps/js/application.js:34
> > @resource:///org/gnome/Maps/js/main.js:43
> > start@resource:///org/gnome/gjs/modules/package.js:176
> > @/gnu/store/9dsfcqfnpjg81mbibxi5qvnbcz29srzy-gnome-maps-3.20.1/share/gnome-maps/org.gnome.Maps:5
> >
> > JS_EvaluateScript() failed
> > ---
> >
> > So, I'm building geoclue with gobject-introspection overnight.

Doing this worked. But of course there are more problems :)

> Did we eventually figure out where/how this thing looks for typelib
> file/gobject-introspection data?  It seems to be a “simple matter” of
> telling it where to look for whatever it’s looking for.  :-)

I'll contact the upstream developers for advice.

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [WIP 0/8] GNOME Maps
  2016-06-14 12:17     ` Ludovic Courtès
  2016-06-14 14:21       ` Leo Famulari
@ 2016-06-14 20:21       ` Leo Famulari
  2016-06-15 12:25         ` Ludovic Courtès
  1 sibling, 1 reply; 28+ messages in thread
From: Leo Famulari @ 2016-06-14 20:21 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 752 bytes --]

On Tue, Jun 14, 2016 at 02:17:52PM +0200, Ludovic Courtès wrote:
> Leo Famulari <leo@famulari.name> skribis:
> > It works for version 3.18.2! Attached.
> 
> Cool, let’s commit this one as a starting point!

I found it only works from within GNOME. In i3, it fails like this:
http://paste.lisp.org/display/318375

It never exits. It just hangs open after printing those warnings and
errors.

I don't know if that's acceptable or not.

> Did we eventually figure out where/how this thing looks for typelib
> file/gobject-introspection data?  It seems to be a “simple matter” of
> telling it where to look for whatever it’s looking for.  :-)

Working on it...

> Make sure to add a license header, but otherwise LGTM, thanks!

Revision attached!

[-- Attachment #2: 0001-gnu-Add-gnome-maps.patch --]
[-- Type: text/x-diff, Size: 4342 bytes --]

From 87f3c4b12c75287fde5ff96167c71501676c02f7 Mon Sep 17 00:00:00 2001
From: Leo Famulari <leo@famulari.name>
Date: Sat, 5 Mar 2016 02:33:09 -0500
Subject: [PATCH] gnu: Add gnome-maps.

* gnu/packages/maps.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add it.
---
 gnu/packages/maps.scm | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 91 insertions(+)
 create mode 100644 gnu/packages/maps.scm

diff --git a/gnu/packages/maps.scm b/gnu/packages/maps.scm
new file mode 100644
index 0000000..89962ce
--- /dev/null
+++ b/gnu/packages/maps.scm
@@ -0,0 +1,91 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (gnu packages maps)
+  #:use-module (guix build-system glib-or-gtk)
+  #:use-module (guix download)
+  #:use-module (guix licenses)
+  #:use-module (guix packages)
+  #:use-module (guix utils)
+  #:use-module (gnu packages glib) ; intltool
+  #:use-module (gnu packages gnome)
+  #:use-module (gnu packages gtk)
+  #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages webkit)
+  #:use-module (gnu packages xml))
+
+(define-public gnome-maps
+  (package
+    (name "gnome-maps")
+    (version "3.18.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://gnome/sources/" name "/"
+                                  (version-major+minor version) "/"
+                                  name "-" version ".tar.xz"))
+              (sha256
+               (base32
+                "0y4jmh5hwskh2mnladh9hxp9k8as7crm8wwwiifvxsjjj9az2gv9"))))
+    (build-system glib-or-gtk-build-system)
+    (arguments
+     `(#:configure-flags ; Ensure that geoclue is referred to by output.
+       (list (string-append "LDFLAGS=-L"
+                            (assoc-ref %build-inputs "geoclue") "/lib")
+             (string-append "CFLAGS=-I"
+                            (assoc-ref %build-inputs "geoclue") "/include"))
+       #:phases
+       (modify-phases %standard-phases
+         (add-after
+          'install 'wrap
+          (lambda* (#:key inputs outputs #:allow-other-keys)
+            (let ((out (assoc-ref outputs "out"))
+                  (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
+                  (goa-path (string-append
+                              (assoc-ref inputs "gnome-online-accounts")
+                              "/lib")))
+              (wrap-program (string-append out "/bin/gnome-maps")
+               `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
+
+               ;; There seems to be no way to embed the path of libgoa-1.0.so.0.
+               `("LD_LIBRARY_PATH" ":" prefix (,goa-path)))
+              #t))))))
+    (native-inputs
+     `(("gobject-introspection" ,gobject-introspection)
+       ("intltool" ,intltool)
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("folks" ,folks)
+       ("libchamplain" ,libchamplain)
+       ("libgee" ,libgee)
+       ("libxml2" ,libxml2)
+       ("geoclue" ,geoclue)
+       ("geocode-glib" ,geocode-glib)
+       ("gfbgraph" ,gfbgraph)
+       ("gjs" ,gjs)
+       ("glib" ,glib)
+       ("gnome-online-accounts" ,gnome-online-accounts)
+       ("rest" ,rest)
+       ("webkitgtk" ,webkitgtk)))
+    (propagated-inputs
+     `(("gtk+3" ,gtk+)))
+    (synopsis "Graphical map viewer and wayfinding program")
+    (description "GNOME Maps is a graphical map viewer.  It uses map data from
+the OpenStreetMap project. It can provide directions for walking, bicycling, and
+driving.")
+    (home-page "https://wiki.gnome.org/Apps/Maps")
+    (license gpl2+)))
-- 
2.8.4


^ permalink raw reply related	[flat|nested] 28+ messages in thread

* Re: [WIP 0/8] GNOME Maps
  2016-06-14 20:21       ` Leo Famulari
@ 2016-06-15 12:25         ` Ludovic Courtès
  2016-06-15 17:20           ` Leo Famulari
  0 siblings, 1 reply; 28+ messages in thread
From: Ludovic Courtès @ 2016-06-15 12:25 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Leo Famulari <leo@famulari.name> skribis:

> On Tue, Jun 14, 2016 at 02:17:52PM +0200, Ludovic Courtès wrote:
>> Leo Famulari <leo@famulari.name> skribis:
>> > It works for version 3.18.2! Attached.
>> 
>> Cool, let’s commit this one as a starting point!
>
> I found it only works from within GNOME. In i3, it fails like this:
> http://paste.lisp.org/display/318375

Which of these warnings show up when running it on GNOME?  It’s hard to
tell which one is critical.

> It never exits. It just hangs open after printing those warnings and
> errors.
>
> I don't know if that's acceptable or not.

That should be addressed at some point.  Now, you could always add a
FIXME and commit it this way; it’s already useful.

>> Did we eventually figure out where/how this thing looks for typelib
>> file/gobject-introspection data?  It seems to be a “simple matter” of
>> telling it where to look for whatever it’s looking for.  :-)
>
> Working on it...
>
>> Make sure to add a license header, but otherwise LGTM, thanks!
>
> Revision attached!

> From 87f3c4b12c75287fde5ff96167c71501676c02f7 Mon Sep 17 00:00:00 2001
> From: Leo Famulari <leo@famulari.name>
> Date: Sat, 5 Mar 2016 02:33:09 -0500
> Subject: [PATCH] gnu: Add gnome-maps.
> 
> * gnu/packages/maps.scm: New file.
> * gnu-system.am (GNU_SYSTEM_MODULES): Add it.

Please add it to gnu/local.mk.

> +    (description "GNOME Maps is a graphical map viewer.  It uses map data from
> +the OpenStreetMap project. It can provide directions for walking, bicycling, and
                            ^^
Two spaces.  :-)

Thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [WIP 0/8] GNOME Maps
  2016-06-15 12:25         ` Ludovic Courtès
@ 2016-06-15 17:20           ` Leo Famulari
  2016-06-16 10:07             ` Andy Wingo
  0 siblings, 1 reply; 28+ messages in thread
From: Leo Famulari @ 2016-06-15 17:20 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

On Wed, Jun 15, 2016 at 02:25:15PM +0200, Ludovic Courtès wrote:
> Leo Famulari <leo@famulari.name> skribis:
> > I found it only works from within GNOME. In i3, it fails like this:
> > http://paste.lisp.org/display/318375
> 
> Which of these warnings show up when running it on GNOME?  It’s hard to
> tell which one is critical.

I learned the argument --g-fatal-warnings:

---
$ ./pre-inst-env guix environment --ad-hoc gnome-maps -- gnome-maps --g-fatal-warnings
(org.gnome.Maps:8568): GLib-GIO-ERROR **: Settings schema 'org.gnome.desktop.interface' is not installed
---

Apparently that's the first level of the problem. If I add
gsettings-desktop-schemas as an input, gnome-maps then fails when it 
doesn't find libgweather. Adding that, it fails with these warnings
(wrapped):

---
GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings
will not be saved or shared with other applications.

(org.gnome.Maps:8723): Gtk-WARNING **: Theme parsing error:
application.css:13:33: The style property GtkWidget:focus-line-width is
deprecated and shouldn't be used anymore. It will be removed in a future
version
---

And, it also hangs while opening on GNOME with those packages added.

> > * gnu/packages/maps.scm: New file.
> > * gnu-system.am (GNU_SYSTEM_MODULES): Add it.
> 
> Please add it to gnu/local.mk.

Right :p

I also decided to call the module (gnu packages geo), since that is more
general.

Applied as 03c1662e3!

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [WIP 0/8] GNOME Maps
  2016-06-15 17:20           ` Leo Famulari
@ 2016-06-16 10:07             ` Andy Wingo
  0 siblings, 0 replies; 28+ messages in thread
From: Andy Wingo @ 2016-06-16 10:07 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

On Wed 15 Jun 2016 19:20, Leo Famulari <leo@famulari.name> writes:

> GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings
> will not be saved or shared with other applications.

I think this means you have to add dconf as an input, IIRC?

A

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2016-06-16 10:08 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-16  3:02 [WIP 0/8] GNOME Maps Leo Famulari
2016-04-16  3:02 ` [WIP 1/8] gnu: telepathy-glib: Enable vala bindings Leo Famulari
2016-05-02  8:30   ` Ludovic Courtès
2016-04-16  3:02 ` [WIP 2/8] gnu: evolution-data-server: Build Vala bindings Leo Famulari
2016-05-02  8:29   ` Ludovic Courtès
2016-04-16  3:02 ` [WIP 3/8] gnu: Add folks Leo Famulari
2016-05-02  8:26   ` Ludovic Courtès
2016-04-16  3:02 ` [WIP 4/8] gnu: vala: Build Vala API (.vapi) generator Leo Famulari
2016-05-02  8:27   ` Ludovic Courtès
2016-04-16  3:02 ` [WIP 5/8] gnu: libchamplain: Update to 0.12.13 Leo Famulari
2016-05-02  8:28   ` Ludovic Courtès
2016-04-16  3:02 ` [WIP 6/8] gnu: libchamplain: Build Vala bindings Leo Famulari
2016-05-02  8:29   ` Ludovic Courtès
2016-04-16  3:02 ` [WIP 7/8] gnu: Add gfbgraph Leo Famulari
2016-04-16  9:32   ` Alex Kost
2016-04-16  9:37     ` Alex Kost
2016-04-16 16:08       ` Leo Famulari
2016-04-16  3:02 ` [WIP 8/8] gnu: Add gnome-maps Leo Famulari
2016-05-02  8:37 ` [WIP 0/8] GNOME Maps Ludovic Courtès
2016-05-02 19:02   ` Leo Famulari
2016-05-03 11:39     ` Ludovic Courtès
2016-06-14  7:22   ` Leo Famulari
2016-06-14 12:17     ` Ludovic Courtès
2016-06-14 14:21       ` Leo Famulari
2016-06-14 20:21       ` Leo Famulari
2016-06-15 12:25         ` Ludovic Courtès
2016-06-15 17:20           ` Leo Famulari
2016-06-16 10:07             ` Andy Wingo

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.