GNU bug report logs - #42582
[PATCH] gnu: nomad: Update to 0.2.0-alpha.

Previous Next

Package: guix-patches;

Reported by: Mike Rosset <mike.rosset <at> gmail.com>

Date: Tue, 28 Jul 2020 14:28:02 UTC

Severity: normal

Tags: patch

Done: Mathieu Othacehe <othacehe <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42582 in the body.
You can then email your comments to 42582 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#42582; Package guix-patches. (Tue, 28 Jul 2020 14:28:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mike Rosset <mike.rosset <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 28 Jul 2020 14:28:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mike Rosset <mike.rosset <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: Mike Rosset <mike.rosset <at> gmail.com>
Subject: [PATCH] gnu: nomad: Update to 0.2.0-alpha.
Date: Tue, 28 Jul 2020 07:27:22 -0700
* gnu/packages/guile-xyz.scm (nomad): Update to 0.2.0-alpha.

This is a significant update to Nomad. This removes the majority of C code and
replaces it with gobject introspection using g-golf.

In the process the nomad package expression has changed significantly.
---
 gnu/packages/guile-xyz.scm | 210 ++++++++++++++++++++-----------------
 1 file changed, 115 insertions(+), 95 deletions(-)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 5f7a93b8c6..1cf2327de6 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -66,6 +66,7 @@
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages gnupg)
   #:use-module (gnu packages gperf)
+  #:use-module (gnu packages gstreamer)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages guile)
   #:use-module (gnu packages hurd)
