help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Appropriate way to use Guix API from a Guile program


From: sirgazil
Subject: Re: Appropriate way to use Guix API from a Guile program
Date: Thu, 21 May 2020 08:25:45 -0500
User-agent: Zoho Mail

 ---- On Thu, 21 May 2020 07:44:58 -0500 Marius Bakke <address@hidden> wrote 
----
 > sirgazil <address@hidden> writes:
 > 
 > > Hi,
 > >
 > > I use Guix's GNU system. 
 > >
 > > 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:
 > >
 > > ★★★★★★★★★★★★★★★★★★★★
 > > $ 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
 > > ★★★★★★★★★★★★★★★★★★★★
 > 
 > 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.
 > 
 > 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.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]