all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#61975] [PATCH] gnu: i3-wm: Add missing propagated inputs.
@ 2023-03-05  6:28 SeerLite via Guix-patches via
  2023-03-06  8:30 ` 宋文武 via Guix-patches via
  2023-03-07  3:44 ` [bug#61975] [PATCH v2 1/2] gnu: i3-wm: Use new package style SeerLite via Guix-patches via
  0 siblings, 2 replies; 6+ messages in thread
From: SeerLite via Guix-patches via @ 2023-03-05  6:28 UTC (permalink / raw)
  To: 61975; +Cc: SeerLite

perl-anyevent-i3 is necessary to run i3-save-tree.

* gnu/packages/wm.scm (i3-wm)[propagated-inputs]: Add perl and perl-anyevent-i3.
---
 gnu/packages/wm.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index 5b8dbd5c70..8816f110bb 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -356,6 +356,8 @@ (define-public i3-wm
            startup-notification
            pango
            cairo))
+    (propagated-inputs
+     (list perl perl-anyevent-i3))
     (native-inputs
      (list which
            perl
-- 
2.39.1





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

* [bug#61975] [PATCH] gnu: i3-wm: Add missing propagated inputs.
  2023-03-05  6:28 [bug#61975] [PATCH] gnu: i3-wm: Add missing propagated inputs SeerLite via Guix-patches via
@ 2023-03-06  8:30 ` 宋文武 via Guix-patches via
  2023-03-07  3:47   ` SeerLite via Guix-patches via
  2023-03-07  3:44 ` [bug#61975] [PATCH v2 1/2] gnu: i3-wm: Use new package style SeerLite via Guix-patches via
  1 sibling, 1 reply; 6+ messages in thread
From: 宋文武 via Guix-patches via @ 2023-03-06  8:30 UTC (permalink / raw)
  To: SeerLite; +Cc: 61975

SeerLite <seerlite@disroot.org> writes:

> perl-anyevent-i3 is necessary to run i3-save-tree.
>
> * gnu/packages/wm.scm (i3-wm)[propagated-inputs]: Add perl and perl-anyevent-i3.
> ---
>  gnu/packages/wm.scm | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
> index 5b8dbd5c70..8816f110bb 100644
> --- a/gnu/packages/wm.scm
> +++ b/gnu/packages/wm.scm
> @@ -356,6 +356,8 @@ (define-public i3-wm
>             startup-notification
>             pango
>             cairo))
> +    (propagated-inputs
> +     (list perl perl-anyevent-i3))

Hello, this can also be done by 'wrap-program' i3-save-tree with
PERL5LIB.  And a wrapper is considered better than propagated-input here
due to the latter will introduce perl and its libraries into user's
profile, which may not be what a typical i3 user want and will also
increase the chance of conflicts in profile.

Could you send an update patch to use 'wrap-program' for i3-save-tree?
Thank you!




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

* [bug#61975] [PATCH v2 1/2] gnu: i3-wm: Use new package style.
  2023-03-05  6:28 [bug#61975] [PATCH] gnu: i3-wm: Add missing propagated inputs SeerLite via Guix-patches via
  2023-03-06  8:30 ` 宋文武 via Guix-patches via
@ 2023-03-07  3:44 ` SeerLite via Guix-patches via
  2023-03-07  3:44   ` [bug#61975] [PATCH v2 2/2] gnu: i3-wm: Add missing inputs for i3-save-tree SeerLite via Guix-patches via
  2023-06-09 21:00   ` bug#61975: [PATCH] gnu: i3-wm: Add missing propagated inputs Ludovic Courtès
  1 sibling, 2 replies; 6+ messages in thread
From: SeerLite via Guix-patches via @ 2023-03-07  3:44 UTC (permalink / raw)
  To: 61975; +Cc: SeerLite

* gnu/packages/wm.scm (i3-wm)[arguments]: Use gexps.
---
 gnu/packages/wm.scm | 27 +++++++++++++--------------
 1 file changed, 13 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index 5b8dbd5c70..3bdbc43c51 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -325,20 +325,19 @@ (define-public i3-wm
                 "0jrya4rhh46sivlmqaqc4n9abpp1yn1ajhi616gn75cxwl8rjqr8"))))
     (build-system meson-build-system)
     (arguments
-     `(;; The test suite requires the unpackaged Xephyr X server.
-       #:tests? #f
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'install 'patch-session-file
-           (lambda* (#:key outputs #:allow-other-keys)
-             (let* ((out (assoc-ref outputs "out"))
-                    (i3 (string-append out "/bin/i3"))
-                    (i3-with-shmlog (string-append out "/bin/i3-with-shmlog")))
-               (substitute* (string-append out "/share/xsessions/i3.desktop")
-                 (("Exec=i3") (string-append "Exec=" i3)))
-               (substitute* (string-append out "/share/xsessions/i3-with-shmlog.desktop")
-                 (("Exec=i3-with-shmlog") (string-append "Exec=" i3-with-shmlog)))
-               #t))))))
+     (list
+      ;; The test suite requires the unpackaged Xephyr X server.
+      #:tests? #f
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'install 'patch-session-file
+            (lambda _
+              (let* ((i3 (string-append #$output "/bin/i3"))
+                     (i3-with-shmlog (string-append #$output "/bin/i3-with-shmlog")))
+                (substitute* (string-append #$output "/share/xsessions/i3.desktop")
+                  (("Exec=i3") (string-append "Exec=" i3)))
+                (substitute* (string-append #$output "/share/xsessions/i3-with-shmlog.desktop")
+                  (("Exec=i3-with-shmlog") (string-append "Exec=" i3-with-shmlog)))))))))
     (inputs
      (list libxcb
            xcb-util
-- 
2.39.1





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

* [bug#61975] [PATCH v2 2/2] gnu: i3-wm: Add missing inputs for i3-save-tree.
  2023-03-07  3:44 ` [bug#61975] [PATCH v2 1/2] gnu: i3-wm: Use new package style SeerLite via Guix-patches via
@ 2023-03-07  3:44   ` SeerLite via Guix-patches via
  2023-06-09 21:00   ` bug#61975: [PATCH] gnu: i3-wm: Add missing propagated inputs Ludovic Courtès
  1 sibling, 0 replies; 6+ messages in thread
From: SeerLite via Guix-patches via @ 2023-03-07  3:44 UTC (permalink / raw)
  To: 61975; +Cc: SeerLite

* gnu/packages/wm.scm (i3-wm)[inputs]: Add perl, perl-anyevent-i3,
perl-json-xs, perl-common-sense, and perl-types-serialiser.
[arguments]: Add phase to wrap i3-save-tree to use perl inputs listed above.
---
 gnu/packages/wm.scm | 25 ++++++++++++++++++++++---
 1 file changed, 22 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index 3bdbc43c51..fe9a7b959d 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -332,12 +332,26 @@ (define-public i3-wm
       #~(modify-phases %standard-phases
           (add-after 'install 'patch-session-file
             (lambda _
-              (let* ((i3 (string-append #$output "/bin/i3"))
-                     (i3-with-shmlog (string-append #$output "/bin/i3-with-shmlog")))
+              (let ((i3 (string-append #$output "/bin/i3"))
+                    (i3-with-shmlog (string-append #$output "/bin/i3-with-shmlog")))
                 (substitute* (string-append #$output "/share/xsessions/i3.desktop")
                   (("Exec=i3") (string-append "Exec=" i3)))
                 (substitute* (string-append #$output "/share/xsessions/i3-with-shmlog.desktop")
-                  (("Exec=i3-with-shmlog") (string-append "Exec=" i3-with-shmlog)))))))))
+                  (("Exec=i3-with-shmlog") (string-append "Exec=" i3-with-shmlog))))))
+           (add-after 'patch-session-file 'wrap-perl-bin
+             (lambda* (#:key inputs #:allow-other-keys)
+               (let* ((i3-save-tree (string-append #$output "/bin/i3-save-tree"))
+                      (perl-lib-names '("perl-anyevent"
+                                        "perl-anyevent-i3"
+                                        "perl-json-xs"
+                                        "perl-common-sense"
+                                        "perl-types-serialiser"))
+                      (perl-lib-paths
+                       (map (lambda (name)
+                              (string-append (assoc-ref inputs name) "/lib/perl5/site_perl"))
+                            perl-lib-names)))
+                 (wrap-program i3-save-tree
+                               `("PERL5LIB" ":" prefix ,perl-lib-paths))))))))
     (inputs
      (list libxcb
            xcb-util
@@ -349,6 +363,11 @@ (define-public i3-wm
            libev
            yajl
            xmlto
+           perl
+           perl-anyevent-i3
+           perl-json-xs
+           perl-common-sense
+           perl-types-serialiser
            perl-pod-simple
            libx11
            pcre2
-- 
2.39.1





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

* [bug#61975] [PATCH] gnu: i3-wm: Add missing propagated inputs.
  2023-03-06  8:30 ` 宋文武 via Guix-patches via
@ 2023-03-07  3:47   ` SeerLite via Guix-patches via
  0 siblings, 0 replies; 6+ messages in thread
From: SeerLite via Guix-patches via @ 2023-03-07  3:47 UTC (permalink / raw)
  To: 宋文武; +Cc: 61975

[-- Attachment #1: Type: text/html, Size: 2393 bytes --]

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

* bug#61975: [PATCH] gnu: i3-wm: Add missing propagated inputs.
  2023-03-07  3:44 ` [bug#61975] [PATCH v2 1/2] gnu: i3-wm: Use new package style SeerLite via Guix-patches via
  2023-03-07  3:44   ` [bug#61975] [PATCH v2 2/2] gnu: i3-wm: Add missing inputs for i3-save-tree SeerLite via Guix-patches via
@ 2023-06-09 21:00   ` Ludovic Courtès
  1 sibling, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2023-06-09 21:00 UTC (permalink / raw)
  To: SeerLite; +Cc: 61975-done

SeerLite <seerlite@disroot.org> skribis:

> * gnu/packages/wm.scm (i3-wm)[arguments]: Use gexps.

[...]

> * gnu/packages/wm.scm (i3-wm)[inputs]: Add perl, perl-anyevent-i3,
> perl-json-xs, perl-common-sense, and perl-types-serialiser.
> [arguments]: Add phase to wrap i3-save-tree to use perl inputs listed above.

Finally applied, thanks!

Ludo’.




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

end of thread, other threads:[~2023-06-09 21:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-05  6:28 [bug#61975] [PATCH] gnu: i3-wm: Add missing propagated inputs SeerLite via Guix-patches via
2023-03-06  8:30 ` 宋文武 via Guix-patches via
2023-03-07  3:47   ` SeerLite via Guix-patches via
2023-03-07  3:44 ` [bug#61975] [PATCH v2 1/2] gnu: i3-wm: Use new package style SeerLite via Guix-patches via
2023-03-07  3:44   ` [bug#61975] [PATCH v2 2/2] gnu: i3-wm: Add missing inputs for i3-save-tree SeerLite via Guix-patches via
2023-06-09 21:00   ` bug#61975: [PATCH] gnu: i3-wm: Add missing propagated inputs Ludovic Courtès

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.