From unknown Fri Jun 20 07:14:40 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#78301 <78301@debbugs.gnu.org> To: bug#78301 <78301@debbugs.gnu.org> Subject: Status: [PATCH] gnu: guile-mqtt: Patch extension path. Reply-To: bug#78301 <78301@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:14:40 +0000 retitle 78301 [PATCH] gnu: guile-mqtt: Patch extension path. reassign 78301 guix-patches submitter 78301 Evgeny Pisemsky severity 78301 normal tag 78301 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Wed May 07 11:18:46 2025 Received: (at submit) by debbugs.gnu.org; 7 May 2025 15:18:46 +0000 Received: from localhost ([127.0.0.1]:45639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uCgXm-0001dk-1T for submit@debbugs.gnu.org; Wed, 07 May 2025 11:18:46 -0400 Received: from lists.gnu.org ([2001:470:142::17]:39250) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uCgXj-0001d8-Ez for submit@debbugs.gnu.org; Wed, 07 May 2025 11:18:43 -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 1uCgXa-0004EV-DH for guix-patches@gnu.org; Wed, 07 May 2025 11:18:34 -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 1uCgXY-0005Ba-Jz for guix-patches@gnu.org; Wed, 07 May 2025 11:18:34 -0400 Received: from localhost.localdomain ( [212.233.86.99]) by pisemsky.site (OpenSMTPD) with ESMTPSA id 21049e5a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Wed, 7 May 2025 15:18:03 +0000 (UTC) From: Evgeny Pisemsky To: guix-patches@gnu.org Subject: [PATCH] gnu: guile-mqtt: Patch extension path. Date: Wed, 7 May 2025 18:18:13 +0300 Message-ID: <679de4b93ba92b2b4d9f7272ca5531275f7ff446.1746631093.git.mail@pisemsky.site> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=103.54.19.55; envelope-from=mail@pisemsky.site; helo=pisemsky.site X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SBL_CSS=3.335, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 4.5 (++++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * 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(-) Content analysis details: (4.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [212.233.86.99 listed in zen.spamhaus.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 3.5 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * 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(-) Content analysis details: (3.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [212.233.86.99 listed in zen.spamhaus.org] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager * 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 From debbugs-submit-bounces@debbugs.gnu.org Wed May 07 11:29:40 2025 Received: (at 78301) by debbugs.gnu.org; 7 May 2025 15:29:40 +0000 Received: from localhost ([127.0.0.1]:45719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uCgiK-0002JC-Ez for submit@debbugs.gnu.org; Wed, 07 May 2025 11:29:40 -0400 Received: from mail.z572.online ([88.99.160.180]:40068) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uCgiH-0002Iy-5A for 78301@debbugs.gnu.org; Wed, 07 May 2025 11:29:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=z572.online; s=me; t=1746632188; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=d/EEWmQgdQfN2HH6t5rNbwbOguuDbQa+J1arHLPSIos=; b=Lq0BOuHGk63cUqlxuX8wHX86SvdyPhJMBa7bTfIsEkXTbx1tgBPksfP967VNyJmlJHfwgK 2EjoWF6dby8KGA9QsTkwfJLj19VNSAm3b9gYbEZeiMGQiGYpAx0ehYuMart2kzPmzYgfLq S2EkI19JDJ6SE+rsTIIXhp4KdsV/qhA= Received: from m ( [115.192.96.110]) by mail.z572.online (OpenSMTPD) with ESMTPSA id bec1afb9 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 7 May 2025 15:36:28 +0000 (UTC) From: Z572 To: Evgeny Pisemsky Subject: Re: [bug#78301] [PATCH] gnu: guile-mqtt: Patch extension path. In-Reply-To: <679de4b93ba92b2b4d9f7272ca5531275f7ff446.1746631093.git.mail@pisemsky.site> (Evgeny Pisemsky's message of "Wed, 7 May 2025 18:18:13 +0300") References: <679de4b93ba92b2b4d9f7272ca5531275f7ff446.1746631093.git.mail@pisemsky.site> User-Agent: mu4e 1.12.9; emacs 30.0.92 Date: Wed, 07 May 2025 23:29:27 +0800 Message-ID: <87ikmco2w8.fsf@z572.online> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Evgeny Pisemsky writes: > * gnu/packages/guile-xyz.scm (guile-mqtt): Patch extension path. > [arguments]: Add 'patch-extension-path phase. > > Change-Id: Ifbbd0adebcf82a36f674ab3fded3db5ba04b98b0 > --- > gnu/packages/guile-x [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [88.99.160.180 listed in sa-trusted.bondedsender.org] 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: z572.online (online)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [88.99.160.180 listed in bl.score.senderscore.com] 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-Debbugs-Envelope-To: 78301 Cc: 78301@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Evgeny Pisemsky writes: > * gnu/packages/guile-xyz.scm (guile-mqtt): Patch extension path. > [arguments]: Add 'patch-extension-path phase. > > Change-Id: Ifbbd0adebcf82a36f674ab3fded3db5ba04b98b0 > --- > gnu/packages/guile-x [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [88.99.160.180 listed in sa-trusted.bondedsender.org] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [88.99.160.180 listed in bl.score.senderscore.com] 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: z572.online (online)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --=-=-= Content-Type: text/plain Evgeny Pisemsky 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 | 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"))))))))) please use string-append. else if no "mosquitto" in inputs, The modified result is "list #f \"#f/lib/libmosquitto\"" > (native-inputs (list guile-3.0 pkg-config)) > (inputs (list mosquitto)) > (home-page "https://github.com/mdjurfeldt/guile-mqtt") > > base-commit: ec95c71c01144fcae1a3d079e0d0aec6087b9d2a --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfr6klGDOXiwIdX/bO1qpk+Gi3/AFAmgbfFcACgkQO1qpk+Gi 3/DIqw/9ECiLxKG9YUIks2k2+W0nPdZDiUBEph76IBHBED7XwRlZ2NerzuJStAY1 6+CgMg/4lAIy83zXTlsxlcWALEyC/mF2frSpbjC1u6rBggzMS7gXBQ2EVgCFJVcn XGVWZBQ5hc/DoB62vQD67MbKWUqsM20rgDshpgb78soBi6gcNjQciZTJrB2/amIe bHAN2CVmvcEsrQHDc+J0PQfmTB6+oVHXJmDcUOQCIPyK6u0Nhgb/x5rT6nSYAuah l4Q2Eevcc5vgYwmJCi2eRfQn6V6klf73rRgCrq5trBJ221UbcH4Q0ThaDu2oQWCs Wqb8s3w39lSFtIw/SfSeY7dsbpSql3XYum2WGF+vEcxaE66um+sMJfhG9GTayXT8 PET7uITCEv5S5HV3AfbDrYmanmZjf5CVwXDiNYNGvoUsXxRY+etiFOWjR1T9bG+H xKK9R/yIfjmwGLwTPqZblnaCELtHuSpPYP0//XZpHXu9cdxb8+tmS2muYQ4JBHFn e3xNeYmuITfKP+jqMgG65e5YtIvwknGg8MmKvqWpJzhd16Plaua2BcN73Zrr8V6T sPtCZfnYFZ4QL1fglGsnHJQb7a+Vm5SOfBCJnAZ0LXUZK+VOezsCgt4vIjgpP3me 72zZDVpMZVWtG2hIn/ReogKtas4cvbE4IVHsvAkvjUSsYRjuTG4= =kQYO -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 07 12:51:47 2025 Received: (at 78301) by debbugs.gnu.org; 7 May 2025 16:51:47 +0000 Received: from localhost ([127.0.0.1]:46513 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uChzn-0007cE-7F for submit@debbugs.gnu.org; Wed, 07 May 2025 12:51:47 -0400 Received: from mail.z572.online ([88.99.160.180]:58408) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uChzj-0007bv-IT for 78301@debbugs.gnu.org; Wed, 07 May 2025 12:51:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=z572.online; s=me; t=1746637114; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=o1HZAlvdlzEfQxI79QjPeL2l8U6Sv7TibBXkSS1SAz0=; b=wqwBA3hnRdlqBoY7goQuauQiAkIQTfVb26h2+y8moab7gqKsgPJlY/8x3+miyGrySczimL V8vEmEpvZgofpEcHN0tgTmMlE70K5UXcDhVysPSFbu6gopPXKz6qUKdbWe1AL/NyVSXTe0 n7asUWmIY+yMj3edjK+iwozb/kRjRE4= Received: from m ( [115.192.96.110]) by mail.z572.online (OpenSMTPD) with ESMTPSA id b6d1fb14 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 7 May 2025 16:58:34 +0000 (UTC) From: Z572 To: Evgeny Pisemsky Subject: Re: [bug#78301] [PATCH] gnu: guile-mqtt: Patch extension path. In-Reply-To: <87tt5we63y.fsf@pisemsky.site> (Evgeny Pisemsky's message of "Wed, 07 May 2025 19:30:09 +0300") References: <679de4b93ba92b2b4d9f7272ca5531275f7ff446.1746631093.git.mail@pisemsky.site> <87ikmco2w8.fsf@z572.online> <87tt5we63y.fsf@pisemsky.site> User-Agent: mu4e 1.12.9; emacs 30.0.92 Date: Thu, 08 May 2025 00:51:30 +0800 Message-ID: <877c2snz3h.fsf@z572.online> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Evgeny Pisemsky writes: > Z572 writes: > >> else if no "mosquitto" in inputs > > I don't get it. > > It is in inputs. for example, If I use the following codes ``` (define-public mosquitto-with-something (package (inherit mosquitto) (name "mosquitto-with-something") ... (license (list license:epl1.0 license:edl1.0))) [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [88.99.160.180 listed in sa-trusted.bondedsender.org] 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: z572.online (online)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [88.99.160.180 listed in bl.score.senderscore.com] 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-Debbugs-Envelope-To: 78301 Cc: 78301@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Evgeny Pisemsky writes: > Z572 writes: > >> else if no "mosquitto" in inputs > > I don't get it. > > It is in inputs. for example, If I use the following codes ``` (define-public mosquitto-with-something (package (inherit mosquitto) (name "mosquitto-with-something") ... (license (list license:epl1.0 license:edl1.0))) [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [88.99.160.180 listed in sa-trusted.bondedsender.org] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [88.99.160.180 listed in bl.score.senderscore.com] 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: z572.online (online)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --=-=-= Content-Type: text/plain Evgeny Pisemsky writes: > Z572 writes: > >> else if no "mosquitto" in inputs > > I don't get it. > > It is in inputs. for example, If I use the following codes ``` (define-public mosquitto-with-something (package (inherit mosquitto) (name "mosquitto-with-something") ... (license (list license:epl1.0 license:edl1.0)))) (define-public guile-mqtt-with-something (package (inherit guile-mqtt) (name "guile-mqtt-with-something") ... (inputs (list mosquitto-with-v)))) ``` guix build guile-mqtt-with-something will success, but if you see share/guile/site/3.0/ffi/mosquitto.scm, ``` (define (foreign-pointer-search name) (let loop ((libs (list #f "#f/lib/libmosquitto"))) (cond ((null? libs) (error "no library for ~s" name)) ((false-if-exception (foreign-library-pointer (car libs) name))) (else (loop (cdr libs)))))) ``` This will cause problems. It is best to report an error during build. A better approach is to use search-input-file. Instead of relying on names, look up /lib/libmosquitto.so. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfr6klGDOXiwIdX/bO1qpk+Gi3/AFAmgbj5IACgkQO1qpk+Gi 3/BtyRAAhYnDWqAr7DEnlmU9vlRCBrUufWTlYSH7k+PhIZgBsietAgur9YSsFkg2 V9AxBi7mFxjbKLYO1sPT1Y83hyehT6uxk3hET1t4k65plzePcCpCdeNPpcSHX/qt rSz4ZsjQvJibP7yAIqw119XiMZO4XjNimf7dIkq4dm0O6J4rkV1AbSZgyHfZ72xx kGB9QANOfEfBoLTwplOJKvLDNPp93c9DTUat8OZsN5vus7IZ0SsUy1yPKUu8rPxv mkC4KB29xzR6pkWfOjBjoRrYSKVlaWk7GPQZAHxddsxLJYuBafQQcuZ7iqiYe79e cVR1vo7o2ujv37i0Ort8YlL75ymJEneA/NZfkix7xjl0U/CdiNtffCyFoiv8Ani1 qr2A7IUVCZLwRB0TKfbeW+3AngbPZADjHy3M9oKvGm/GUv1kS+nF1N0nQaj6Wdsj XCB8XHTvpXMBHlV6Kx1Zb0uAMnxUNhrHN/EAmx2pU0i72a9sQORBcJWQeZEpjHbW vOTPje+FzkArktuYgsT7jPyd2/lOkwwxDSrKaAm71gDregpAqV3Qt9CCOGLyeiih 8dTGAB3cOIivEfqc07jidHQg3wdJnFes0R9SBOymP1gGfq2Y5h2yg0lDbb6wSOUx e4ftUR9MhG9c+IjFgEGa2moq448+YwDWo3eiukMQSBK3ClZdpTw= =8fUj -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 07 16:05:43 2025 Received: (at 78301) by debbugs.gnu.org; 7 May 2025 20:05:43 +0000 Received: from localhost ([127.0.0.1]:48198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uCl1S-0003K5-Vk for submit@debbugs.gnu.org; Wed, 07 May 2025 16:05:43 -0400 Received: from pisemsky.site ([103.54.19.55]:35930) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uCl1N-0003Jv-Ry for 78301@debbugs.gnu.org; Wed, 07 May 2025 16:05:38 -0400 Received: from localhost.localdomain ( [212.233.86.99]) by pisemsky.site (OpenSMTPD) with ESMTPSA id 678e32e3 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <78301@debbugs.gnu.org>; Wed, 7 May 2025 20:05:11 +0000 (UTC) From: Evgeny Pisemsky To: 78301@debbugs.gnu.org Subject: [PATCH v1] gnu: guile-mqtt: Patch extension path. Date: Wed, 7 May 2025 23:05:28 +0300 Message-ID: <674406a44611cad83ceeaf2321cb5a1166edb786.1746648328.git.mail@pisemsky.site> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * 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(-) Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [103.54.19.55 listed in sa-trusted.bondedsender.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [212.233.86.99 listed in zen.spamhaus.org] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [103.54.19.55 listed in bl.score.senderscore.com] X-Debbugs-Envelope-To: 78301 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * 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(-) Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [103.54.19.55 listed in sa-trusted.bondedsender.org] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [103.54.19.55 listed in bl.score.senderscore.com] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [212.233.86.99 listed in zen.spamhaus.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager * 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") base-commit: 295a35ba20257e965c4eba8488de99fce7bf027f -- 2.49.0 From debbugs-submit-bounces@debbugs.gnu.org Thu May 08 01:37:58 2025 Received: (at 78301-done) by debbugs.gnu.org; 8 May 2025 05:37:58 +0000 Received: from localhost ([127.0.0.1]:52406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uCtxF-0005Ua-SL for submit@debbugs.gnu.org; Thu, 08 May 2025 01:37:58 -0400 Received: from mail.z572.online ([88.99.160.180]:38546) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uCtxB-0005UP-M3 for 78301-done@debbugs.gnu.org; Thu, 08 May 2025 01:37:55 -0400 Received: from m ( [115.192.96.110]) by mail.z572.online (OpenSMTPD) with ESMTPSA id 08d97eea (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 8 May 2025 05:44:44 +0000 (UTC) From: Z572 To: Evgeny Pisemsky Subject: Re: [bug#78301] [PATCH v1] gnu: guile-mqtt: Patch extension path. In-Reply-To: <674406a44611cad83ceeaf2321cb5a1166edb786.1746648328.git.mail@pisemsky.site> (Evgeny Pisemsky's message of "Wed, 7 May 2025 23:05:28 +0300") References: <679de4b93ba92b2b4d9f7272ca5531275f7ff446.1746631093.git.mail@pisemsky.site> <674406a44611cad83ceeaf2321cb5a1166edb786.1746648328.git.mail@pisemsky.site> User-Agent: mu4e 1.12.9; emacs 30.0.92 Date: Thu, 08 May 2025 13:37:44 +0800 Message-ID: <87selfmzmf.fsf@iscas.ac.cn> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: 78301-done Cc: 78301-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Evgeny Pisemsky 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=3D0"))) > + #:make-flags > + #~(list "GUILE_AUTO_COMPILE=3D0") > + #: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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfr6klGDOXiwIdX/bO1qpk+Gi3/AFAmgcQygACgkQO1qpk+Gi 3/DFIA//Yr6TvVOpBRxWP95aiaCdcRis5vBa+fmr2oCoKm3ctxnSoVmoUiR6OPfO JikEfMgx8D+XWqxGTzxw75z6w2mXXUtKJ0DSkh6iGRyhEeSkVHqcfKMZxmzw5XFG TMsnJfM7FBhbLCtQc9crY+IiaYEPXfkBBqFxIazp3YiADn7Cm614KHiTP/vAEcoB MVFYKTQ4Y09/t6Nmcnevxv/urDSNRqFF/TFvczD8kCmrYMygApNxNMDkhLobfI48 dfTPdkC9r2dDyXNAzNzjg1spxQwZF3bcjSVEJRhQwfw/xOD1q06gLDhSsEvhFVDX yT+BQZEq2LjJ3YKwgxRHyVgYH6lpZsGQ/67B0hq9p3wSvjjhJLPyhZR3Pf3ABlVn V3n9lNxTkiR39KpNXyBis0BguPz9tRIo6fqdfEW2rt398IZ5X4yTN2KmoyUuKzwI A0kiB2RLStIb6oyXUfn6eI35f7Eo0yzKWbs1i0xvRsc14rEV6eh2jKMkPm95OkSl y75kA9NEFxyMuEc4gQC8zppMvCMWRGeOFaV72vZOLymK5LJzPKi6ZB01mbGjUMPW WPbr7++eIRn35NwyhMQFWDJdSwyH9xZ68fWQSztUUlryy7cpi33FdVn2C+8Qp7aT htTfd0BcBn06cntbIcGVHm6UuDtcQ/rQd454OStenxngMOAHr30= =X3/o -----END PGP SIGNATURE----- --=-=-=-- From unknown Fri Jun 20 07:14:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 05 Jun 2025 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator