From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MNP2Bcd0xl4fdgAA0tVLHw (envelope-from ) for ; Thu, 21 May 2020 12:32:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +FGvAcd0xl51VAAAbx9fmQ (envelope-from ) for ; Thu, 21 May 2020 12:32:07 +0000 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 2F077940415 for ; Thu, 21 May 2020 12:32:06 +0000 (UTC) Received: from localhost ([::1]:41998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbkMn-00020t-5x for larch@yhetil.org; Thu, 21 May 2020 08:32:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbkMf-00020Z-Hg for help-guix@gnu.org; Thu, 21 May 2020 08:31:57 -0400 Received: from flashner.co.il ([178.62.234.194]:41398) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbkMe-0001cH-Mn for help-guix@gnu.org; Thu, 21 May 2020 08:31:57 -0400 Received: from localhost (unknown [188.120.128.132]) by flashner.co.il (Postfix) with ESMTPSA id F09394027B; Thu, 21 May 2020 12:31:54 +0000 (UTC) Date: Thu, 21 May 2020 15:31:22 +0300 From: Efraim Flashner To: sirgazil Subject: Re: Appropriate way to use Guix API from a Guile program Message-ID: <20200521123122.GE958@E5400> References: <17234059da3.b5e01d1e8240.9032082708652182693@zoho.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="so9zsI5B81VjUb/o" Content-Disposition: inline In-Reply-To: <17234059da3.b5e01d1e8240.9032082708652182693@zoho.com> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=178.62.234.194; envelope-from=efraim@flashner.co.il; helo=flashner.co.il X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/21 08:31:55 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Help Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: 0.69 X-TUID: MPnCAZaAy3at --so9zsI5B81VjUb/o Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 20, 2020 at 04:38:02PM -0500, sirgazil wrote: > Hi, >=20 > I use Guix's GNU system.=20 >=20 > I had written a Guile script that called Guix procedures to manipulate pr= ofiles. I put it in a Guix package in a custom channel and installed it. It= used to work, but now it fails with an error I can also reproduce when try= ing to do something similar from a Guile REPL. For instance: >=20 > =E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85= =E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2= =98=85=E2=98=85=E2=98=85=E2=98=85 > $ mkdir profile-x > $ guile > GNU Guile 3.0.2 > [...] > scheme@(guile-user)> (use-modules (guix scripts package)) > scheme@(guile-user)> (guix-package "-m" "manifest.scm" "-p" "profile-x/pr= ofile-x") > error: glibc-bootstrap-system-2.2.5.patch: patch not found > =E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85= =E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2= =98=85=E2=98=85=E2=98=85=E2=98=85 >=20 > This error is familiar. I got it in a slightly different context before w= hen running the guix command directly from a terminal (https://lists.gnu.or= g/archive/html/help-guix/2020-05/msg00045.html). >=20 > In the context of Guile scripting, how do I know which Guix is being impo= rted?=20 >=20 > Also, I didn't include guix as an input in the Guix package of the script= (though it worked). Thinking that it could make a difference, I tried addi= ng guix as an input, pulled the new package definition, upgraded the packag= e, ran the script, but got the same error. if you have a local checkout of Guix then I'd suggest using './pre-inst-env guile'. There's something about the core-updates merge that caused some problems. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --so9zsI5B81VjUb/o Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl7GdJcACgkQQarn3Mo9 g1Gbkw/+KVuNo5YtRW4ktSSephF0x6QMl4+oU1s2t0fYKtZxtKdiHHWEI8x04PIh uyE64HHewj2SbKcuWOHuDeqicfhHcfqqGX9tDPBFT7AOkCqn4X3yMgYn6yOsvWu+ uNbRzDt6sCrUdKhK5x43ybEbKASnxIEgUxPslug2G4nkTNeKlVASxVAsBP3QSITq vQ4S4Q1p8OvWvEepX8RuRwAq5SLPVrAh3VDXULu9gFdpt2j0IPWvXtinXyhY1MXS gXr6Ri3NbVpxCTApwcmSY5fzV2gQctNAuOlwQXNHlgafWoSviQo2g/KxzJho2bpp 7OwcwHpOgxHSko8xcHdIKLoAZCrfX5cBZupUv7hJvlXWlpKEv+vVvBAd/RvqFpiw KHKTrgRC/Vab4KRkyHaeqBd0Y6TLsJAoUV8TGz6l6mhIhUrHvWk4rMR20dOPePHp 5fF3GpS81oYnHVl38uZ8qTdwh+PhahYnbRTYmSTJFz0rjFPgzbza8JnVBPIgMYrl QmI7jeh5y3tpwmHygn1tcP/DgEr8Xd6as2BOrXDg4S4/3PiaqvBdOmcjf3284yhT YGl1QUp/hGCTTBfNmg+3XunbwFgYamCBGxZzJHACUt7ftVj1apGNoKYOMChWuXoz 0C8GhrRA9c17S7bUFG1QgU22OYfKBtL1cWAhjGy3Y2P+0kSnH+M= =Vmpi -----END PGP SIGNATURE----- --so9zsI5B81VjUb/o--