all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH 0/2] Ratpoison update and cleanup.
@ 2015-08-06 16:59 Mathieu Lirzin
  2015-08-06 16:59 ` [PATCH 1/2] gnu: ratpoison: Update to 1.4.8 Mathieu Lirzin
  2015-08-06 16:59 ` [PATCH 2/2] gnu: ratpoison: Clean definition Mathieu Lirzin
  0 siblings, 2 replies; 6+ messages in thread
From: Mathieu Lirzin @ 2015-08-06 16:59 UTC (permalink / raw)
  To: guix-devel

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

While updating ratpoison I found room for some cleanups. Since they were not
related to the update I have made a separate commit for that.

The "#include <stdlib.h>" in the previous patch was unnecessary since it is
already included by another local header file. 

The reason why I have moved ratpoison.desktop to the native inputs is that a
copy is made in ratpoison output so we don't need it after the build process.

Mathieu Lirzin (2):
  gnu: ratpoison: Update to 1.4.8.
  gnu: ratpoison: Clean definition.

 gnu/packages/patches/ratpoison-shell.patch | 38 ++++++++++--------------
 gnu/packages/ratpoison.scm                 | 47 +++++++++++++++---------------
 2 files changed, 39 insertions(+), 46 deletions(-)

-- 
2.1.4


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

* [PATCH 1/2] gnu: ratpoison: Update to 1.4.8.
  2015-08-06 16:59 [PATCH 0/2] Ratpoison update and cleanup Mathieu Lirzin
