unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Building guix-modular with cuirass
@ 2018-04-27  9:10 Mathieu Othacehe
  2018-04-30 13:04 ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Mathieu Othacehe @ 2018-04-27  9:10 UTC (permalink / raw)
  To: help-guix


Hi Guix,

I setup my own cuirass server to build guix-modular, here's how:

--8<---------------cut here---------------start------------->8---
(define (build-guix-modular store arguments)
  (let* ((source (assq-ref arguments 'file-name))
         (revision (assq-ref arguments 'revision))
         (build (primitive-load (string-append source "/build-aux/build-self.scm")))
         (res (lambda ()
                `((#:job-name . ,(string-append "guix-" revision "-job"))
                  (#:derivation . ,(derivation-file-name
                                    (run-with-store store
                                      (build source
                                             #:version revision
                                             #:guile-version "2.2"))))))))
    (format (current-error-port) "---------> ~a|~a~%" arguments (res))
    res))
--8<---------------cut here---------------end--------------->8---

This is directly inspired by what I found in build-aux/ directory. While
everything seems great (thanks Ludo for this new feature :p), my other
machines do not use derivations builded by cuirass when running 'guix
pull'.

However, on the machine running cuirass, I have no build error an when
running 'guix pull', nothing is builded and everything works fine.

Any idea how to debug this issue ?

Thanks,

Mathieu

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Building guix-modular with cuirass
  2018-04-27  9:10 Building guix-modular with cuirass Mathieu Othacehe
@ 2018-04-30 13:04 ` Ludovic Courtès
  2018-04-30 18:29   ` Mathieu Othacehe
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2018-04-30 13:04 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: help-guix

Hello Mathieu,

Mathieu Othacehe <m.othacehe@gmail.com> skribis:

> I setup my own cuirass server to build guix-modular, here's how:
>
> (define (build-guix-modular store arguments)

You shouldn’t need to do anything like that.  Here’s what we have on
berlin.guixsd.org:

--8<---------------cut here---------------start------------->8---
$ sudo sqlite3 /var/run/cuirass/cuirass.db 
SQLite version 3.19.3 2017-06-08 14:26:16
Enter ".help" for usage hints.
sqlite> select * from specifications where repo_name='guix-modular';
guix-modular|https://git.savannah.gnu.org/git/guix.git||build-aux/cuirass/guix-modular.scm|cuirass-jobs|((systems "x86_64-linux" "i686-linux" "aarch64-linux"))|master|||1
--8<---------------cut here---------------end--------------->8---

If you add a similar entry on your server, it should be fine.

Can you try and report back?

If Cuirass doesn’t seem to do what you want, I recommend browsing
/var/log/cuirass.log to see what’s going on.

HTH!

Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Building guix-modular with cuirass
  2018-04-30 13:04 ` Ludovic Courtès
@ 2018-04-30 18:29   ` Mathieu Othacehe
  2018-05-01 20:56     ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Mathieu Othacehe @ 2018-04-30 18:29 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: help-guix


Hi Ludo,

> If you add a similar entry on your server, it should be fine.
>
> Can you try and report back?

Yes you're right it works fine, thanks :)

However, some of my machines are not picking up the substitutes builded
while running 'guix pull'.

I found why, on machines that I didn't reconfigure recently,
'default-guile' is guile-2.2.2, while on the cuirass machine it is
guile-2.2.3. When reconfiguring them before, substitutes are picked-up
correctly.

Thanks,

Mathieu

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Building guix-modular with cuirass
  2018-04-30 18:29   ` Mathieu Othacehe
@ 2018-05-01 20:56     ` Ludovic Courtès
  2018-05-08 21:23       ` Nils Gillmann
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2018-05-01 20:56 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: help-guix

Hello,

Mathieu Othacehe <m.othacehe@gmail.com> skribis:

>> If you add a similar entry on your server, it should be fine.
>>
>> Can you try and report back?
>
> Yes you're right it works fine, thanks :)
>
> However, some of my machines are not picking up the substitutes builded
> while running 'guix pull'.
>
> I found why, on machines that I didn't reconfigure recently,
> 'default-guile' is guile-2.2.2, while on the cuirass machine it is
> guile-2.2.3. When reconfiguring them before, substitutes are picked-up
> correctly.

Oh indeed.

In the near future, I want ‘guix pull’ to install a ‘guix’ binary as
opposed to simply dropping a bunch of modules in ~/.config/guix/latest.
At that point we won’t have this kind of problem anymore.

Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Building guix-modular with cuirass
  2018-05-01 20:56     ` Ludovic Courtès
@ 2018-05-08 21:23       ` Nils Gillmann
  2018-05-13  2:17         ` Chris Marusich
  0 siblings, 1 reply; 7+ messages in thread
From: Nils Gillmann @ 2018-05-08 21:23 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: help-guix

Ludovic Courtès transcribed 800 bytes:
> Hello,
> 
> Mathieu Othacehe <m.othacehe@gmail.com> skribis:
> 
> >> If you add a similar entry on your server, it should be fine.
> >>
> >> Can you try and report back?
> >
> > Yes you're right it works fine, thanks :)
> >
> > However, some of my machines are not picking up the substitutes builded
> > while running 'guix pull'.
> >
> > I found why, on machines that I didn't reconfigure recently,
> > 'default-guile' is guile-2.2.2, while on the cuirass machine it is
> > guile-2.2.3. When reconfiguring them before, substitutes are picked-up
> > correctly.
> 
> Oh indeed.
> 
> In the near future, I want ‘guix pull’ to install a ‘guix’ binary as
> opposed to simply dropping a bunch of modules in ~/.config/guix/latest.
> At that point we won’t have this kind of problem anymore.
> 
> Ludo’.
> 

Not trying to derail this thread too much, but could you explain that a
bit more Ludovic? I'm curious.
This is moving beyond the current change with modular guix (which still
drops a bunch of modules into the store and compiles them), correct?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Building guix-modular with cuirass
  2018-05-08 21:23       ` Nils Gillmann
@ 2018-05-13  2:17         ` Chris Marusich
  2018-05-13  7:48           ` swedebugia
  0 siblings, 1 reply; 7+ messages in thread
From: Chris Marusich @ 2018-05-13  2:17 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 2216 bytes --]

Nils Gillmann <ng0@n0.is> writes:

> Ludovic Courtès transcribed 800 bytes:
>>
>> In the near future, I want ‘guix pull’ to install a ‘guix’ binary as
>> opposed to simply dropping a bunch of modules in ~/.config/guix/latest.
>> At that point we won’t have this kind of problem anymore.
>> 
>> Ludo’.
>> 
>
> Not trying to derail this thread too much, but could you explain that a
> bit more Ludovic? I'm curious.
> This is moving beyond the current change with modular guix (which still
> drops a bunch of modules into the store and compiles them), correct?

I think he's referring to his latest comments here:

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=22629

Today, the "guix" command is a thin wrapper, as explained here:

https://lists.gnu.org/archive/html/help-guix/2017-09/msg00092.html

Going forward, I think Ludo is suggesting that we should no longer rely
on the thin wrapper to delegate business logic to whatever is installed
in ~/.config/guix/latest; instead, "guix pull" would basically build a
new Guix (including the "guix" command) in a profile located at
~/.config/guix/current.  Each user would use their own "guix" command.

Currently, when a user invokes a command like "guix package -i foo", the
path of execution is roughly like this:

1. /run/current-system/profile/bin/guix (or, if it's a foreign
distribution and the user has installed Guix according to the manual,
this will be /usr/local/bin/guix, which points to
/var/guix/profiles/per-user/root/guix-profile/bin/guix)
2. ~/.config/guix/latest/${whatever_module_was_invoked}

But after the proposed improvement, the path of execution would be:

1. ~/.config/guix/current/bin/guix
2. ~/.config/guix/current/${whatever_module_was_invoked}

So, every Guix installation would truly be self-contained, unlike the
current situation, where the same thin "guix" command is shared by every
user.  And since ~/.config/guix/current is basically just a profile, I
think we'd also get roll-back for free, which is nice because currently
roll-back after a "guix pull" isn't as easy as it could be

Ludo, please feel free to correct me if I'm misrepresenting anything.

-- 
Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Building guix-modular with cuirass
  2018-05-13  2:17         ` Chris Marusich
@ 2018-05-13  7:48           ` swedebugia
  0 siblings, 0 replies; 7+ messages in thread
From: swedebugia @ 2018-05-13  7:48 UTC (permalink / raw)
  To: Ludovic Courtès, Chris Marusich; +Cc: help-guix


On 2018-05-13 04:17, Chris Marusich wrote:
> Nils Gillmann <ng0@n0.is> writes:
>
>> Ludovic Courtès transcribed 800 bytes:
>>> In the near future, I want ‘guix pull’ to install a ‘guix’ binary as
>>> opposed to simply dropping a bunch of modules in ~/.config/guix/latest.
>>> At that point we won’t have this kind of problem anymore.
>>>
>>> Ludo’.
>>>
>> Not trying to derail this thread too much, but could you explain that a
>> bit more Ludovic? I'm curious.
>> This is moving beyond the current change with modular guix (which still
>> drops a bunch of modules into the store and compiles them), correct?
> I think he's referring to his latest comments here:
>
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=22629
>
> Today, the "guix" command is a thin wrapper, as explained here:
>
> https://lists.gnu.org/archive/html/help-guix/2017-09/msg00092.html
>
> Going forward, I think Ludo is suggesting that we should no longer rely
> on the thin wrapper to delegate business logic to whatever is installed
> in ~/.config/guix/latest; instead, "guix pull" would basically build a
> new Guix (including the "guix" command) in a profile located at
> ~/.config/guix/current.  Each user would use their own "guix" command.
>
> Currently, when a user invokes a command like "guix package -i foo", the
> path of execution is roughly like this:
>
> 1. /run/current-system/profile/bin/guix (or, if it's a foreign
> distribution and the user has installed Guix according to the manual,
> this will be /usr/local/bin/guix, which points to
> /var/guix/profiles/per-user/root/guix-profile/bin/guix)
> 2. ~/.config/guix/latest/${whatever_module_was_invoked}
>
> But after the proposed improvement, the path of execution would be:
>
> 1. ~/.config/guix/current/bin/guix
> 2. ~/.config/guix/current/${whatever_module_was_invoked}
>
> So, every Guix installation would truly be self-contained, unlike the
> current situation, where the same thin "guix" command is shared by every
> user.  And since ~/.config/guix/current is basically just a profile, I
> think we'd also get roll-back for free, which is nice because currently
> roll-back after a "guix pull" isn't as easy as it could be
>
> Ludo, please feel free to correct me if I'm misrepresenting anything.
Sounds like nice improvement to me. :)

Guix pull seems still to be the least robust and least user friendly 
part of Guix according to my experience.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-05-13  7:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-27  9:10 Building guix-modular with cuirass Mathieu Othacehe
2018-04-30 13:04 ` Ludovic Courtès
2018-04-30 18:29   ` Mathieu Othacehe
2018-05-01 20:56     ` Ludovic Courtès
2018-05-08 21:23       ` Nils Gillmann
2018-05-13  2:17         ` Chris Marusich
2018-05-13  7:48           ` swedebugia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).