GNU bug report logs - #74818
[PATCH] gnu: cl-nodgui: Update to 0.7.2.0-2.9a1b2c6.

Previous Next

Package: guix-patches;

Reported by: GNU Guix Live <cage-dev <at> twistfold.it>

Date: Thu, 12 Dec 2024 11:17:02 UTC

Severity: normal

Tags: patch

Done: Guillaume Le Vaillant <glv <at> posteo.net>

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 74818 in the body.
You can then email your comments to 74818 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#74818; Package guix-patches. (Thu, 12 Dec 2024 11:17:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to GNU Guix Live <cage-dev <at> twistfold.it>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 12 Dec 2024 11:17:02 GMT) Full text and rfc822 format available.

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

From: GNU Guix Live <cage-dev <at> twistfold.it>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: cl-nodgui: Update to 0.7.2.0-2.9a1b2c6.
Date: Thu, 12 Dec 2024 12:16:15 +0100
Change-Id: If230ce77603bfc30686a1036908687d461312b75
---
 gnu/packages/lisp-xyz.scm | 25 ++++++++-----------------
 1 file changed, 8 insertions(+), 17 deletions(-)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 16f3fe6b1b..ecbbd125f6 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -22844,11 +22844,11 @@ (define-public ecl-nkeymaps
   (sbcl-package->ecl-package sbcl-nkeymaps))
 
 (define-public sbcl-nodgui
-  (let ((commit "dc3efed8f93d4955e59347824f8f6d018e1a22e0")
-        (revision "1"))
+  (let ((commit "9a1b2c6419adce2ba317497328276f8d63843279")
+        (revision "2"))
     (package
       (name "sbcl-nodgui")
-      (version (git-version "0.7.0.3" revision commit))
+      (version (git-version "0.7.2.0" revision commit))
       (source
        (origin
          (method git-fetch)
@@ -22857,10 +22857,12 @@ (define-public sbcl-nodgui
                (commit commit)))
          (file-name (git-file-name "cl-nodgui" version))
          (sha256
-          (base32 "1kjbimzl9q74dz1fhl03n49607li55q6h0kdygfyr0n8cnf5638j"))))
+          (base32 "1qanhxn46bwq8a10v61n46q4j8avp7n1m2687bi2wdylz1pgakyq"))))
       (build-system asdf-build-system/sbcl)
       (native-inputs
        (list sbcl-clunit2))
