From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id aMoBA61FTmeznAAAqHPOHw:P1 (envelope-from ) for ; Mon, 02 Dec 2024 23:41:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id aMoBA61FTmeznAAAqHPOHw (envelope-from ) for ; Tue, 03 Dec 2024 00:41:33 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=kJUB6YF3; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=MLjIez7O; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=PQcS5kW9; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=wolfsden.cz (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733182892; a=rsa-sha256; cv=none; b=AIpPah8r6ZU9n4bjJpeYSvvVu+202gQyDX64GGYQ9n6fQvC7S3+MFkgOodSm+hjVXor+47 ufhB+JrZSHWqcElVPqfH4plSufU8XgyFHICCtIqDgkJcaPoUUbZ0/C4Cf4YV/0VWtYhDEq JuXjtO1darPqAGjTQDKD/Ffvyw2Nm5CgPrS7cACgTWkP2F/YYI4alqq4pM8FKmc+WXe2TK Mi+AsN0RVnt1bFWHzFRIe7QCDaAstF8VhzMIZDkbEChQ0XYx1XHfnkPfIBa18HxLYJZSlw CK+8s2eakCa35zs00DHVD6IHqm5CZKAUemD8T2iQseJyMFBs4FIv1aNEATwhZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=kJUB6YF3; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=MLjIez7O; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=PQcS5kW9; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=wolfsden.cz (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733182892; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=Qx+P8qCUbGpg5l0pmGLT0GMe5U6QB/XBW5JcwWbxKd8=; b=i26prg4tmGBnCiD0m9FhK7F3qtGj3ccA0HLSSbJ8CNcUcS2YexSppHbYmlQCuBW84vUITE lcsjq9UugtoBOQH7MVzJ9UWmTsCtveMzq/UaR2nQDW8UsOhQpHvSyv40r6XdarfMcUumbp VabTU+iIVhcjzINzUQufM+WLMNaVpBtP97BodhL+iwQqpgICeAPSpgF3uzilpyIkzHanyR ppCipf9GYl0+R4QAMoOTx4sYPIahq4bGqJy/ZSZzJIoTFvb0VBXWugFiBuUCSRRBFiN1Cw 6lUGTObBNX4s3Mcg0WID6OtRM2GNS2E2tWbejdEXJK47u4BSB+WBHEkVaz7npg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F1B1882CF4 for ; Tue, 03 Dec 2024 00:41:31 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIG2M-000664-6y; Mon, 02 Dec 2024 18:41:06 -0500 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 1tIG2I-00065l-Qy for bug-guix@gnu.org; Mon, 02 Dec 2024 18:41:03 -0500 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 1tIG2I-00086d-IE for bug-guix@gnu.org; Mon, 02 Dec 2024 18:41:02 -0500 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:References:In-Reply-To:From:To:Subject; bh=Qx+P8qCUbGpg5l0pmGLT0GMe5U6QB/XBW5JcwWbxKd8=; b=kJUB6YF3bfRoBL1+wKuIJxj12K23XVJwLz7v4+Fu7nMa7UtiGhjk074ll1CAHl0K2+ohiAyQf3AvquGkCSYAA3GvOjwzYMXKsOkounEAJEELw2SWfc3kQ/omZt4DTlp+PlUGsZeLc3coPDnGe2Lj6/gXS33IavbzP8cYa5f24PKrhnkNDIirZnM5F1u54tNZ+985Ca1GnV1RLCBnjoJO8OpPLIlTQYCr/YbnRV3nXCqENNcJ8S0dCWXGOxveBaXu+u6oGfnXaf0CIOa3LEB2bq0Joq/dvF2iqnRNWwtwOT016LKeq9NsVWKXlGT4l7vJWNcaxASIOuIzo1sfag9D8w==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tIG2H-0007EI-Tx for bug-guix@gnu.org; Mon, 02 Dec 2024 18:41:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#74532: with-extensions does not add native extensions to the load path Resent-From: Tomas Volf <~@wolfsden.cz> Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 02 Dec 2024 23:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74532 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 74532@debbugs.gnu.org Received: via spool by 74532-submit@debbugs.gnu.org id=B74532.173318284927756 (code B ref 74532); Mon, 02 Dec 2024 23:41:01 +0000 Received: (at 74532) by debbugs.gnu.org; 2 Dec 2024 23:40:49 +0000 Received: from localhost ([127.0.0.1]:56985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIG24-0007Da-Oi for submit@debbugs.gnu.org; Mon, 02 Dec 2024 18:40:49 -0500 Received: from wolfsden.cz ([37.205.8.62]:50242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1tIG21-0007DQ-Ls for 74532@debbugs.gnu.org; Mon, 02 Dec 2024 18:40:47 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id 0CF1632753D; Mon, 2 Dec 2024 23:40:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1733182844; bh=vAgQGs0zKMTk5fPKporeFhRGmKtU9k7MU2laz+0j6V4=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=MLjIez7OHcvTcmJUOlxu+ue2OYJr9l7i86q0HY3uFPdTg8SH4NVmES+G0kAur+RvL MSVjtcfClYPJGqfvv0CqVlGvpTpGNXkfmJBNF40b8CBZc3By9PvYZsIvACdqW3zS6A ekVLYuGsdf5VptPCPBSu3/fueAm2VInlV+5gMjMrnGQWvclvy3Ykwg7aT63Mqmnm23 gqszKCaRMFHvMiW6zbUbyj2dfMQ5BX2WyDLsDzu91iSe1Bw19DR14lq4kfmV+UA1T4 w2R6xvxBppfg6h0c3AInhmWDCwiiQSxWI8lZSPsQ0OBVAeTO2xbijQZvRi9BdA7zea qpg/iz71tK884alTiGMk8nnc2frOiNsmAf3OyeshU2AhaixkCFakfs7FKpWkZoGBia w7xISeM6bgFCNSnXcXHCv5Vuq95H6ixLuLe1VbEoq7Of0XJF/iGM5ywjHrrdQlQA5Q V6fQt8kdEf1IHzv5YIvBz17XgZMQ4SwZkhmx2+j5u2ZT9IiTYn28Cje2BAk/Sv4Vym 4gd2PDl2hWwj6ppDF5XROaEd6bMdwp1JmuQ/F386Qgsx0VE++d+UzG9KXiCPOMCQyj Urane+0njFjZ3hoaiCGAUhDnZ618WZCDAwZnoXvdadLG/whHs3I4Ok4IjqBu+5tFmq dwTOVNeR2Wc5rByfm+oBr1vw= Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id 197ED338391; Mon, 2 Dec 2024 23:40:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1733182843; bh=vAgQGs0zKMTk5fPKporeFhRGmKtU9k7MU2laz+0j6V4=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=PQcS5kW9JkWZl4o//PR8nx9U8Ph9BOKvt+hDi9K3sAqZZ/VD0U/3G8QBStPv47wIg DmOJxZ0Rs0Mq8OuWMCBeMOev3Z7Z3wniD9pc3VfkJr+QTo7izjyrJeFu94nSWoM4oh 3DBGALeZtiq94UzkPsxh77zoZKCjv52XczaufXXVMSLiheRBfXUEIdwPhHi6g5t9XY RxWxMMJoHSiMA0nUpe6RnWqriOEJKMoYYIIhcrVyTofU7suRxglLYtaP3iccb2qksz ocVRwsTBwAGYUXP5MX2ETuOx9Nvxh6hkHojePJU8IwGD5ye45pJBTz3Pn6SRZ4udha VN4johD/xAytxqhRc6pgFVMK0zlkpG8BVUjaIYYiHqvSyYRkK+HWwAE2SB5iHawXMA RUQuGgEL3hvba9az/6s3hGt0TK0CtRasUjd44VZ8esjqrXioztZxlfarh/sxVZ7asw usBUyb4gP4fLfZbKLWqzauWe7qSGx/QfRtsGmlweFyx6cKL0fzOy9GsDWQhFScCYZ7 6yt1bTBLlD75EFEy9h4cHbrUnn/BlkVFo0dKNo6vqdV9+NQjWTz/9U+Btm7glJ7zZO x8Artrh+ABABYnzM84Vbx8z70115vX0GCQJ251q0u1Ij9c1i6te+mhVmzUko43yJra z7FFuGNS6hd/b+DW/gyWGCOQ= From: Tomas Volf <~@wolfsden.cz> In-Reply-To: <877c8n94kl.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Thu, 28 Nov 2024 08:54:02 +0100") References: <871pyzdwzi.fsf@wolfsden.cz> <877c8n94kl.fsf@gnu.org> Date: Tue, 03 Dec 2024 00:40:42 +0100 Message-ID: <87plm93b7p.fsf@wolfsden.cz> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.59 X-Spam-Score: -2.59 X-Migadu-Queue-Id: F1B1882CF4 X-Migadu-Scanner: mx10.migadu.com X-TUID: 0g4TbR2t+4aY --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Hi, > > Tomas Volf <~@wolfsden.cz> skribis: > >> The documentation for `with-extensions' says: >> >>> In the same vein, sometimes you want to import not just pure-Scheme >>> modules, but also =E2=80=9Cextensions=E2=80=9D such as Guile bindings t= o C libraries >>> or other =E2=80=9Cfull-blown=E2=80=9D packages. > > It=E2=80=99s not just bindings but also pure Scheme libraries like Guile-= JSON. True, and for those it works well. However the text documentation explicitly mentions "bindings to C libraries" as one of the use cases. :) > >> However it does not actually add those C libraries into >> (guile-extensions-path), which means that trying to actually use a >> library imported this way will lead to an error. > > [...] > >> 190:25 1 (load-foreign-library _ #:extensions _ #:search-ltdl-librar= y-path? _ # _ # _ # =E2=80=A6) >> In unknown file: >> 0 (dlopen "libguile-yamlpp.so" 1) >> >> ERROR: In procedure dlopen: >> In procedure dlopen: file "libguile-yamlpp.so", message "libguile-yamlpp= .so: cannot open shared object file: No such file or directory" > > Usually, packages like these (guile-gnutls, guile-git, guile-ssh, etc.) > have their .so absolute file name hard-coded, which sidesteps this > problem entirely. I recommend doing that for guile-yamlpp as well. How it that usually done? I cannot do that *before* build, because then tests would not run (the library is not yet installed into the absolute path), and I cannot do it after, because I would need to rebuild the .go files after patching the source code. Assuming I have a guile library that creates a new .so library during the build, and the .so library must be loadable by the other modules in the library during the build (and for the tests), how should I approach that? I am pretty sure I cannot just patch the source code, since the library would not be installed into the absolute path yet during the build. Honestly, setting GUILE_EXTENSIONS_PATH via pre-inst-env seemed like fairly elegant solution. > > That said, it would probably make sense to arrange for =E2=80=98with-exte= nsions=E2=80=99 > to set GUILE_EXTENSIONS_PATH. That would be great. My current work-around is (with-extensions (list guile-wolfsden) (program-file "audio-cycle-sinks" #~(begin ;; Bug 74532: Native extensions are not added to the load path. (eval-when (expand load eval) (let ((ext-path (@ (system foreign-library) guile-extensions-pat= h))) ;; Just a temporary hack, we can live with duplicates in the p= ath. (ext-path (cons #$(file-append guile-wolfsden "/lib/guile/3.0/extensions") (ext-path))))) ...))) which is anything but elegant. > > Ludo=E2=80=99. > > PS: Your MUA sets =E2=80=9CMail-Followup-To: bug-guix@gnu.org=E2=80=9D, w= hich is kinda > annoying because that=E2=80=99s the wrong address when replying to a = bug. > :-) Thanks for letting me know, I was not aware of that. After reading (message)Mailing Lists bit more carefully, adjusting the Posting Styles and sending a bug fix to the Emacs' bug tracker, I believe it should not happen anymore. Sorry for the annoyance. =2D-=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJCBAEBCgAsFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmdORXoOHH5Ad29sZnNk ZW4uY3oACgkQL7/ufbZ/walAqhAAjpE/KuhL/q5vv67k0zndvpQD3ExmofQYZTuq NOTaYd6Y/1YfqChTbslTBU4W1J3NdJ7P1N/q0X8DhLg6mxYkakri2WJSGTP4H0nF lo+RbDyas7aaIu9DrnlM4LzqWARbXFrbP5wMUhXBif9JsfO/AtRXZECUlQrYCYLo t5nO354y0dhb4M0kRXnxbq6ray2HRWzar0SLDkRJIu9ChsJePta1z1IZbW1GpHhS U9em2Tx84QTnM7S51wLPKGczgAiNc3vQZhxPX6R9ZuO4989Fl4zLuaaGKo34QY11 I5kuCuAO4sOoel562Rj2KXIJ0Bb/n9hXKHuhXrch+5hPobi7Yn4Eb96QW216KccW JaZwy5fbqpG96jZm27PWuBDRUq+wz2rbb5PTkiSKj4ev+nbPelIEf7ULsilLk0vZ 6h0mEu/XHYpbbIEZls1vAUqP1pxjeF1VFDHWa/TL/HG/QGlakNWnHIPYbIAdXK3m Gfymj8MfajZoiSNYans/ZQAb4QmxkoTfZEl6+AKzcgyrLjx6MqZQinCiWJyO/eQD M5Nxj5jkJIvIe41tH541fb6In9t5+8rXF5DeWVgg9Tpd0Y1ep9Fiakx5sVBtI/F3 KCxtXsS52DuAGGfDTo0A8UAcyvqpZt3Ii0MAejM4Hbie764XKuJoRat9a+OtHFjC OHP0wj4= =RJ63 -----END PGP SIGNATURE----- --=-=-=--