@@ -2952,101 +2953,120 @@ perform geometrical transforms on JPEG images.")
       (license license:gpl3+))))
 
 (define-public nomad
-  (package
-    (name "nomad")
-    (version "0.1.2-alpha")
-    (source (origin
-              (method git-fetch)
-              (uri (git-reference
-                    (url "https://git.savannah.gnu.org/git/nomad.git")
-                    (commit version)))
-              (file-name (git-file-name name version))
-              (sha256
-               (base32
-                "1dnkr1hmvfkwgxd75dcf93pg39yfgawvdpzdhv991yhghv0qxc9h"))))
-    (build-system gnu-build-system)
-    (native-inputs
-     `(("autoconf" ,autoconf)
-       ("automake" ,automake)
-       ("bash" ,bash)
-       ("pkg-config" ,pkg-config)
-       ("libtool" ,libtool)
-       ("guile" ,guile-2.2)
-       ("glib:bin" ,glib "bin")
-       ("texinfo" ,texinfo)
-       ("perl" ,perl)))
-    (inputs
-     `(("guile" ,guile-2.2)
-       ("guile-lib" ,guile2.2-lib)
-       ("guile-gcrypt" ,guile2.2-gcrypt)
-       ("guile-readline" ,guile2.2-readline)
-       ("gnutls" ,gnutls)
-       ("shroud" ,shroud)
-       ("emacsy" ,emacsy-minimal)
-       ("glib" ,glib)
-       ("dbus-glib" ,dbus-glib)
-       ("gtk+" ,gtk+)
-       ("gtksourceview" ,gtksourceview)
-       ("webkitgtk" ,webkitgtk)
-       ("xorg-server" ,xorg-server)))
-    (propagated-inputs
-     `(("glib" ,glib)
-       ("glib-networking" ,glib-networking)
-       ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
-    (arguments
-     `(#:modules ((guix build gnu-build-system)
-                  (guix build utils)
-                  (ice-9 popen)
-                  (ice-9 rdelim)
-                  (srfi srfi-26))
-       #:configure-flags
-       ;; Ignore ‘error: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead.’
-       (list "CFLAGS=-Wno-error")
-       #:phases
-       (modify-phases %standard-phases
-         (add-before 'check 'start-xorg-server
-           (lambda* (#:key inputs #:allow-other-keys)
-             ;; The test suite requires a running X server.
-             (system (format #f "~a/bin/Xvfb :1 &"
-                             (assoc-ref inputs "xorg-server")))
-             (setenv "DISPLAY" ":1")
-             #t))
-         (add-after 'install 'wrap-binaries
-           (lambda* (#:key inputs outputs #:allow-other-keys)
-             (let* ((out (assoc-ref outputs "out"))
-                    (gio-deps (map (cut assoc-ref inputs <>) '("glib-networking"
-                                                               "glib")))
-                    (gio-mod-path (map (cut string-append <> "/lib/gio/modules")
-                                       gio-deps))
-                    (effective (read-line (open-pipe*
-                                           OPEN_READ
-                                           "guile" "-c"
-                                           "(display (effective-version))")))
-                    (deps (map (cut assoc-ref inputs <>)
-                               '("emacsy" "guile-lib" "guile-readline"
-                                 "shroud")))
-                    (scm-path (map (cut string-append <>
-                                        "/share/guile/site/" effective)
-                                   `(,out ,@deps)))
-                    (go-path (map (cut string-append <>
-                                       "/lib/guile/" effective "/site-ccache")
-                                  `(,out ,@deps)))
-                    (progs (map (cut string-append out "/bin/" <>)
-                                '("nomad"))))
-               (map (cut wrap-program <>
-                         `("GIO_EXTRA_MODULES" ":" prefix ,gio-mod-path)
-                         `("GUILE_LOAD_PATH" ":" prefix ,scm-path)
-                         `("GUILE_LOAD_COMPILED_PATH" ":"
-                           prefix ,go-path))
-                    progs)
-               #t))))))
-    (home-page "https://savannah.nongnu.org/projects/nomad/")
-    (synopsis "Extensible Web Browser in Guile Scheme")
-    (description "Nomad is an Emacs-like Web Browser built using Webkitgtk and
-Emacsy.  It has a small C layer and most browser features are fully
-programmable in Guile.  It has hooks, keymaps, and self documentation
-features.")
-    (license license:gpl3+)))
+  (let ((commit "0.2.0-alpha")
+        (hash   (base32 "1z2z5x37v1qrk2vb8qlz2yj030iirzzd0maa9fjxzlqkrg6krbaj")))
+    (package
+      (name "nomad")
+      (version commit)
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://git.savannah.gnu.org/git/nomad.git")
+                      (commit version)))
+                (file-name (git-file-name name version))
+                (sha256 hash)))
+      (build-system gnu-build-system)
+      (native-inputs
+       `(("autoconf" ,autoconf)
+         ("automake" ,automake)
+         ("bash" ,bash)
+         ("pkg-config" ,pkg-config)
+         ("libtool" ,libtool)
+         ("guile" ,guile-2.2)
+         ("glib:bin" ,glib "bin")
+         ("texinfo" ,texinfo)
+         ("perl" ,perl)))
+      (inputs
+       `(("guile" ,guile-2.2)
+         ("guile-lib" ,guile2.2-lib)
+         ("guile-readline" ,guile2.2-readline)
+         ("guile-gcrypt" ,guile2.2-gcrypt)
+         ("gnutls" ,gnutls)
+         ("shroud" ,shroud)
+         ("emacsy" ,emacsy-minimal)
+         ("glib" ,glib)
+         ("dbus-glib" ,dbus-glib)
+         ("gtk+" ,gtk+)
+         ("gtk+:bin" ,gtk+ "bin")
+         ("gtksourceview" ,gtksourceview)
+         ("webkitgtk" ,webkitgtk)
+         ("g-golf" ,g-golf)
+         ("xorg-server" ,xorg-server)))
+      (propagated-inputs
+       `(("glib" ,glib)
+         ("glib-networking" ,glib-networking)
+         ("gstreamer" ,gstreamer)
+         ("gst-plugins-base" ,gst-plugins-base)
+         ("gst-plugins-good" ,gst-plugins-good)
+         ("gst-plugins-bad" ,gst-plugins-bad)
+         ("gst-plugins-ugly" ,gst-plugins-ugly)
+         ("gtk+" ,gtk+)
+         ("gtksourceview" ,gtksourceview)
+         ("vte" ,vte)
+         ("webkitgtk" ,webkitgtk)
+         ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
+      (arguments
+       `(#:modules ((guix build gnu-build-system)
+                    (guix build utils)
+                    (ice-9 popen)
+                    (ice-9 rdelim)
+                    (srfi srfi-26))
+         #:phases
+         (modify-phases %standard-phases
+           (add-before 'check 'start-xorg-server
+             (lambda* (#:key inputs #:allow-other-keys)
+               ;; The test suite requires a running X server.
+               (system (format #f "~a/bin/Xvfb :1 &"
+                               (assoc-ref inputs "xorg-server")))
+               (setenv "DISPLAY" ":1")
+               #t))
+           (add-after 'install 'wrap-binaries
+             (lambda* (#:key inputs outputs #:allow-other-keys)
+               (let* ((out (assoc-ref outputs "out"))
+                      (gio-deps (map (cut assoc-ref inputs <>) '("glib-networking"
+                                                                 "glib"
+                                                                 "gstreamer"
+                                                                 "gst-plugins-base"
+                                                                 "gst-plugins-good"
+                                                                 "gst-plugins-bad"
+                                                                 "gst-plugins-ugly")))
+                      (gio-mod-path (map (cut string-append <> "/lib/gio/modules")
+                                         gio-deps))
+                      (effective (read-line (open-pipe*
+                                             OPEN_READ
+                                             "guile" "-c"
+                                             "(display (effective-version))")))
+                      (deps (map (cut assoc-ref inputs <>)
+                                 '("emacsy" "guile-lib" "guile-readline" "g-golf"
+                                   "shroud")))
+                      (scm-path (map (cut string-append <>
+                                          "/share/guile/site/" effective)
+                                     `(,out ,@deps)))
+                      (go-path (map (cut string-append <>
+                                         "/lib/guile/" effective "/site-ccache")
+                                    `(,out ,@deps)))
+                      (progs (map (cut string-append out "/bin/" <>)
+                                  '("nomad"))))
+                 (map (cut wrap-program <>
+                           `("GIO_EXTRA_MODULES" ":" prefix ,gio-mod-path)
+                           `("GUILE_LOAD_PATH" ":" prefix ,scm-path)
+                           `("GUILE_LOAD_COMPILED_PATH" ":"
+                             prefix ,go-path))
+                      progs)
+                 #t))))))
+      (native-search-paths
+       (list (search-path-specification
+              (variable "GI_TYPELIB_PATH")
+              (separator ":")
+              (files '("lib/girepository-1.0")))
+             (search-path-specification
+              (variable "NOMAD_WEB_EXTENSION_DIR")
+              (separator ":")
+              (files '("libexec/nomad")))))
+      (home-page "https://savannah.nongnu.org/projects/nomad/")
+      (synopsis "Extensible Web Browser in Guile Scheme")
+      (description "Nomad is a Emacs-like web browser that consists of a modular feature-set fully programmable in Guile Scheme.")
+      (license license:gpl3+))))
 
 (define-public guile-cv
   (package
-- 
2.27.0





Information forwarded to guix-patches <at> gnu.org:
bug#42582; Package guix-patches. (Sat, 01 Aug 2020 07:30:02 GMT) Full text and rfc822 format available.

Message #8 received at 42582 <at> debbugs.gnu.org (full text, mbox):

From: Mathieu Othacehe <othacehe <at> gnu.org>
To: Mike Rosset <mike.rosset <at> gmail.com>
Cc: 42582 <at> debbugs.gnu.org
Subject: Re: [bug#42582] [PATCH] gnu: nomad: Update to 0.2.0-alpha.
Date: Sat, 01 Aug 2020 09:29:30 +0200
Hello Mike,

> * gnu/packages/guile-xyz.scm (nomad): Update to 0.2.0-alpha.

Thanks for this patch. When I'm trying to run nomad, I have the
following error:

--8<---------------cut here---------------start------------->8---
In nomad/gtk/window.scm:
     19:0 19 (_)
In ice-9/boot-9.scm:
   2874:4 18 (define-module* _ #:filename _ #:pure _ #:version _ # _ …)
  2887:24 17 (_)
   222:29 16 (map1 (((nomad gtk gi)) ((srfi srfi-26)) ((oop #)) (#) …))
   222:29 15 (map1 (((srfi srfi-26)) ((oop goops)) ((emacsy #)) (#) …))
   222:29 14 (map1 (((oop goops)) ((emacsy emacsy)) ((emacsy #)) # …))
   222:29 13 (map1 (((emacsy emacsy)) ((emacsy window)) ((nomad …)) …))
   222:29 12 (map1 (((emacsy window)) ((nomad web)) ((nomad text)) …))
   222:29 11 (map1 (((nomad web)) ((nomad text)) ((nomad gtk #)) # …))
   222:29 10 (map1 (((nomad text)) ((nomad gtk widget)) ((nomad …)) …))
   222:17  9 (map1 (((nomad gtk widget)) ((nomad gtk frame)) ((…)) #))
  2800:17  8 (resolve-interface (nomad gtk widget) #:select _ #:hide …)
In ice-9/threads.scm:
    390:8  7 (_ _)
In ice-9/boot-9.scm:
  2726:13  6 (_)
In ice-9/threads.scm:
    390:8  5 (_ _)
In ice-9/boot-9.scm:
  2994:20  4 (_)
   2312:4  3 (save-module-excursion #<procedure 7f7138864690 at ice-…>)
  3014:26  2 (_)
In unknown file:
           1 (primitive-load-path "nomad/gtk/widget" #<procedure 7f7…>)
In nomad/gtk/widget.scm:
     60:0  0 (_)

nomad/gtk/widget.scm:60:0: In procedure module-lookup: Unbound variable: <gtk-source-view>
--8<---------------cut here---------------end--------------->8---

do you know why?

Thanks,

Mathieu




Information forwarded to guix-patches <at> gnu.org:
bug#42582; Package guix-patches. (Sat, 01 Aug 2020 15:35:02 GMT) Full text and rfc822 format available.

Message #11 received at 42582 <at> debbugs.gnu.org (full text, mbox):

From: Mike Rosset <mike.rosset <at> gmail.com>
To: Mathieu Othacehe <othacehe <at> gnu.org>
Cc: 42582 <at> debbugs.gnu.org, Mike Rosset <mike.rosset <at> gmail.com>
Subject: Re: [bug#42582] [PATCH] gnu: nomad: Update to 0.2.0-alpha.
Date: Sat, 01 Aug 2020 08:33:53 -0700
Mathieu Othacehe writes:

> Hello Mike,
>
>> * gnu/packages/guile-xyz.scm (nomad): Update to 0.2.0-alpha.
>
> Thanks for this patch. When I'm trying to run nomad, I have the
> following error:
>
> --8<---------------cut here---------------start------------->8---
> In nomad/gtk/window.scm:
>      19:0 19 (_)
> In ice-9/boot-9.scm:
>    2874:4 18 (define-module* _ #:filename _ #:pure _ #:version _ # _ …)
>   2887:24 17 (_)
>    222:29 16 (map1 (((nomad gtk gi)) ((srfi srfi-26)) ((oop #)) (#) …))
>    222:29 15 (map1 (((srfi srfi-26)) ((oop goops)) ((emacsy #)) (#) …))
>    222:29 14 (map1 (((oop goops)) ((emacsy emacsy)) ((emacsy #)) # …))
>    222:29 13 (map1 (((emacsy emacsy)) ((emacsy window)) ((nomad …)) …))
>    222:29 12 (map1 (((emacsy window)) ((nomad web)) ((nomad text)) …))
>    222:29 11 (map1 (((nomad web)) ((nomad text)) ((nomad gtk #)) # …))
>    222:29 10 (map1 (((nomad text)) ((nomad gtk widget)) ((nomad …)) …))
>    222:17  9 (map1 (((nomad gtk widget)) ((nomad gtk frame)) ((…)) #))
>   2800:17  8 (resolve-interface (nomad gtk widget) #:select _ #:hide …)
> In ice-9/threads.scm:
>     390:8  7 (_ _)
> In ice-9/boot-9.scm:
>   2726:13  6 (_)
> In ice-9/threads.scm:
>     390:8  5 (_ _)
> In ice-9/boot-9.scm:
>   2994:20  4 (_)
>    2312:4  3 (save-module-excursion #<procedure 7f7138864690 at ice-…>)
>   3014:26  2 (_)
> In unknown file:
>            1 (primitive-load-path "nomad/gtk/widget" #<procedure 7f7…>)
> In nomad/gtk/widget.scm:
>      60:0  0 (_)
>
> nomad/gtk/widget.scm:60:0: In procedure module-lookup: Unbound variable: <gtk-source-view>
> --8<---------------cut here---------------end--------------->8---
>
> do you know why?
>
> Thanks,
>
> Mathieu

Hello Mathieu,

A number of things could be causing this either gtksourceview is not
being propagated or there could be a problem with g-golf. Or how you are
invoking nomad.

Please try with ./pre-inst-env nomad --ad-hoc nomad -- nonmad. This is
assuming you have patched guile-xyz.scm locally in the guix source tree.

Let me know how it goes.

Mike




Information forwarded to guix-patches <at> gnu.org:
bug#42582; Package guix-patches. (Sat, 01 Aug 2020 15:36:01 GMT) Full text and rfc822 format available.

Message #14 received at 42582 <at> debbugs.gnu.org (full text, mbox):

From: Mike Rosset <mike.rosset <at> gmail.com>
To: Mike Rosset <mike.rosset <at> gmail.com>
Cc: Mathieu Othacehe <othacehe <at> gnu.org>, 42582 <at> debbugs.gnu.org
Subject: Re: [bug#42582] [PATCH] gnu: nomad: Update to 0.2.0-alpha.
Date: Sat, 01 Aug 2020 08:35:33 -0700
Mike Rosset writes:

> Please try with ./pre-inst-env nomad --ad-hoc nomad -- nonmad. This is

This should be ./pre-inst-env guix --ad-hoc nomad -- nonmad. Applogies I
just woke up :)




Reply sent to Mathieu Othacehe <othacehe <at> gnu.org>:
You have taken responsibility. (Sat, 01 Aug 2020 18:07:02 GMT) Full text and rfc822 format available.

Notification sent to Mike Rosset <mike.rosset <at> gmail.com>:
bug acknowledged by developer. (Sat, 01 Aug 2020 18:07:02 GMT) Full text and rfc822 format available.

Message #19 received at 42582-done <at> debbugs.gnu.org (full text, mbox):

From: Mathieu Othacehe <othacehe <at> gnu.org>
To: Mike Rosset <mike.rosset <at> gmail.com>
Cc: 42582-done <at> debbugs.gnu.org
Subject: Re: [bug#42582] [PATCH] gnu: nomad: Update to 0.2.0-alpha.
Date: Sat, 01 Aug 2020 20:05:47 +0200
Hey,

> This should be ./pre-inst-env guix --ad-hoc nomad -- nonmad. Applogies I
> just woke up :)

You were right my environment was somehow polluted. I made a few
cosmetic changes, added your copyright and pushed.

Thanks,

Mathieu




Information forwarded to guix-patches <at> gnu.org:
bug#42582; Package guix-patches. (Sat, 01 Aug 2020 18:30:02 GMT) Full text and rfc822 format available.

Message #22 received at 42582-done <at> debbugs.gnu.org (full text, mbox):

From: Mike Rosset <mike.rosset <at> gmail.com>
To: Mathieu Othacehe <othacehe <at> gnu.org>
Cc: 42582-done <at> debbugs.gnu.org, Mike Rosset <mike.rosset <at> gmail.com>
Subject: Re: [bug#42582] [PATCH] gnu: nomad: Update to 0.2.0-alpha.
Date: Sat, 01 Aug 2020 11:28:54 -0700
Mathieu Othacehe writes:

> Hey,
>
>> This should be ./pre-inst-env guix --ad-hoc nomad -- nonmad. Applogies I
>> just woke up :)
>
> You were right my environment was somehow polluted. I made a few
> cosmetic changes, added your copyright and pushed.
>
> Thanks,
>
> Mathieu

Great! I appreciate you looking at this Mathieu.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 30 Aug 2020 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 233 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.