GNU bug report logs - #78301
[PATCH] gnu: guile-mqtt: Patch extension path.

Previous Next

Package: guix-patches;

Reported by: Evgeny Pisemsky <mail <at> pisemsky.site>

Date: Wed, 7 May 2025 15:19:01 UTC

Severity: normal

Tags: patch

Done: Z572 <zhengjunjie <at> iscas.ac.cn>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Z572 <zhengjunjie <at> iscas.ac.cn>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#78301: closed ([PATCH] gnu: guile-mqtt: Patch extension path.)
Date: Thu, 08 May 2025 05:38:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 08 May 2025 13:37:44 +0800
with message-id <87selfmzmf.fsf <at> iscas.ac.cn>
and subject line Re: [bug#78301] [PATCH v1] gnu: guile-mqtt: Patch extension path.
has caused the debbugs.gnu.org bug report #78301,
regarding [PATCH] gnu: guile-mqtt: Patch extension path.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
78301: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78301
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Evgeny Pisemsky <mail <at> pisemsky.site>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: guile-mqtt: Patch extension path.
Date: Wed,  7 May 2025 18:18:13 +0300
* gnu/packages/guile-xyz.scm (guile-mqtt): Patch extension path.
[arguments]: Add 'patch-extension-path phase.

Change-Id: Ifbbd0adebcf82a36f674ab3fded3db5ba04b98b0
---
 gnu/packages/guile-xyz.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 28a94dc83a..7c6e3ade3e 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -1658,7 +1658,16 @@ (define-public guile-mqtt
     (build-system gnu-build-system)
     (arguments
      (list
-      #:make-flags #~(list "GUILE_AUTO_COMPILE=0")))
+      #:make-flags
+      #~(list "GUILE_AUTO_COMPILE=0")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-extension-path
+            (lambda* (#:key inputs #:allow-other-keys)
+              (substitute* "module/ffi/mosquitto.scm"
+                (("list #f \"libmosquitto\"")
+                 (format #f "list #f \"~a/lib/libmosquitto\""
+                         (assoc-ref inputs "mosquitto")))))))))
     (native-inputs (list guile-3.0 pkg-config))
     (inputs (list mosquitto))
     (home-page "https://github.com/mdjurfeldt/guile-mqtt")

base-commit: ec95c71c01144fcae1a3d079e0d0aec6087b9d2a
-- 
2.49.0



[Message part 3 (message/rfc822, inline)]
From: Z572 <zhengjunjie <at> iscas.ac.cn>
To: Evgeny Pisemsky <mail <at> pisemsky.site>
Cc: 78301-done <at> debbugs.gnu.org
Subject: Re: [bug#78301] [PATCH v1] gnu: guile-mqtt: Patch extension path.
Date: Thu, 08 May 2025 13:37:44 +0800
[Message part 4 (text/plain, inline)]
Evgeny Pisemsky <mail <at> pisemsky.site> writes:

> * gnu/packages/guile-xyz.scm (guile-mqtt): Patch extension path.
> [arguments]: Add 'patch-extension-path phase.
>
> Change-Id: Ifbbd0adebcf82a36f674ab3fded3db5ba04b98b0
> ---
>  gnu/packages/guile-xyz.scm | 13 ++++++++++++-
>  1 file changed, 12 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
> index 28a94dc83a..12796749ec 100644
> --- a/gnu/packages/guile-xyz.scm
> +++ b/gnu/packages/guile-xyz.scm
> @@ -1658,7 +1658,18 @@ (define-public guile-mqtt
>      (build-system gnu-build-system)
>      (arguments
>       (list
> -      #:make-flags #~(list "GUILE_AUTO_COMPILE=0")))
> +      #:make-flags
> +      #~(list "GUILE_AUTO_COMPILE=0")
> +      #:phases
> +      #~(modify-phases %standard-phases
> +          (add-after 'unpack 'patch-extension-path
> +            (lambda* (#:key inputs #:allow-other-keys)
> +              (substitute* "module/ffi/mosquitto.scm"
> +                (("list #f \"libmosquitto\"")
> +                 (string-append
> +                  "list #f \""
> +                  (search-input-file inputs "/lib/libmosquitto.so")
> +                  "\""))))))))
>      (native-inputs (list guile-3.0 pkg-config))
>      (inputs (list mosquitto))
>      (home-page "https://github.com/mdjurfeldt/guile-mqtt")
pushed, closing.

If you are interested, you can also try to adjust the package to compile
from the git repository.

>
> base-commit: 295a35ba20257e965c4eba8488de99fce7bf027f
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 13 days ago.

Previous Next


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