From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 9EzmIlCjxV7cRAAA0tVLHw (envelope-from ) for ; Wed, 20 May 2020 21:38:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KHc4HlCjxV7dbAAAB5/wlQ (envelope-from ) for ; Wed, 20 May 2020 21:38:24 +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 E4F4B9404CA for ; Wed, 20 May 2020 21:38:23 +0000 (UTC) Received: from localhost ([::1]:51094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbWPu-0003Tr-T4 for larch@yhetil.org; Wed, 20 May 2020 17:38:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49982) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbWPm-0003Rh-GO for help-guix@gnu.org; Wed, 20 May 2020 17:38:14 -0400 Received: from sender4-pp-o93.zoho.com ([136.143.188.93]:25359) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jbWPl-00013G-Ek for help-guix@gnu.org; Wed, 20 May 2020 17:38:14 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1590010688; cv=none; d=zohomail.com; s=zohoarc; b=UCEXmqB/TPfxsvsSWcjnBEhJrxTeBx2qLcO1J4hoOW36UP3iTPVaIBxz/nDxfHz3oOIHMBcLWDvkRoH0tCbxKQSfPWa1BmbvMxA/47I+pOQaYJ+b0Ick8Lm/Az5juPhnQx74kv6bdVL+6Mvb+QTZYpibiMSisy4c6O13XV5pdsc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590010688; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=TfI8h+PgAboJWhF7rVNb8xq2sM/iv5MCzWlWMjCRKU0=; b=CdqY24hJeF+OqgPB57U/RbMWShhaJvU7JGwc30N+mnmcrfdGMX2wtU9q0XhnM8zjQs8WCHrlJ2UEMgKQ1WxbhhCn6TLCiw7aAYZNYXYo7oLPdrJbJ5aJBG2Zi+6PqQcQaxwZBry/iXVGioVrv09ScMM/O2Qj9oqHankyCoKP5eo= 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:message-id:in-reply-to:subject:mime-version:content-type:user-agent; b=cXwTZ9Bt82DWFS5Uh6oNBglvbgCly1AyU6HSFAEVAqXQH/ma75pqNlro+Vl/wH0vRLWDElalkwmh NqjGjiUpir0J8icqjtf/kGXKkAZT1ao943uTn2ZlWlbee1mXdaq7 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1590010688; s=zm2020; d=zoho.com; i=sirgazil@zoho.com; h=Date:From:To:Message-ID:In-Reply-To:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=TfI8h+PgAboJWhF7rVNb8xq2sM/iv5MCzWlWMjCRKU0=; b=C6tBni8aE5Lra8+x44qN8v6x/6ChZPwm2ORTqz8Z12hJjjZa+6Uyp/5gs6n68W85 dB1GJe/4Qj0tIEYCXrcMq6cdNP+JmwXK3emO9OSKcYaioOwZEXNw6beeLKsmoq5W3CO 6sDsandTtV43sAhTjDnZNFFJYOK0nY1UZMTCyps8= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1590010682789393.1214669858608; Wed, 20 May 2020 14:38:02 -0700 (PDT) Received: from [179.15.13.185] by mail.zoho.com with HTTP;Wed, 20 May 2020 14:38:02 -0700 (PDT) Date: Wed, 20 May 2020 16:38:02 -0500 From: sirgazil To: "Guix Help" Message-ID: <17234059da3.b5e01d1e8240.9032082708652182693@zoho.com> In-Reply-To: Subject: 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/20 17:38:09 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=C6tBni8a; 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: GFqDhQ4bKnE/ Hi, I use Guix's GNU system.=20 I had written a Guile script that called Guix procedures to manipulate prof= iles. I put it in a Guix package in a custom channel and installed it. It u= sed to work, but now it fails with an error I can also reproduce when tryin= g 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/prof= ile-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 This error is familiar. I got it in a slightly different context before whe= n running the guix command directly from a terminal (https://lists.gnu.org/= archive/html/help-guix/2020-05/msg00045.html). In the context of Guile scripting, how do I know which Guix is being import= ed?=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 adding= guix as an input, pulled the new package definition, upgraded the package,= ran the script, but got the same error. --- https://sirgazil.bitbucket.io/