From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6OGVIG2Bxl6nPAAA0tVLHw (envelope-from ) for ; Thu, 21 May 2020 13:26:05 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id OI8IHG2Bxl6xdgAA1q6Kng (envelope-from ) for ; Thu, 21 May 2020 13:26:05 +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 DCD119404CA for ; Thu, 21 May 2020 13:26:04 +0000 (UTC) Received: from localhost ([::1]:34328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jblD1-0000dp-Gc for larch@yhetil.org; Thu, 21 May 2020 09:26:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jblCu-0000dh-EM for help-guix@gnu.org; Thu, 21 May 2020 09:25:56 -0400 Received: from sender4-pp-o93.zoho.com ([136.143.188.93]:25395) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jblCt-00041c-HP for help-guix@gnu.org; Thu, 21 May 2020 09:25:56 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1590067553; cv=none; d=zohomail.com; s=zohoarc; b=gtkPSuvcMW+ksFq2/WX4meyUZIdgVD53ZbRjNPlaW++Bfqq2dZC+1f3mxzz47jlNcqrjSrrPd/QZMZ+PPz2lh2GOF9NNWbGWlNQ0TSWBwQ2Qf3fdZ1hiqHIWZviFeO59KehLFqqlUUmPwsJYa8WWl28pnxLn1eIERC0++kUfTso= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590067553; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=SGgidMGMbMMqlb9flkcUkFEvA2NhwZtIp0y/KoBdWEs=; b=HtcYq1sl2Q91lzJUxKnxvdpGTHcMPhZMN7yNktQs/z8Dw85YtQSh1UsZZ7l8UKWOUdkvW05XhUdq9hTE5vPS5DxMFUzxkbQw/dJSOpX+HxiY+nOsMlsbr8F0ORz2gpLnADW61GQlGoiYXTlvnXr8eg65q01xr7v1fCLU7qKd0tY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=sirgazil@zoho.com; dmarc=pass header.from= header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=date:from:to:cc:message-id:in-reply-to:references:subject:mime-version:content-type:user-agent; b=PE0s0jHGzxR568GpFxmOTI5T4ZJnRpCiCrnKoh6+G5TlBvBGc1RitGITNfvWLJtrQ/ow9Fi05DD4 d7QEZ6VDEOFwItetV65z7GgyHa7VhSjeicqV7Bj0mhu36MX3q7GW DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1590067553; s=zm2020; d=zoho.com; i=sirgazil@zoho.com; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=SGgidMGMbMMqlb9flkcUkFEvA2NhwZtIp0y/KoBdWEs=; b=RpTh9idssK3FWcD/dixzOuLwza0jniihFB9rmdahzQnhvM20jF5jMmxGMXyaL9II eFXNpqvzI+QK+jBpsUyvgQk0sMa/nHBKVuJoihMGchNr+rfwUhv/decnXDGLzFRflUm G3G+fZk0qiALs0g2t8fNVIMF4/+cqYXf/HfZ4juU= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1590067545109968.5795367342164; Thu, 21 May 2020 06:25:45 -0700 (PDT) Received: from [179.15.13.185] by mail.zoho.com with HTTP;Thu, 21 May 2020 06:25:45 -0700 (PDT) Date: Thu, 21 May 2020 08:25:45 -0500 From: sirgazil To: "Marius Bakke" Cc: "Guix Help" Message-ID: <17237694413.d6002a4516754.237995493303580837@zoho.com> In-Reply-To: <878shla245.fsf@devup.no> References: <17234059da3.b5e01d1e8240.9032082708652182693@zoho.com> <878shla245.fsf@devup.no> Subject: Re: Appropriate way to use Guix API from a Guile program MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Received-SPF: pass client-ip=136.143.188.93; envelope-from=sirgazil@zoho.com; helo=sender4-pp-o93.zoho.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/21 09:25:53 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-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=zoho.com header.s=zm2020 header.b=RpTh9ids; dmarc=pass (policy=reject) header.from=zoho.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: -2.70 X-TUID: VIE9Z2d238GB ---- On Thu, 21 May 2020 07:44:58 -0500 Marius Bakke = wrote ---- > sirgazil writes: >=20 > > Hi, > > > > I use Guix's GNU system.=20 > > > > I had written a Guile script that called Guix procedures to manipulate= profiles. 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 = trying 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= /profile-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 > 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. Ok. I haven't touched 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. >=20 > 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. Oh, ok. I'll reconfigure then. Thanks Marius and Efraim.