@ 2015-08-06 16:59 ` Mathieu Lirzin
  2015-08-08 18:50   ` Mark H Weaver
  2015-08-06 16:59 ` [PATCH 2/2] gnu: ratpoison: Clean definition Mathieu Lirzin
  1 sibling, 1 reply; 6+ messages in thread
From: Mathieu Lirzin @ 2015-08-06 16:59 UTC (permalink / raw)
  To: guix-devel

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


* gnu/packages/ratpoison.scm (ratpoison): Update to 1.4.8.
* gnu/packages/patches/ratpoison-shell.patch: Adapt to it.
---
 gnu/packages/patches/ratpoison-shell.patch | 38 ++++++++++++------------------
 gnu/packages/ratpoison.scm                 |  5 ++--
 2 files changed, 18 insertions(+), 25 deletions(-)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-ratpoison-Update-to-1.4.8.patch --]
[-- Type: text/x-patch; name="0001-gnu-ratpoison-Update-to-1.4.8.patch", Size: 4765 bytes --]

diff --git a/gnu/packages/patches/ratpoison-shell.patch b/gnu/packages/patches/ratpoison-shell.patch
index 63d265a..e4c200b 100644
--- a/gnu/packages/patches/ratpoison-shell.patch
+++ b/gnu/packages/patches/ratpoison-shell.patch
@@ -2,17 +2,9 @@ Use $SHELL instead of hardcoding /bin/sh in ratpoison.
 
 Patch by Mark H Weaver <mhw@netris.org>.
 
---- ratpoison/src/actions.c.orig	2013-04-06 21:37:43.000000000 -0400
-+++ ratpoison/src/actions.c	2014-02-13 00:34:10.992553710 -0500
-@@ -19,6 +19,7 @@
-  */
- \f
- #include <unistd.h>
-+#include <stdlib.h>
- #include <ctype.h>		/* for isspace */
- #include <sys/wait.h>
- #include <X11/keysym.h>
-@@ -223,12 +223,12 @@
+--- ratpoison/src/actions.c.orig	2014-09-14 16:46:08.000000000 +0200
++++ ratpoison/src/actions.c	2015-08-06 15:00:54.951575260 +0200
+@@ -228,12 +228,12 @@
    add_command ("escape",        cmd_escape,     1, 1, 1,
                 "Key: ", arg_KEY);
    add_command ("exec",          cmd_exec,       1, 1, 1,
@@ -28,7 +20,7 @@ Patch by Mark H Weaver <mhw@netris.org>.
    add_command ("fdump",         cmd_fdump,      1, 0, 0,
                 "", arg_NUMBER);
    add_command ("focus",         cmd_next_frame, 0, 0, 0);
-@@ -359,7 +359,7 @@
+@@ -367,7 +367,7 @@
    add_command ("unsetenv",      cmd_unsetenv,   1, 1, 1,
                 "Variable: ", arg_STRING);
    add_command ("verbexec",      cmd_verbexec,   1, 1, 1,
@@ -37,7 +29,7 @@ Patch by Mark H Weaver <mhw@netris.org>.
    add_command ("version",       cmd_version,    0, 0, 0);
    add_command ("vsplit",        cmd_v_split,    1, 0, 0,
                 "Split: ", arg_STRING);
-@@ -2627,6 +2627,9 @@
+@@ -2671,6 +2671,9 @@
    pid = fork();
    if (pid == 0)
      {
@@ -47,11 +39,11 @@ Patch by Mark H Weaver <mhw@netris.org>.
        /* Some process setup to make sure the spawned process runs
           in its own session. */
        putenv(current_screen()->display_string);
-@@ -2641,7 +2644,18 @@
+@@ -2700,7 +2703,18 @@
        /* raw means don't run it through sh.  */
        if (raw)
-         execl (cmd, cmd, NULL);
--      execl("/bin/sh", "sh", "-c", cmd, NULL);
+         execl (cmd, cmd, (char *)NULL);
+-      execl("/bin/sh", "sh", "-c", cmd, (char *)NULL);
 +
 +      shell_path = getenv ("SHELL");
 +      if (shell_path == NULL)
@@ -63,13 +55,13 @@ Patch by Mark H Weaver <mhw@netris.org>.
 +      else
 +        shell_name++;
 +
-+      execl(shell_path, shell_name, "-c", cmd, NULL);
++      execl(shell_path, shell_name, "-c", cmd, (char *)NULL);
        _exit(EXIT_FAILURE);
      }
  
---- ratpoison/src/events.c.orig	2013-04-06 20:05:48.000000000 -0400
-+++ ratpoison/src/events.c	2014-02-13 00:34:39.327758789 -0500
-@@ -920,7 +920,7 @@
+--- ratpoison/src/events.c.orig	2014-09-14 16:46:23.000000000 +0200
++++ ratpoison/src/events.c	2015-08-06 15:02:17.287578780 +0200
+@@ -919,7 +919,7 @@
              {
                /* Report any child that didn't return 0. */
                if (cur->status != 0)
@@ -78,9 +70,9 @@ Patch by Mark H Weaver <mhw@netris.org>.
                                         cur->cmd, cur->status);
                list_del  (&cur->node);
                free (cur->cmd);
---- ratpoison/src/messages.h.orig	2012-07-20 20:25:33.000000000 -0400
-+++ ratpoison/src/messages.h	2014-02-13 00:34:28.608398437 -0500
-@@ -41,7 +41,7 @@
+--- ratpoison/src/messages.h.orig	2014-04-09 01:22:08.000000000 +0200
++++ ratpoison/src/messages.h	2015-08-06 15:04:14.759583801 +0200
+@@ -39,7 +39,7 @@
  
  #define MESSAGE_PROMPT_SWITCH_TO_WINDOW "Switch to window: "
  #define MESSAGE_PROMPT_NEW_WINDOW_NAME  "Set window's title to: "
diff --git a/gnu/packages/ratpoison.scm b/gnu/packages/ratpoison.scm
index 3a93188..a73e6cf 100644
--- a/gnu/packages/ratpoison.scm
+++ b/gnu/packages/ratpoison.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2013, 2014 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2015 Mathieu Lirzin <mthl@openmailbox.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -42,14 +43,14 @@
 (define-public ratpoison
   (package
     (name "ratpoison")
-    (version "1.4.6")
+    (version "1.4.8")
     (source (origin
              (method url-fetch)
              (uri (string-append "mirror://savannah/ratpoison/ratpoison-"
                                  version ".tar.xz"))
              (sha256
               (base32
-               "0v4mh8d3vsh5xbbycfdl3g8zfygi1rkslh1x7k5hi1d05bfq3cdr"))
+               "1w502z55vv7zs45l80nsllqh9fvfwjfdfi11xy1qikhzdmirains"))
              (patches (list (search-patch "ratpoison-shell.patch")))))
     (build-system gnu-build-system)
     (arguments

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

* [PATCH 2/2] gnu: ratpoison: Clean definition.
  2015-08-06 16:59 [PATCH 0/2] Ratpoison update and cleanup Mathieu Lirzin
  2015-08-06 16:59 ` [PATCH 1/2] gnu: ratpoison: Update to 1.4.8 Mathieu Lirzin