+      (propagated-inputs
+       (list tk tklib))
       (inputs
        (list sbcl-alexandria
              sbcl-bordeaux-threads
@@ -22878,19 +22880,8 @@ (define-public sbcl-nodgui
              sbcl-sdl2-ttf
              sbcl-static-vectors
              sbcl-trivial-garbage
-             sbcl-zpng
-             tk
-             tklib))
-      (arguments
-       (list #:phases
-             #~(modify-phases %standard-phases
-                 (add-after 'unpack 'fix-paths
-                   (lambda* (#:key inputs #:allow-other-keys)
-                     (substitute* "src/wish-communication.lisp"
-                       (("#-freebsd \"wish\"")
-                        (string-append "#-freebsd \""
-                                       (search-input-file inputs "/bin/wish")
-                                       "\""))))))))
+             sbcl-zpng))
+      (arguments '())
       (synopsis "Common Lisp bindings for the Tk GUI toolkit")
       (description
        "Nodgui (@emph{No Drama GUI}) is a Common Lisp binding for the Tk GUI

base-commit: 27750bd0cddddab9e900f289a5520314ef66487e
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#74818; Package guix-patches. (Tue, 17 Dec 2024 10:51:02 GMT) Full text and rfc822 format available.

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

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: GNU Guix Live <cage-dev <at> twistfold.it>
Cc: 74818 <at> debbugs.gnu.org
Subject: Re: [bug#74818] [PATCH] gnu: cl-nodgui: Update to 0.7.2.0-2.9a1b2c6.
Date: Tue, 17 Dec 2024 10:50:36 +0000
[Message part 1 (text/plain, inline)]
GNU Guix Live <cage-dev <at> twistfold.it> skribis:

> Change-Id: If230ce77603bfc30686a1036908687d461312b75
> ---
>  gnu/packages/lisp-xyz.scm | 25 ++++++++-----------------
>  1 file changed, 8 insertions(+), 17 deletions(-)
>
> diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
> index 16f3fe6b1b..ecbbd125f6 100644
> --- a/gnu/packages/lisp-xyz.scm
> +++ b/gnu/packages/lisp-xyz.scm
> @@ -22844,11 +22844,11 @@ (define-public ecl-nkeymaps
>    (sbcl-package->ecl-package sbcl-nkeymaps))
>  
>  (define-public sbcl-nodgui
> [...]
> +      (propagated-inputs
> +       (list tk tklib))
>        (inputs
>         (list sbcl-alexandria
>               sbcl-bordeaux-threads
> @@ -22878,19 +22880,8 @@ (define-public sbcl-nodgui
>               sbcl-sdl2-ttf
>               sbcl-static-vectors
>               sbcl-trivial-garbage
> -             sbcl-zpng
> -             tk
> -             tklib))
> -      (arguments
> -       (list #:phases
> -             #~(modify-phases %standard-phases
> -                 (add-after 'unpack 'fix-paths
> -                   (lambda* (#:key inputs #:allow-other-keys)
> -                     (substitute* "src/wish-communication.lisp"
> -                       (("#-freebsd \"wish\"")
> -                        (string-append "#-freebsd \""
> -                                       (search-input-file inputs "/bin/wish")
> -                                       "\""))))))))

Hi.
Why did you replace the 'fix-paths' phase by propagated inputs?
We usually try to avoid propagating inputs if possible as it can create
conflicts in profiles.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#74818; Package guix-patches. (Tue, 17 Dec 2024 15:18:02 GMT) Full text and rfc822 format available.

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

From: cage <cage-dev <at> twistfold.it>
To: Guillaume Le Vaillant <glv <at> posteo.net>
Cc: 74818 <at> debbugs.gnu.org
Subject: Re: [bug#74818] [PATCH] gnu: cl-nodgui: Update to 0.7.2.0-2.9a1b2c6.
Date: Tue, 17 Dec 2024 16:17:28 +0100
On 17/12/24 11:50, Guillaume Le Vaillant wrote:

> Hi.

Hi, thanks for reviewing this patch!

> Why did you replace the 'fix-paths' phase by propagated inputs?
> We usually try to avoid propagating inputs if possible as it can
> create conflicts in profiles.

I was not aware of this issue, sorry! This version of the library, at 
runtime, tries to guess the path of a valid wish executable and, then, 
starts a process executing said executable, communicating with the 
parent process via a pipe. The `fix-path' is no more applicable as it 
assumes that the path to wish is hardcoded in the source code, which is 
not true, starting from this version of the library. Moreover leaving 
the `tk' dependency to `inputs' makes the library unable to guess a path 
for wish,  leading to a crash at runtime. My changes seems to make the 
library works as intended but I am very open to suggestions if a better 
solution exists.

Bye!
C.






Information forwarded to guix-patches <at> gnu.org:
bug#74818; Package guix-patches. (Tue, 17 Dec 2024 19:20:01 GMT) Full text and rfc822 format available.

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

From: GNU Guix Live <cage-dev <at> twistfold.it>
To: glv <at> posteo.net
Cc: 74818 <at> debbugs.gnu.org
Subject: [PATCH] gnu: cl-nodgui: Update to 0.7.2.0-2.9a1b2c6.
Date: Tue, 17 Dec 2024 20:19:18 +0100
Change-Id: If230ce77603bfc30686a1036908687d461312b75
---
 gnu/packages/lisp-xyz.scm | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 827febc703..a01e48d93e 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -22844,11 +22844,11 @@ (define-public ecl-nkeymaps
   (sbcl-package->ecl-package sbcl-nkeymaps))
 
 (define-public sbcl-nodgui
-  (let ((commit "dc3efed8f93d4955e59347824f8f6d018e1a22e0")
-        (revision "1"))
+  (let ((commit "9a1b2c6419adce2ba317497328276f8d63843279")
+        (revision "2"))
     (package
       (name "sbcl-nodgui")
-      (version (git-version "0.7.0.3" revision commit))
+      (version (git-version "0.7.2.0" revision commit))
       (source
        (origin
          (method git-fetch)
@@ -22857,7 +22857,7 @@ (define-public sbcl-nodgui
                (commit commit)))
          (file-name (git-file-name "cl-nodgui" version))
          (sha256
-          (base32 "1kjbimzl9q74dz1fhl03n49607li55q6h0kdygfyr0n8cnf5638j"))))
+          (base32 "1qanhxn46bwq8a10v61n46q4j8avp7n1m2687bi2wdylz1pgakyq"))))
       (build-system asdf-build-system/sbcl)
       (native-inputs
        (list sbcl-clunit2))
@@ -22880,15 +22880,16 @@ (define-public sbcl-nodgui
              sbcl-trivial-garbage
              sbcl-zpng
              tk
-             tklib))
+             tklib
+             tcllib))
       (arguments
        (list #:phases
              #~(modify-phases %standard-phases
                  (add-after 'unpack 'fix-paths
                    (lambda* (#:key inputs #:allow-other-keys)
                      (substitute* "src/wish-communication.lisp"
-                       (("#-freebsd \"wish\"")
-                        (string-append "#-freebsd \""
+                       (("\\(guess-wish-interpreter-path\\)")
+                        (string-append "\""
                                        (search-input-file inputs "/bin/wish")
                                        "\""))))))))
       (synopsis "Common Lisp bindings for the Tk GUI toolkit")

base-commit: 4a314f880be5c71b59b6d72a9b238b938c348563
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#74818; Package guix-patches. (Tue, 17 Dec 2024 19:28:02 GMT) Full text and rfc822 format available.

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

From: cage <cage-dev <at> twistfold.it>
To: Guillaume Le Vaillant <glv <at> posteo.net>
Cc: 74818 <at> debbugs.gnu.org
Subject: Re: [bug#74818] [PATCH] gnu: cl-nodgui: Update to 0.7.2.0-2.9a1b2c6.
Date: Tue, 17 Dec 2024 20:27:39 +0100
Hi!

Please consider checking my last patch, I think I was able to properly 
get rid of the `propagated-inputs', while keeping the package working of 
course! :)

Bye!
C.





Reply sent to Guillaume Le Vaillant <glv <at> posteo.net>:
You have taken responsibility. (Thu, 19 Dec 2024 10:23:02 GMT) Full text and rfc822 format available.

Notification sent to GNU Guix Live <cage-dev <at> twistfold.it>:
bug acknowledged by developer. (Thu, 19 Dec 2024 10:23:02 GMT) Full text and rfc822 format available.

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

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: GNU Guix Live <cage-dev <at> twistfold.it>
Cc: 74818-done <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: cl-nodgui: Update to 0.7.2.0-2.9a1b2c6.
Date: Thu, 19 Dec 2024 10:21:50 +0000
[Message part 1 (text/plain, inline)]
Patch applied as 91a347a99b852b45b659e53a72d63d32855daa8a.
Thanks.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#74818; Package guix-patches. (Thu, 19 Dec 2024 19:58:01 GMT) Full text and rfc822 format available.

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

From: cage <cage-dev <at> twistfold.it>
To: Guillaume Le Vaillant <glv <at> posteo.net>
Cc: 74818-done <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: cl-nodgui: Update to 0.7.2.0-2.9a1b2c6.
Date: Thu, 19 Dec 2024 20:57:06 +0100

On 19/12/24 11:21, Guillaume Le Vaillant wrote:
> Patch applied as 91a347a99b852b45b659e53a72d63d32855daa8a.
> Thanks.

Thank you for your suggestions!
C.





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 17 Jan 2025 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 246 days ago.

Previous Next


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