From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id GBbLFQiDYWe3HgAAe85BDQ:P1 (envelope-from ) for ; Tue, 17 Dec 2024 13:56:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id GBbLFQiDYWe3HgAAe85BDQ (envelope-from ) for ; Tue, 17 Dec 2024 14:56:24 +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=WdbJTIUa; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=FmC3AiVd; 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=1734443784; 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: 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=L1SjFebVNuJpKjx3Qhwb8OKAHVrTyEAfNWXHexsHWb4=; b=UtKhlCdOEYqNAHco87hTzZnZ9TcyGwkxez+trUWQiQ67BWXaGyRgAQr+a6CbOG0P732bVO zck053WETqdntkM24F16I9okl4yePsGdutOW0qfjHIIN0NF6RokzeqFzDVf0y8+5tiTC9q RmNCMKX1xxRes6h/LAG2zr8oCy0olpRlR5usnWZ53VSmuFZpGC5UXT83SLvwIVq7I5b+jL 6si1O7/trGQiQujWHISjnDOtYMlBSOO/tDrx6+h70+9IzuiLVKqr0zwRNE8Ee1v/fUGE1h jpWfJyTBJ5+O4KQixri+EjXDDp3esDFyu0faSxa49RcCFEHMMRijEfmSPvu0ig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=WdbJTIUa; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=FmC3AiVd; 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=1734443784; a=rsa-sha256; cv=none; b=W5TyIECrLoO7tn8jPASRBV2fvT7ZoXEZnsa4eO0x+/r1bSbSA89yzrv00RDry9Sq9M7jhl gFdud1ERtLyuIkKubE8zjXup+8iPpt7XPZU4O8aLt9KZEiheLKduksmsn24U4NtkSTdDjA XwUKSjFZW1sh4vONkIKqoJcUF0FzeeFd5M/8gFt2Ehe/o48/ODQ4VQLXk8Qs1qSDFEMP6/ tEvzhcZbfYWJWSrqTPQnFG7W5rZ8++aPbgi2K6zW0T1JvXGIaSdo4pWuDef0p33rAsr+k+ ijjVH8SrBPquBBy4sQUvfXb1aKJBU7svUHS8oHVaXeRCIXSGoJDZMvLonqKcNQ== 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 250BB8EEC6 for ; Tue, 17 Dec 2024 14:56:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNY3Q-0003uI-3D; Tue, 17 Dec 2024 08:56:04 -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 1tNY3O-0003u6-Lm for bug-guix@gnu.org; Tue, 17 Dec 2024 08:56:02 -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 1tNY3O-0007iH-9q for bug-guix@gnu.org; Tue, 17 Dec 2024 08:56: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=L1SjFebVNuJpKjx3Qhwb8OKAHVrTyEAfNWXHexsHWb4=; b=WdbJTIUa+gJFe3Xkt66HMl3v9SNWg2gtBLIrbxxlPdLBEv6qZC9V7d6yg6TD93ZEG0pEUrW+pzoD1c5p9ybTTdn1HGl8M7Vapb6ayXTJWcdI4L8OfAf72sWql1limx7mULZSMhIaXd4I5sIpTTxF7FYcgUPgY5ykqFAQEFhJIWgwY9AGy/YlN+QmxagLTOQvVGLdyRkalC0SOtDZVcqvCQ/QYptW1uNz5mEzGXgJE74bEuAN/l+azNi32EErOn18b4NpsFcCpX1dJthk63u4ydclS0N0PQHUHt6AFM+NinJ4euAC2diC4ZFbgODa42wH3l9rRxaRdKGdh0809oY23g==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNY3O-0000uV-3h for bug-guix@gnu.org; Tue, 17 Dec 2024 08:56: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: Tue, 17 Dec 2024 13:56: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: Tomas Volf <~@wolfsden.cz> Cc: Z572 , 74532@debbugs.gnu.org Received: via spool by 74532-submit@debbugs.gnu.org id=B74532.17344437413467 (code B ref 74532); Tue, 17 Dec 2024 13:56:01 +0000 Received: (at 74532) by debbugs.gnu.org; 17 Dec 2024 13:55:41 +0000 Received: from localhost ([127.0.0.1]:58154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNY33-0000tr-Dy for submit@debbugs.gnu.org; Tue, 17 Dec 2024 08:55:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNY2y-0000tU-5r for 74532@debbugs.gnu.org; Tue, 17 Dec 2024 08:55:39 -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 1tNY2r-0007fp-EX; Tue, 17 Dec 2024 08:55:29 -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=L1SjFebVNuJpKjx3Qhwb8OKAHVrTyEAfNWXHexsHWb4=; b=FmC3AiVdSmBEcG/juDNG XPLUQ+3dgey1rynK3JspMzqz+OHbQsqFrqrNaP1cIDSBesfI3sXwXl/C77xXe4HrGryesBLZYDUtq 0HKAJUCI1t5pQvGW33+ycj2s3Do49y9/CwoZSceXuwYU9vzbpu2sA0f4dPHlkGONP/xwjCMSZlHqV WfuSC97JcHHWTnIWfAEixB6dFcS7lrHDAhpWBXdx/dtmqIL4oO8esOkcwwkovmeLguJK3dzC4ogF7 FDud8cyOgDLvxBRREnKNOBKcxX0zTFQfjitB8tq8xu56XNKUl/FM5ZYlQsvHyguPfas69QPKFh5cA WDEgOXb0nn/k9g==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <87o71flehy.fsf@wolfsden.cz> (Tomas Volf's message of "Fri, 13 Dec 2024 17:44:09 +0100") References: <871pyzdwzi.fsf@wolfsden.cz> <877c8n94kl.fsf@gnu.org> <87plm93b7p.fsf@wolfsden.cz> <87y10x4g2w.fsf@iscas.ac.cn> <87o71flehy.fsf@wolfsden.cz> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Septidi 27 Frimaire an 233 de la =?UTF-8?Q?R=C3=A9volution, ?= jour du =?UTF-8?Q?Li=C3=A8ge?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 17 Dec 2024 14:55:06 +0100 Message-ID: <87bjxapg79.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -8.60 X-Spam-Score: -8.60 X-Migadu-Queue-Id: 250BB8EEC6 X-TUID: Qz6hwca32JIb Hi, Tomas Volf <~@wolfsden.cz> skribis: > Z572 writes: > >>> 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. >> >> you can use substitute* to adjust source. >> e.g. >> >> (or (false-if-exception (load-extension "/path/to/lib-some-object-file.s= o")) >> (load-extension "lib-some-object-file.so")) >> > > Thank you for the suggestion. I am not sure I like the > false-if-exception part, but temporary adjustment of the (@ (system > foreign-library) guile-extensions-path) should do the trick as well. I think you can just do: (load-extension "/path/to/lib-some-object-file.so") but you need to (1) do that in a post-install phase, and (2) re-run =E2=80=98make=E2=80=99 before =E2=80=98make install=E2=80=99 if necessary. See =E2=80=98guile-gdbm-ffi=E2=80=99 as one example. Ludo=E2=80=99.