From patchwork Sat May 31 16:54:55 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Pisemsky X-Patchwork-Id: 42962 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7E73727BC4A; Sat, 31 May 2025 17:56:15 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 26E9627BC49 for ; Sat, 31 May 2025 17:56:14 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uLPV7-0006Qa-7N; Sat, 31 May 2025 12:56:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uLPV5-0006Pc-8y for guix-patches@gnu.org; Sat, 31 May 2025 12:56:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uLPV4-0007g4-Ii for guix-patches@gnu.org; Sat, 31 May 2025 12:56:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=SDEu13EBCB6MhDa+gG0HvFMO8ts3V/FMMAb6bRV8zbs=; b=sy0+zDsKUN7ETETz0N54jpgE31MH7GH2hECAf96rALsq2TzNL1wLI2a+iXJpKhlrINrDWLzwy0emueWIRnDKgzTWRr3pJik3RP7LSo/wpKKfBZrGn3TWKKBWjWiXZStWe5AX0lADDRtJ9+Tl1lJ59NWvP2s5D8Ou7QquVVDQJ6sCrsXUix2TswBFWGbDTDehVQHIOCd2wUtc4auhDsQ3upBKhwbANjEZ55ujRQcDrFaWS1O24UaN+U7v0YpUiAIim68mp88PKSE7MqtaL/oOS/MtQ90scsD/VDWvdes4H1f83KGj3cDC7LyYvx+k/7zFIrVzjZc1ww1m4BXFfVvDVQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1uLPV4-0001na-43 for guix-patches@gnu.org; Sat, 31 May 2025 12:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#78652] [PATCH] gnu: guile-mqtt: Update to 1.0.0. Resent-From: Evgeny Pisemsky Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 31 May 2025 16:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 78652 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 78652@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17487105296592 (code B ref -1); Sat, 31 May 2025 16:56:01 +0000 Received: (at submit) by debbugs.gnu.org; 31 May 2025 16:55:29 +0000 Received: from localhost ([127.0.0.1]:59425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uLPUV-0001i2-6q for submit@debbugs.gnu.org; Sat, 31 May 2025 12:55:28 -0400 Received: from lists.gnu.org ([2001:470:142::17]:41622) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uLPUS-0001c6-Nq for submit@debbugs.gnu.org; Sat, 31 May 2025 12:55:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uLPUE-0006Ax-UN for guix-patches@gnu.org; Sat, 31 May 2025 12:55:11 -0400 Received: from pisemsky.site ([103.54.19.55]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uLPUC-0007dw-KJ for guix-patches@gnu.org; Sat, 31 May 2025 12:55:10 -0400 Received: from localhost.localdomain ( [212.233.84.83]) by pisemsky.site (OpenSMTPD) with ESMTPSA id aa1fdc75 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Sat, 31 May 2025 16:54:59 +0000 (UTC) From: Evgeny Pisemsky Date: Sat, 31 May 2025 19:54:55 +0300 Message-ID: X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Received-SPF: pass client-ip=103.54.19.55; envelope-from=mail@pisemsky.site; helo=pisemsky.site X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/guile-xyz.scm (guile-mqtt): Update to 1.0.0. [source]: Fetch from git repository. [arguments]: Patch extension path before build. [native-inputs]: Add autoconf, automake, nyacc-2.01, texinfo. Change-Id: I04c5a65a6568b94cf7309b5a8b6ccfa31d5c9c4e --- gnu/packages/guile-xyz.scm | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) base-commit: d8693b3c8666450b39c81b9f59541a2b6f7100fe diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index e6aea6d67b..b25061eb07 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -1652,15 +1652,16 @@ (define-public guile-aws (define-public guile-mqtt (package (name "guile-mqtt") - (version "0.2.1") + (version "1.0.0") (source (origin - (method url-fetch) - (uri (string-append "https://github.com/mdjurfeldt/" name - "/releases/download/v" version - "/" name "-" version ".tar.gz")) + (method git-fetch) + (uri (git-reference + (url "https://github.com/mdjurfeldt/guile-mqtt") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 "16a3r6yk41yskwv4qbkrsi0f5rvc7aw2s5di74i8y89j1x9yp9zs")))) + (base32 "1lvxic93cyzhdq7gb22pfz5j5pf7b1pcv0ahblkan8jbhzpqxvm0")))) (build-system gnu-build-system) (arguments (list @@ -1668,15 +1669,23 @@ (define-public guile-mqtt #~(list "GUILE_AUTO_COMPILE=0") #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'patch-extension-path + (add-before 'build '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)) + (setenv "HOME" "/tmp") + (with-directory-excursion "module" + (invoke "make" "ffi/mosquitto.scm") + (substitute* "ffi/mosquitto.scm" + (("list #f \"libmosquitto\"") + (string-append + "list #f \"" + (search-input-file inputs "/lib/libmosquitto.so") + "\""))))))))) + (native-inputs (list autoconf + automake + guile-3.0 + nyacc-2.01 + pkg-config + texinfo)) (inputs (list mosquitto)) (home-page "https://github.com/mdjurfeldt/guile-mqtt") (synopsis "Guile bindings for the libmosquitto library")