@ 2015-08-06 16:59 ` Mathieu Lirzin
  2015-08-18 16:31   ` Ludovic Courtès
  1 sibling, 1 reply; 6+ messages in thread
From: Mathieu Lirzin @ 2015-08-06 16:59 UTC (permalink / raw)
  To: guix-devel

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


* gnu/packages/ratpoison.scm (ratpoison)[arguments]: Use modify-phases.
  [inputs]: Sort alist.  Move ratpoison.desktop to ...
  [source]: Fix indentation.
  [native-inputs]: Likewise.  ... here.
---
 gnu/packages/ratpoison.scm | 42 +++++++++++++++++++++---------------------
 1 file changed, 21 insertions(+), 21 deletions(-)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0002-gnu-ratpoison-Clean-definition.patch --]
[-- Type: text/x-patch; name="0002-gnu-ratpoison-Clean-definition.patch", Size: 2553 bytes --]

diff --git a/gnu/packages/ratpoison.scm b/gnu/packages/ratpoison.scm
index a73e6cf..dc6db72 100644
--- a/gnu/packages/ratpoison.scm
+++ b/gnu/packages/ratpoison.scm
@@ -44,8 +44,8 @@
   (package
     (name "ratpoison")
     (version "1.4.8")
-    (source (origin
-             (method url-fetch)
+    (source
+     (origin (method url-fetch)
              (uri (string-append "mirror://savannah/ratpoison/ratpoison-"
                                  version ".tar.xz"))
              (sha256
@@ -55,32 +55,32 @@
     (build-system gnu-build-system)
     (arguments
      '(#:phases
-       (alist-cons-after
-        'install 'install-xsession
-        (lambda _
-          (let* ((file      (assoc-ref %build-inputs "ratpoison.desktop"))
-                 (xsessions (string-append %output "/share/xsessions"))
-                 (target    (string-append xsessions "/ratpoison.desktop")))
-            (mkdir-p xsessions)
-            (copy-file file target)))
-        %standard-phases)))
+       (modify-phases %standard-phases
+         (add-after 'install 'install-xsession
+                    (lambda* (#:key inputs outputs #:allow-other-keys)
+                      (let ((rpd "ratpoison.desktop")
+                            (dst (string-append (assoc-ref outputs "out")
+                                                "/share/xsessions/")))
+                        (mkdir-p dst)
+                        (copy-file (assoc-ref inputs rpd)
+                                   (string-append dst rpd))))))))
     (inputs
-     `(("libXi" ,libxi)
-       ("readline" ,readline)
-       ("xextproto" ,xextproto)
-       ("libXtst" ,libxtst)
-       ("freetype" ,freetype)
+     `(("inputproto" ,inputproto)
        ("fontconfig" ,fontconfig)
-       ("libxinerama" ,libxinerama)
+       ("freetype" ,freetype)
        ("libXft" ,libxft)
+       ("libXi" ,libxi)
+       ("libxinerama" ,libxinerama)
        ("libXpm" ,libxpm)
        ("libXt" ,libxt)
-       ("inputproto" ,inputproto)
+       ("libXtst" ,libxtst)
        ("libX11" ,libx11)
-       ("ratpoison.desktop" ,ratpoison.desktop)))
+       ("readline" ,readline)
+       ("xextproto" ,xextproto)))
     (native-inputs
-      `(("perl" ,perl)
-        ("pkg-config" ,pkg-config)))
+     `(("perl",perl)
+       ("pkg-config" ,pkg-config)
+       ("ratpoison.desktop" ,ratpoison.desktop)))
     (home-page "http://www.nongnu.org/ratpoison/")
     (synopsis "Simple mouse-free tiling window manager")
     (description

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

* Re: [PATCH 1/2] gnu: ratpoison: Update to 1.4.8.
  2015-08-06 16:59 ` [PATCH 1/2] gnu: ratpoison: Update to 1.4.8 Mathieu Lirzin
@ 2015-08-08 18:50   ` Mark H Weaver
  0 siblings, 0 replies; 6+ messages in thread
From: Mark H Weaver @ 2015-08-08 18:50 UTC (permalink / raw)
  To: Mathieu Lirzin; +Cc: guix-devel

Mathieu Lirzin <mthl@openmailbox.org> writes:
> * gnu/packages/ratpoison.scm (ratpoison): Update to 1.4.8.
> * gnu/packages/patches/ratpoison-shell.patch: Adapt to it.

Okay, please push this first patch.

     Thanks!
       Mark

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

* Re: [PATCH 2/2] gnu: ratpoison: Clean definition.
  2015-08-06 16:59 ` [PATCH 2/2] gnu: ratpoison: Clean definition Mathieu Lirzin
@ 2015-08-18 16:31   ` Ludovic Courtès
  2015-08-25 21:54     ` Mathieu Lirzin
  0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2015-08-18 16:31 UTC (permalink / raw)
  To: Mathieu Lirzin; +Cc: guix-devel

Mathieu Lirzin <mthl@openmailbox.org> skribis:

> * gnu/packages/ratpoison.scm (ratpoison)[arguments]: Use modify-phases.
>   [inputs]: Sort alist.  Move ratpoison.desktop to ...
>   [source]: Fix indentation.
>   [native-inputs]: Likewise.  ... here.

It’s OK to not mention trivial reindentation here.  Otherwise LGTM,
thanks!

Ludo’.

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

* Re: [PATCH 2/2] gnu: ratpoison: Clean definition.
  2015-08-18 16:31   ` Ludovic Courtès
@ 2015-08-25 21:54     ` Mathieu Lirzin
  0 siblings, 0 replies; 6+ messages in thread
From: Mathieu Lirzin @ 2015-08-25 21:54 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

ludo@gnu.org (Ludovic Courtès) writes:

> Mathieu Lirzin <mthl@openmailbox.org> skribis:
>
>> * gnu/packages/ratpoison.scm (ratpoison)[arguments]: Use modify-phases.
>>   [inputs]: Sort alist.  Move ratpoison.desktop to ...
                    ^^^
>>   [source]: Fix indentation.
>>   [native-inputs]: Likewise.  ... here.
>
> It’s OK to not mention trivial reindentation here.  Otherwise LGTM,
> thanks!

Done in 45fed6d32c288dbf5400ace42179256036c4c233 with "Sort alphabetically."
instead of "Sort alist." because the field 'inputs' is not a proper alist.

--
Mathieu Lirzin

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

end of thread, other threads:[~2015-08-25 21:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-06 16:59 [PATCH 0/2] Ratpoison update and cleanup Mathieu Lirzin
2015-08-06 16:59 ` [PATCH 1/2] gnu: ratpoison: Update to 1.4.8 Mathieu Lirzin
2015-08-08 18:50   ` Mark H Weaver
2015-08-06 16:59 ` [PATCH 2/2] gnu: ratpoison: Clean definition Mathieu Lirzin
2015-08-18 16:31   ` Ludovic Courtès
2015-08-25 21:54     ` Mathieu Lirzin

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.