unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [WIP 0/8] GNOME Maps
Date: Tue, 14 Jun 2016 03:22:36 -0400	[thread overview]
Message-ID: <20160614072236.GA18937@jasmine> (raw)
In-Reply-To: <87oa8oc0ul.fsf@gnu.org>

[-- 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


  parent reply	other threads:[~2016-06-14  7:22 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160614072236.GA18937@jasmine \
    --to=leo@famulari.name \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).