GNU bug report logs - #32137
[PATCH] gnu: Add luakit

Previous Next

Package: guix-patches;

Reported by: Raphaël Mélotte <raphael.melotte <at> gmail.com>

Date: Fri, 13 Jul 2018 13:40:02 UTC

Severity: normal

Tags: patch

Done: ludo <at> gnu.org (Ludovic Courtès)

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 32137 in the body.
You can then email your comments to 32137 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#32137; Package guix-patches. (Fri, 13 Jul 2018 13:40:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Raphaël Mélotte <raphael.melotte <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 13 Jul 2018 13:40:02 GMT) Full text and rfc822 format available.

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

From: Raphaël Mélotte <raphael.melotte <at> gmail.com>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add luakit
Date: Fri, 13 Jul 2018 15:38:20 +0200
[Message part 1 (text/plain, inline)]
This patch adds luakit, a lightweight web browser based on webkitgtk.

NB: this is my first patch submission, I apologize in advance if I did
something wrong.
[Message part 2 (text/html, inline)]
[0001-add-luakit.patch (text/x-patch, attachment)]

Reply sent to ludo <at> gnu.org (Ludovic Courtès):
You have taken responsibility. (Tue, 17 Jul 2018 13:15:01 GMT) Full text and rfc822 format available.

Notification sent to Raphaël Mélotte <raphael.melotte <at> gmail.com>:
bug acknowledged by developer. (Tue, 17 Jul 2018 13:15:02 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Raphaël Mélotte <raphael.melotte <at> gmail.com>
Cc: 32137-done <at> debbugs.gnu.org
Subject: Re: [bug#32137] [PATCH] gnu: Add luakit
Date: Tue, 17 Jul 2018 15:14:39 +0200
[Message part 1 (text/plain, inline)]
Hello Raphaël,

Raphaël Mélotte <raphael.melotte <at> gmail.com> skribis:

> This patch adds luakit, a lightweight web browser based on webkitgtk.
>
> NB: this is my first patch submission, I apologize in advance if I did
> something wrong.
> From 36bae98701a1c04de2820781dd8b7488cac61e30 Mon Sep 17 00:00:00 2001
> From: 43317 <43317 <at> etu.he2b.be>
> Date: Fri, 13 Jul 2018 15:28:41 +0200
> Subject: [PATCH] add luakit
>
> ---
>  gnu/packages/web-browsers.scm | 65 +++++++++++++++++++++++++++++++++++
>  1 file changed, 65 insertions(+)

Thanks for this first patch and welcome!  I made only minor
modifications (patch below):

  1. Add ‘file-name’ to the source to please ‘guix lint’.

  2. Return #t at the end of the ‘wrap’ phase.

  3. Tweak the synopses and description.

  4. Change license to ‘gpl3+’ because source file headers explicitly
     say “version 3 or any later version”.

I provided a commit log that matches our conventions too.

  https://git.savannah.gnu.org/cgit/guix.git/commit/?id=700987f72c870b9a8e3ed6cd538064e2c2b8f3ce

That’s it!

I tried running “luakit -c /dev/null” but it insists on having an rc
file that explicitly creates a window, right?

Thank you!

Ludo’.

[Message part 2 (text/x-patch, inline)]
diff --git a/gnu/packages/web-browsers.scm b/gnu/packages/web-browsers.scm
index 02f076bbe..56bfa6ab2 100644
--- a/gnu/packages/web-browsers.scm
+++ b/gnu/packages/web-browsers.scm
@@ -144,7 +144,8 @@ features including, tables, builtin image display, bookmarks, SSL and more.")
                                   ".tar.gz"))
               (sha256
                (base32
-                "0dwxhnq90whakgdg21lzcf03n2g1c7hqgliwhav8av5na5mqpn93"))))
+                "0dwxhnq90whakgdg21lzcf03n2g1c7hqgliwhav8av5na5mqpn93"))
+              (file-name (string-append name "-" version ".tar.gz"))))
     (inputs
      `(("lua-5.1", lua-5.1)
        ("gtk+" ,gtk+)
@@ -184,14 +185,16 @@ features including, tables, builtin image display, bookmarks, SSL and more.")
                     (gtk (assoc-ref inputs "gtk+"))
                     (gtk-share (string-append gtk "/share")))
                (wrap-program (string-append luakit "/bin/luakit")
-                 `("LUA_CPATH" prefix (,(string-append
-                                         lua5.1-filesystem "/lib/lua/5.1/?.so;;"))))))))))
-    (synopsis "Fast, light and simple browser based on webkit")
-    (description "Luakit is a fast, light and simple to use micro-browser
- framework extensible by Lua
- using the WebKit web content engine and the GTK+ toolkit.")
+                 `("LUA_CPATH" prefix
+                   (,(string-append lua5.1-filesystem
+                                    "/lib/lua/5.1/?.so;;"))))
+               #t))))))
+    (synopsis "Fast, lightweight, and simple browser based on WebKit")
+    (description "Luakit is a fast, lightweight, and simple to use
+micro-browser framework extensible by Lua using the WebKit web content engine
+and the GTK+ toolkit.")
     (home-page "https://luakit.github.io/")
-    (license license:gpl3)))
+    (license license:gpl3+)))
 
 (define-public lynx
   (package

Information forwarded to guix-patches <at> gnu.org:
bug#32137; Package guix-patches. (Tue, 17 Jul 2018 14:17:01 GMT) Full text and rfc822 format available.

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

From: Raphaël Mélotte <raphael.melotte <at> gmail.com>
To: 32137 <at> debbugs.gnu.org
Subject: Re: bug#32137: closed (Re: [bug#32137] [PATCH] gnu: Add luakit)
Date: Tue, 17 Jul 2018 16:15:44 +0200
[Message part 1 (text/plain, inline)]
> From: "Ludovic Courtès" <ludo <at> gnu.org>
>
> Thanks for this first patch and welcome!  I made only minor
> modifications (patch below):
>
>   1. Add ‘file-name’ to the source to please ‘guix lint’.
>

I spotted the issue reported by 'guix lint', but I didn't know how to fix
it. Now I do :-)


>
>   2. Return #t at the end of the ‘wrap’ phase.


I took inspiration from Icecat's definition but it looks like I missed
this. Why is it necessary to return #t ?


>   4. Change license to ‘gpl3+’ because source file headers explicitly
>      say “version 3 or any later version”.
>

I was tricked by the website that says it's GPLv3 but you're right, the
source files says GPLv3+.


I tried running “luakit -c /dev/null” but it insists on having an rc
> file that explicitly creates a window, right?
>

I've never used custom configuration files, but once installed, running
only `luakit` should
load the default files from '~/.guix-profile/etc/xdg/luakit' and open
luakit's homepage.
Does it fail if you only run `luakit` ?


Thanks!
[Message part 2 (text/html, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#32137; Package guix-patches. (Tue, 24 Jul 2018 08:44:01 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Raphaël Mélotte <raphael.melotte <at> gmail.com>
Cc: 32137 <at> debbugs.gnu.org
Subject: Re: [bug#32137] closed (Re: [bug#32137] [PATCH] gnu: Add luakit)
Date: Tue, 24 Jul 2018 10:43:36 +0200
Hello,

Raphaël Mélotte <raphael.melotte <at> gmail.com> skribis:

>  From: "Ludovic Courtès" <ludo <at> gnu.org>
>
>  Thanks for this first patch and welcome!  I made only minor
>  modifications (patch below):
>
>    1. Add ‘file-name’ to the source to please ‘guix lint’.
>
> I spotted the issue reported by 'guix lint', but I didn't know how to fix it. Now I do :-)

:-)

>    2. Return #t at the end of the ‘wrap’ phase. 
>
> I took inspiration from Icecat's definition but it looks like I missed this. Why is it necessary to return #t ?  

Currently the code that runs phases looks at the value they return to
determine success or failure.  That will change hopefully in the near
future, but for now we have to return a Boolean to make that clear.

>  I tried running “luakit -c /dev/null” but it insists on having an rc
>  file that explicitly creates a window, right?
>
> I've never used custom configuration files, but once installed, running only `luakit` should
> load the default files from '~/.guix-profile/etc/xdg/luakit' and open luakit's homepage.
> Does it fail if you only run `luakit` ?

Here’s what I get:

--8<---------------cut here---------------start------------->8---
$ /gnu/store/7fxcgx5vdnlggw2ffc1xamxjlxvl1w09-luakit-2017.08.10/bin/luakit

** (.luakit-real:3176): WARNING **: 10:43:15.534: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
[    0.081785] W [core/luah]: couldn't load any rc file
[    0.081813] F [core/luakit]: couldn't find rc file
--8<---------------cut here---------------end--------------->8---

Thanks,
Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#32137; Package guix-patches. (Mon, 06 Aug 2018 08:25:02 GMT) Full text and rfc822 format available.

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

From: Raphaël Mélotte <raphael.melotte <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 32137 <at> debbugs.gnu.org,
 Raphaël Mélotte <raphael.melotte <at> gmail.com>
Subject: Re: [bug#32137] closed (Re: [bug#32137] [PATCH] gnu: Add luakit)
Date: Mon, 06 Aug 2018 10:24:12 +0200
Ludovic Courtès writes:


> Here’s what I get:
>
> --8<---------------cut here---------------start------------->8---
> $ /gnu/store/7fxcgx5vdnlggw2ffc1xamxjlxvl1w09-luakit-2017.08.10/bin/luakit
>
> ** (.luakit-real:3176): WARNING **: 10:43:15.534: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
> [    0.081785] W [core/luah]: couldn't load any rc file
> [    0.081813] F [core/luakit]: couldn't find rc file
> --8<---------------cut here---------------end--------------->8---
>
> Thanks,
> Ludo’.

Whoops, you're right: it's working for me on GuixSD, but on Debian+Guix,
if I don't source '~/.guix-profile/etc/profile', XDG_CONFIG_DIRS is not
set to look in the Guix store and luakit can't find it's default configuration.

Should I add a wrapping phase that sets XDG_CONFIG_DIRS or do we rely on
the user sourcing '~/.guix-profile/etc/profile' ?


Thanks
-- 
Raphaël Mélotte




Information forwarded to guix-patches <at> gnu.org:
bug#32137; Package guix-patches. (Sun, 19 Aug 2018 21:04:01 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Raphaël Mélotte <raphael.melotte <at> gmail.com>
Cc: 32137 <at> debbugs.gnu.org
Subject: Re: [bug#32137] closed (Re: [bug#32137] [PATCH] gnu: Add luakit)
Date: Sun, 19 Aug 2018 23:02:55 +0200
Raphaël Mélotte <raphael.melotte <at> gmail.com> skribis:

> Ludovic Courtès writes:
>
>
>> Here’s what I get:
>>
>> --8<---------------cut here---------------start------------->8---
>> $ /gnu/store/7fxcgx5vdnlggw2ffc1xamxjlxvl1w09-luakit-2017.08.10/bin/luakit
>>
>> ** (.luakit-real:3176): WARNING **: 10:43:15.534: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
>> [    0.081785] W [core/luah]: couldn't load any rc file
>> [    0.081813] F [core/luakit]: couldn't find rc file
>> --8<---------------cut here---------------end--------------->8---
>>
>> Thanks,
>> Ludo’.
>
> Whoops, you're right: it's working for me on GuixSD, but on Debian+Guix,
> if I don't source '~/.guix-profile/etc/profile', XDG_CONFIG_DIRS is not
> set to look in the Guix store and luakit can't find it's default configuration.
>
> Should I add a wrapping phase that sets XDG_CONFIG_DIRS or do we rely on
> the user sourcing '~/.guix-profile/etc/profile' ?

Good question.  Note that ~/.guix-profile/etc/profile will not set
XDG_CONFIG_DIRS, unless qtbase is installed in the profile (from a quick
grep in gnu/packages/*.scm.)

Thus it probably makes sense to add a wrapping phase so that Luakit
always works out of the box.

Thoughts?

Thanks,
Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#32137; Package guix-patches. (Mon, 20 Aug 2018 14:41:02 GMT) Full text and rfc822 format available.

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

From: Raphaël Mélotte <raphael.melotte <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 32137 <at> debbugs.gnu.org,
 Raphaël Mélotte <raphael.melotte <at> gmail.com>
Subject: Re: [bug#32137] closed (Re: [bug#32137] [PATCH] gnu: Add luakit)
Date: Mon, 20 Aug 2018 16:40:05 +0200
Ludovic Courtès writes:

> Good question.  Note that ~/.guix-profile/etc/profile will not set
> XDG_CONFIG_DIRS, unless qtbase is installed in the profile (from a quick
> grep in gnu/packages/*.scm.)
>
> Thus it probably makes sense to add a wrapping phase so that Luakit
> always works out of the box.

Ok, thanks for the explanation, I'll try to send a patch.

-- 
Raphaël Mélotte




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 18 Sep 2018 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 281 days ago.

Previous Next


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