From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id IP1/IeEhSGdrTwAAe85BDQ:P1 (envelope-from ) for ; Thu, 28 Nov 2024 07:55:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id IP1/IeEhSGdrTwAAe85BDQ (envelope-from ) for ; Thu, 28 Nov 2024 08:55:13 +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=SQk3tvj3; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=MNeQvmNu; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732780513; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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=4jBGaUthjax/yPVJZJE4SsZiKqmOTzkduDAdxF288eE=; b=tZnMM9htspnp8x4zJ/RCiGiLD5mQlZmGQnlqKdNljVEa9wtIqyezkNnS4Z3NqoAmf+GH4D lUKZ++46ON6IWZAmofRrMWsWJec/RuSXe2TJ2bRVxvdQ6o617WjmZCG7vB+httfvePGSNq YQl9/xtle6T3RilMlWHm6tlFVsevFRzu8/nLUeugsFecMDSiwolEloMTA2AZaaWsxoZNWK rW73wKVT5czakjviq721kJD+qA9c+Bd9/Pste9ThXu1N/Mm8hL0fycfaaHIJnyQViyUFLM Kzd/+Yh55KDPxLZz7uLgD1R0NlV4TeYc3LUnt39y4xXCjTOxLdmgcY/Y6xbQUQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=SQk3tvj3; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=MNeQvmNu; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1732780513; a=rsa-sha256; cv=none; b=idCXxHfDymOPNAnF4MW0HqZaxwYtJ7v+fjow0FJ0TpiOvOse1rEXSYZK1oUx2F5ZTufr2P OX8C1HwftyRZG73zelt65uSzFUWfh3IEIQwnB8BwYUYBnW/BtQ6Guq4ObK4IONuFXy8z6/ ivxV7mr0xZyDyAn5A7XFFjnkCZ2yVYHYRqr9Aphc5ubNpL+oWfTnl2PjnI1ikcguBAupwt OnusXZ9twWnqKvNhq3aVZjc8B5cZV+h2JdJ+igy6rPhQJKivwVkM6GjqJlHU5/fYuVGbTJ IWuGm5RwkQKbsfcRm5StiqOCOALBVfVRtMXi6+1E9zS2a9nKC5BmSby9PuanvA== 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 727597D53F for ; Thu, 28 Nov 2024 08:55:13 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tGZMi-0000nn-E9; Thu, 28 Nov 2024 02:55:08 -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 1tGZMd-0000fp-1X for bug-guix@gnu.org; Thu, 28 Nov 2024 02:55: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 1tGZMc-0002qF-Nw for bug-guix@gnu.org; Thu, 28 Nov 2024 02:55: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=4jBGaUthjax/yPVJZJE4SsZiKqmOTzkduDAdxF288eE=; b=SQk3tvj3sryqf4QFgXcz3wK7SF6GyukJWNVQ1iB02u4beV2dxeRUClhNzTVTjpIjlker5pGbWOun011U/onTMZMbIGT1FGC13eh2lGB8LR6EeIuvlbMJMg1bmS81s+mLWoDL/cUnO8M3MV9tG3vfCZcMQjOgBLG8XYJ66m0QZBwhJsiLbBhigx7OJyg4QA1HZ5lgyzY/4DEJYPDnrSYETnVM6b4+m6x0qcA38toiC5EuV54dU9akLo/Bh08/nuGphnNw92kkYupBF41X1eE3JjCb5FIbCRUlNoJFl4GCVoJKpbg7043f3NN3yS/3YIJpINbxJpAGPwomgEx/dI73yw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tGZMc-0001YY-HS for bug-guix@gnu.org; Thu, 28 Nov 2024 02:55:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#74532: with-extensions does not add native extensions to the load path Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 28 Nov 2024 07:55:02 +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: 74532@debbugs.gnu.org Received: via spool by 74532-submit@debbugs.gnu.org id=B74532.17327804605906 (code B ref 74532); Thu, 28 Nov 2024 07:55:02 +0000 Received: (at 74532) by debbugs.gnu.org; 28 Nov 2024 07:54:20 +0000 Received: from localhost ([127.0.0.1]:36414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGZLw-0001XB-CP for submit@debbugs.gnu.org; Thu, 28 Nov 2024 02:54:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGZLu-0001Ww-3v for 74532@debbugs.gnu.org; Thu, 28 Nov 2024 02:54:18 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tGZLh-0002Q4-3a for 74532@debbugs.gnu.org; Thu, 28 Nov 2024 02:54:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=4jBGaUthjax/yPVJZJE4SsZiKqmOTzkduDAdxF288eE=; b=MNeQvmNudlL+469dQl3y dOjp2rqK7nQjy263B2cfd5U8yU5LxvbtSv7xm+C4lg3hPpy63PuIpqfyZcPY0GQGgx2A/CI373qzi 9Tr40mbiM15Pl05hplHpZOoIXDnr1DSZy9kUZJIL7YyU+wevh+8RHd1SMVKeZUp9kWP9KGFNCeBgi 3yyTmoHThfxfRPa+qCDB6q+OV5QMbxwJcZs6vFrgEi531U3TgmKHSJi2K66nJv/w4ZfSsAYN2AU60 fJYO08PnosGffkUQeUGA/AgaG08Vk6WHCzNCH4lsvpMt2j7WDLVaLbxePcDXVRhk1zxH9Nt+hCYbV tHHRXegIfKnFWA==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <871pyzdwzi.fsf@wolfsden.cz> (Tomas Volf's message of "Mon, 25 Nov 2024 18:49:53 +0100") References: <871pyzdwzi.fsf@wolfsden.cz> Date: Thu, 28 Nov 2024 08:54:02 +0100 Message-ID: <877c8n94kl.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -4.54 X-Spam-Score: -4.54 X-Migadu-Queue-Id: 727597D53F X-TUID: LzoB0A4sYj37 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 to= 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-JS= ON. > 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-library= -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. That said, it would probably make sense to arrange for =E2=80=98with-extens= ions=E2=80=99 to set GUILE_EXTENSIONS_PATH. Ludo=E2=80=99. PS: Your MUA sets =E2=80=9CMail-Followup-To: bug-guix@gnu.org=E2=80=9D, whi= ch is kinda annoying because that=E2=80=99s the wrong address when replying to a bu= g. :-)