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 8FkRBD65RGeuXQEAe85BDQ:P1 (envelope-from ) for ; Mon, 25 Nov 2024 17:51:58 +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 8FkRBD65RGeuXQEAe85BDQ (envelope-from ) for ; Mon, 25 Nov 2024 18:51:58 +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=eTAfD+gm; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=B9JrJSaZ; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=sesBPau+; 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=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=wolfsden.cz (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732557118; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=zHymUdkProrfjV9QgpTuHmx8CnXSQUTcoumpMvNnCPA=; b=FIfstRbcTIQ/zxJ5ubPl2a4FRvhIVr4vSaCQJCg0iUiZ31aNwdcqEcsHoqJ4h+O9VghyjO F3Uoeu6jux3ptPNnWFTBebQU445P5qNaXi8+Jx8/xqY1txtOoYrh/xMEVT0gcB1jLCtFou 1xL6NdlKrTyhpxXRGpCQdj9QqJ/uZbhgfh10Z66QYC+yJgKG8iNimHgdN8kCpdv12WcUiG ZExPvXJHjC1bsRekT/VmXRe0Am7fF8hBBrRdY0eMZ1XLeEnNkExA964CbrTHMxFtL39iDb ZOVZyKj3n/fIsRxSRd+MB5R5hGQBn/ohn3Iq2ijXyZ3KCodm724exSpeuHxT+Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=eTAfD+gm; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=B9JrJSaZ; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=sesBPau+; 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=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=wolfsden.cz (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1732557118; a=rsa-sha256; cv=none; b=LEBmxiA7njLe7MQPgYAJBodD9dZ3Lolu4dcXJUeSlbvhMywd9FGrmfAjzdv4C5l2Avt/vS iNMrOuD07BYmhysi/MWewGDCXijqTYkDVI5hNr5q6EhDoFKGB3T7w0ykU819f8II+iKSNA GvaImzS2VcAUYXWwGCwj8VpW6B0KxLGAuRD8y2Jb/VyoHNPeCfFy+cjwSYL+CFtv+wx9v/ xBCdlxYpG4PIH5Y9zI5vIuleoTaMZGyTa+vEBaUV8xu5xoTsSQxYyc3MrJLTsw/zJjWcAC eXuzUQJH1gTfBpPL8zhlzV95F9Truwy1uvXghZiZ8ZyHuPVQQX4iaVHKn/XdQw== 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 EACE37CBB0 for ; Mon, 25 Nov 2024 18:51:56 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFdEw-0000sG-ER; Mon, 25 Nov 2024 12:51:14 -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 1tFdEl-0000r7-EA for bug-guix@gnu.org; Mon, 25 Nov 2024 12:51:04 -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 1tFdEl-0001k3-5T for bug-guix@gnu.org; Mon, 25 Nov 2024 12:51:03 -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:From:To:Subject; bh=zHymUdkProrfjV9QgpTuHmx8CnXSQUTcoumpMvNnCPA=; b=eTAfD+gmkC7STD21qzBPQheXSJwZwPgBcvLiIEV/sqPnGdT5e/5nXorKpOBQgR2nS+VdJarH0WzYP8QrjpurnLMWrnze2DWljDc5aHqp1+tU/8PjYk4ahtgq1feM8gB66G9+ukB9lYG4yEo09NtLqySzHsWDfv1mH8D8gkezXHZhlgvqFAFKFTHajPiMR47o6mDND9L0kAVe0KklZgfJ+3hfvyYyOknyOif/5cFlveqdxxSAiP0O/pdZPcGzyzAQPDwluwt5yjoWcNnUcl33P9Wybwy1uLo7Qb6MhVrZ7sqaXZKiBEtt6MNiB5XUGL5QzUF/FrP6+ild5869dR3paw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tFdEj-0003m5-RA for bug-guix@gnu.org; Mon, 25 Nov 2024 12:51: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, 25 Nov 2024 17:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74532 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 74532@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.173255701414425 (code B ref -1); Mon, 25 Nov 2024 17:51:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Nov 2024 17:50:14 +0000 Received: from localhost ([127.0.0.1]:40296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFdDy-0003ka-4V for submit@debbugs.gnu.org; Mon, 25 Nov 2024 12:50:14 -0500 Received: from lists.gnu.org ([209.51.188.17]:52510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1tFdDv-0003kD-6p for submit@debbugs.gnu.org; Mon, 25 Nov 2024 12:50:11 -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 <~@wolfsden.cz>) id 1tFdDu-0000CZ-KB for bug-guix@gnu.org; Mon, 25 Nov 2024 12:50:10 -0500 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1tFdDi-0001PJ-Iw for bug-guix@gnu.org; Mon, 25 Nov 2024 12:50:09 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id 79B853467DF; Mon, 25 Nov 2024 17:49:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1732556995; bh=ByJBpuLnKTKq4mNVCnrr/OgMj+7hXTrDO2ncdbFHk04=; h=From:To:Subject:Date; b=B9JrJSaZ3YTWNH2eYFNUdA9kz+hDZFuIPcaS2zxvZpMY7XqigU9/c0TQgZTSBRvqf 871Gx/RUmACRKyrw4Z4qMp6khDRwXPahSytsk/Cyni63qOLt/KwpPwGyi6ZquCRWpr ph9gfzslRCJJ2N9gUGILyzAkQUfo0xjLq+9nvcj4lClgOxvSdMCXCiLIzQDZEn19zW S+esnHPdaeEaO3SlRwcZQ40j1hgmJXyJkHGvksLDf7yNFY3pD0TQjyGSrHSJCnGo0z Y+TnOndgwbb01NBfB4Giy2bYMqwfYbEEfa4KNrMtj335a+5sSWOWU8q6VKgxRI3cf2 DfaicKVAhcgt7ZvEdjblyMG/LVNviSZUpSCs5LVgso+O9E5XC0O6kyEF+i4GH8WsTz +x3Zz9co+WM5VhLDEL0274mmE7BlhMqOaWpHSiV3k9mI7KxV++94tv9hdOfNzwjYrs 3ZvvL+1KQgci5Iz6MVmEycPbrisE+RcXj4R3U/qwc+ixIJAW7ua+IKwHVEJNHqcuDc vI8DJORHmLcxq+2On87NweFrIIDFMxAiVSlMVC8GvG2G1+rNWIQl39uU0FPuTklB2R AmGiBnhSxOzgPYONsjGeomsVvuvRRQikS1iFxhGIzhxIKHKKyLTBMx/acGLurH+y4a SHY6igpKjZXuqV4KZOlOCOA0= Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id A2A09346440 for ; Mon, 25 Nov 2024 17:49:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1732556994; bh=ByJBpuLnKTKq4mNVCnrr/OgMj+7hXTrDO2ncdbFHk04=; h=From:To:Subject:Date; b=sesBPau+tCfun3daC1nL+AiQS5eCEKh5Bd/bXVXPriOgYqQ7mL9sjT/JtCIijxVKI zPJatuHm0NbYN5JUCKfx93puAMnlrGbmpAf4mccwk/hZW2XPy/Gz3UIMa8WhqGyeVB Pv7mZ74xWnw14046LRuj59AuQGhscVf61eEQfGsA9yqBp2llYLXOUeYjZTtr3qalav ffskplkHOwiaHb02+02munM+D7yqnct6+Y2jf6KF6aRHqm4WAIUOLFKe/JbpHXoiIv w6BlZ+HIiN3Jdtd6ASnPe8dayOdUYGogDinisszA64JD8c+1g63wWRse8A0ag1Jpa4 b++ip5q5REFv31/5qq8z4G90Ek/Nr+936wTORCyt1LkQ0LS3fAyBcLDbj6sdNSpuOd FtEG+Eh1fYksCgLrkBgjrWdbrV25FZ5WVkOc95pfFwudMtRyGl6nCwgsFF47zZ4fUN V7nmZPyb57xtNR8bbQIbjL5F8ETlKbm0PSzFX4nzsrqus6HPEajYMCUXgKo28cvJJA 8NYdk1PZVdVzwHddFLybKYoLeG83h+y98OJjP4GrA82fscK82+ujzlYIDZ7auNwpvn NzTz6ShMb6HRrpLcn9a3ymQ3BXgCUjQNykjHa8CrE5UoYNyFmmWIhAG/o1YAX0ITMh mdbNIECLji82jI8L0MLizHE4= From: Tomas Volf <~@wolfsden.cz> Mail-Followup-To: bug-guix@gnu.org Date: Mon, 25 Nov 2024 18:49:53 +0100 Message-ID: <871pyzdwzi.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" Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_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: 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: -0.26 X-Spam-Score: -0.26 X-Migadu-Queue-Id: EACE37CBB0 X-TUID: PFxiy9PFC6lB --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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. 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. I guess `load-path-expression' in (guix gexp) needs to also append to the `guile-extensions-path' based on the search-paths of the imported packages? Reproduction is simple. Make sure you *do not* have guile-yamlpp installed in your profile. Then build the `test' into a store item. =2D-8<---------------cut here---------------start------------->8--- (use-modules (gnu packages guile-xyz)) (define test (with-extensions (list guile-yamlpp) (program-file "test" #~(use-modules (yamlpp))))) =2D-8<---------------cut here---------------end--------------->8--- And try to run it: =2D-8<---------------cut here---------------start------------->8--- $ /gnu/store/nq0sahcnph5sxms4irq4inv2hq2hfbzr-test Backtrace: 19 (primitive-load "/gnu/store/nq0sahcnph5sxms4irq4inv2hq2hfbzr-t= est") In ice-9/eval.scm: 721:20 18 (primitive-eval _) In ice-9/psyntax.scm: 1229:36 17 (expand-top-sequence _ _ _ #f _ _ _) 1221:19 16 (parse _ (("placeholder" placeholder)) ((top) #(ribcage () () = ())) _ e (eval) #) 259:10 15 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval) (hygi= ene guile-user)) In ice-9/boot-9.scm: 3935:20 14 (process-use-modules _) 222:17 13 (map1 (((yamlpp)))) 3936:31 12 (_ ((yamlpp))) 3327:17 11 (resolve-interface (yamlpp) #:select _ #:hide _ #:prefix _ #:r= enamer _ # _) In ice-9/threads.scm: 390:8 10 (_ _) In ice-9/boot-9.scm: 3253:13 9 (_) In ice-9/threads.scm: 390:8 8 (_ _) In ice-9/boot-9.scm: 3544:20 7 (_) 2836:4 6 (save-module-excursion _) 3564:26 5 (_) In unknown file: 4 (primitive-load-path "yamlpp" #) In yamlpp.scm: 65:1 3 (_) In unknown file: 2 (load-extension "libguile-yamlpp" "init") In system/foreign-library.scm: 190:25 1 (load-foreign-library _ #:extensions _ #:search-ltdl-library-p= ath? _ # _ # _ # =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" =2D-8<---------------cut here---------------end--------------->8--- Have a nice day, Tomas =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/wakFAmdEuMEOHH5Ad29sZnNk ZW4uY3oACgkQL7/ufbZ/wanAZQ//X6YPkDpbrYK/OljWuxU70D6EC9+jQTkv1I4V 3mofSAWGP/D2PTFr5A+2lyLDKmzu68HqP+KNiRSjXBFwxr5hot50ZDNKPZdNc4My elkVUgUmYYVzO33Zyu+nZYsXjZO4B7JzylMOsJ0QbxCSI3aOF9NPeP6h7TN+ReJi B22XDz+gXOMJNFYBsUMSAK/ZvSyejenr8yTLQ1/EO+IVHV+dC8qeHSlMGPX2rm90 fCA0YHPlK5pEql4osigorvevsihONEyfKENCIZ0p2gg2MWsHAEHNteqy2KGFrwjB WC9rQgtbekwvHJcEf1FSL7W/CQRCUc6Zrn1of4D0WQ1hoOS2HTyre9Peny8j453G AYFDZw6Iq4KZG7Som4R0ME7sQNGoMpV1Il5JJcPEr2TFF2xpm4tGLPWBYKrBSa1M FLU2vBzbI9GC0L3f3pKEojPI47eY3OjMp5nRYALr32S5xXOn/TrJQMMyXIUX0M7G aip8e9l5UK0r76AgDaaou7Vqpx622JIVn8PvOZ5RfOsiJ0tXWGW6ZG2VV6Iv2/KY hl+Ozars2cZXk/JAVgbA2HZ/9oi3CloFFfO6pKLkXfVo5Jl/Me2dcI2rPOeKAtnw vC5UqsEjErXfjpI1CKtqaww5JoZM52dslbk8RzczbyUJN5HhNkuOG2sSXKI47kYb A45WS50= =LC0N -----END PGP SIGNATURE----- --=-=-=--