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 ODDHJQx4xl5+LQAA0tVLHw (envelope-from ) for ; Thu, 21 May 2020 12:46:04 +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 EJOfIQx4xl4kXQAAbx9fmQ (envelope-from ) for ; Thu, 21 May 2020 12:46:04 +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 4339C940145 for ; Thu, 21 May 2020 12:46:03 +0000 (UTC) Received: from localhost ([::1]:55160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbkaI-0003Rr-4a for larch@yhetil.org; Thu, 21 May 2020 08:46:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbkZM-0002S8-IS for help-guix@gnu.org; Thu, 21 May 2020 08:45:05 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:59727) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbkZL-0004nn-6m for help-guix@gnu.org; Thu, 21 May 2020 08:45:04 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E0C055C0086; Thu, 21 May 2020 08:45:00 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 21 May 2020 08:45:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=ObFB0SqjV5ADZgaPoIQojoerkI prMVQfv79aOSUwlcs=; b=l3NZ7g9k7/1Q5WUT/DuylUZyVlVHxAG3E8HuYr4EkD I4ln02RrJT87D3o5xKETtxwJl79TQzOiHXCqq9XlCVR0jPcudppzkrJRO/SjprDL T2XnzxODCAsFCmy1nEbnFOo/Uo2Y1GKKmZb+63ZEC/TFSZBBC1Pc8z1JZoMN/FuS OquS5Ud3TDR1hbdtjm/8gBtNG1OBIosaJRAGKNSI2oxddjJSx5tNreasrK1VKaNa kn3h61unAWv1CFABuBQiGS930zbvFy5wrKOsJf3uYC5Ei6s71RvB8Xx1irgBaiMx ympagNMR4y9BfUuP9tA/3Hw3CFLFVUTR2G20wPqh/7rw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=ObFB0S qjV5ADZgaPoIQojoerkIprMVQfv79aOSUwlcs=; b=lOlaXB1Z0oXslfuK0npMTI O68kM2/ZQ2GBlusR6mngmE0ad2vwflrTtSJjrW6HzzoFDJMXA4anUbdAfNS4Y6o9 oPvn4SLqYUnLNHEai4FjJmZnyqLCVgZFCucfW1MTK2HoHTeXOE+iSw7x+sNwqkWW EwNCbnll3V22b3KVLExuIFburkO2fEO7AhWe3YODSWl+HW1SrGzqa/QdIkRKIfOn aL/wWBmZ879CaPdIXRX2xxSGkOQnE7wWr0AWt+LCxDGLsOg6envWdhI53OKThIkk plYJ3r/3X1DYDLwcKEQs+ghUV/asUZehHXv6OUh5qv6Jz+14vgQwJ0pTMw0c/H3A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudduuddgheehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhgffffkgggtsehgtderredtreejnecuhfhrohhmpeforghrihhu shcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshhtmhgrihhlrdgtohhmqeenucggtffrrg htthgvrhhnpeektdelffevvedtledvvedugeffieffhfelgeehtedugedvgeeguedujefh jefhteenucfkphepkeegrddvtddvrdeikedrjeehnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhgsrghkkhgvsehfrghsthhmrghilhdrtgho mh X-ME-Proxy: Received: from localhost (ti0006q161-2604.bb.online.no [84.202.68.75]) by mail.messagingengine.com (Postfix) with ESMTPA id 82B3F3066488; Thu, 21 May 2020 08:45:00 -0400 (EDT) From: Marius Bakke To: sirgazil , Guix Help Subject: Re: Appropriate way to use Guix API from a Guile program In-Reply-To: <17234059da3.b5e01d1e8240.9032082708652182693@zoho.com> References: <17234059da3.b5e01d1e8240.9032082708652182693@zoho.com> User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) Date: Thu, 21 May 2020 14:44:58 +0200 Message-ID: <878shla245.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=66.111.4.25; envelope-from=mbakke@fastmail.com; helo=out1-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/21 08:45:00 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fastmail.com header.s=fm2 header.b=l3NZ7g9k; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=lOlaXB1Z; dmarc=pass (policy=none) header.from=fastmail.com; 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: -3.81 X-TUID: M50Hl25SLSdz --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable sirgazil writes: > Hi, > > I use Guix's GNU system.=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: > > =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 There are a couple of things going on here. Calling the Guix APIs from Guile will use the 'system-installed' Guix, unless you have fiddled with GUILE_LOAD_PATH. You can use 'guix repl' to use the _current_ Guix instead (the one obtained with 'guix pull'), where this problem has been fixed. The system-installed Guix in turn fails because of a bug that was fixed in 179e6c524ae4957e6ace83f72a5651767f786ca4, and ultimately 977f478090fd96e73463efb67c56fb32f28828bd which updates the 'guix' package to include the fix. If you reconfigure on a recent Guix, the missing patch error should go away. Hope this helps! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl7Gd8oACgkQoqBt8qM6 VPqjzwf9H3nvAIX1NZyE9pNLMcOebktPM9Uy9thgwa9kxBnKzN1gRJT3C9GGRj/j 3/gPW5hTxgt1BcTN0YlpO09DdTtMVRLHWaaJFcjQnXKuY79Fdxds0bmwAjGvyxzI XIUQ6vg4KHWiMZ7KrKbedYZgD0YJU1uVLQT2tGZqfuGfZULVX9RpYNhKtcj0tpQ9 1mTnYFWjKf4TuKu5ZumJZtxQ+YZWIXiFyyd7j7Wgd8kk/6Smt9dQls+u5U+rTchN mME13xZvyfMNzlg4W/c8AOfDyliz6imDtU+o9njce0ZyeOPKoJPqjVuug3I9z7Ng QugSTG6bFzaicdOPPMcEb2iGRGqkmA== =wtU9 -----END PGP SIGNATURE----- --=-=-=--