Re: Not sure how to add an offload server

2024-11-07 Thread Simen Endsjø
I also see the following commented out lines in the offload script: ;; Avoid ABI incompatibility with the record. ;; (set! %fresh-auto-compile #t) And this from load* in ui.scm: ;; XXX: Force a recompilation to avoid ABI issues. (set! %fresh-auto-compile #t) So my ABI mis

Re: Not sure how to add an offload server

2024-11-07 Thread Simen Endsjø
Ok, so now it suddenly works. I cannot see any recent commits in guix which should indicate a change related to this. What kind of bad state could I have had on my system which has been fixed by experimenting with the local guix and pre-inst-env? And is it permanently fixed now? I find this both

Re: Not sure how to add an offload server

2024-11-07 Thread Simen Endsjø
Not sure what you mean. Tried adding the channel with -L, but I get an error about a record ABI mismatch. How is this possible? Is somehow two different guix channels used...? $ ./pre-inst-env guix system \ -L ~/the-locally-cloned-required-channel \ reconfigure the-system.scm guix system: e

Re: 'guix build [P]' followed by 'guix install /gnu/store/[...]' vs. 'guix install [P]'

2024-11-07 Thread Rutherther
Hello, > How do I, by the way, programmatically get from the 'guix build' list of > (here: three) outputs to the main ("out") output? Via the outputs work something like this: when the package is being built the builder scripts build everything. At the end, something is copied to out output, s

Re: 'guix build [P]' followed by 'guix install /gnu/store/[...]' vs. 'guix install [P]'

2024-11-07 Thread Thomas Schwinge
Hi! A few days ago, I had posted this to , but not yet gotten any response -- I understand everyone's busy, of course ;-) -- and this morning had a quick chat on Guix IRC (see below), but as that also wasn't really conclusive, I'd like to re-post on : On 2024-11-03T18:10:32+0100, I wrote: > I was

Packaging a repository with git submodules

2024-11-07 Thread Adam
Hi Guix! I have a question. If I want to write a package for a git repository which has submodules, should I download these dependencies recursively (recursive? #t)? Or it will be better to write a package definition for each dependency?

Re: Not sure how to add an offload server

2024-11-07 Thread Felix Lechner via
Hi Simen, On Thu, Nov 07 2024, Simen Endsjø wrote: > I'm unable to rebuild the system using this method as it looks like my > channels is not loaded Sorry about your troubles. Guix will accept -L to include local folders, which can hold a cloned Git repository. It's not convenient, but will wo

Re: Not sure how to add an offload server

2024-11-07 Thread Simen Endsjø
My config doesn't show any trace of /usr/local: $ grep --context=3 \ %sysconfdir \ "$(dirname $(realpath /run/current-system/profile/bin/guix-daemon))/../share/guile/site/3.0/guix/config.scm" %storedir %localstatedir

Re: Avoid sending sources to offload servers

2024-11-07 Thread Simen Endsjø
Yes, but it is very cumbersome. I can no longer just "reconfigure" my home or system, but have to manually to a build for all packages with the correct parameters first. Same for guix shell; I'd have to first split them into "with offload" and "without offload". I guess what I would like is at

Re: Avoid sending sources to offload servers

2024-11-07 Thread Edouard Klein
I may be mistaken, but you I think you can run guix build a with offloading, and guix build b c without, then when you run guix shell, a, b, and c will all be in your store and won't need to be rebuilt. Simen Endsjø writes: > Yes, that's what I'm using, but it's not granular. The problem is thi

Re: Avoid sending sources to offload servers

2024-11-07 Thread Simen Endsjø
Yes, that's what I'm using, but it's not granular. The problem is things like `guix shell a b c`. - a has a small source and long build time - b has a large source and short build time - c has a large output a is no problem to offload, but b will cause a lot of unnecessary traffic, and I might w

Re: Avoid sending sources to offload servers

2024-11-07 Thread Hilton Chain
Hi Simen, On Thu, 07 Nov 2024 16:57:26 +0800, Simen Endsjø wrote: > > I notice package sources are sent to offload servers. I have a build that has > 1.9GB sources, and results in a 4.7GB store item. I would have thought only > the > definitions were sent to the build machine, and it would downlo

Re: Not sure how to add an offload server

2024-11-07 Thread Hilton Chain
Hi Simen, On Thu, 07 Nov 2024 16:03:46 +0800, Simen Endsjø wrote: > > Strange! I found out the error was passed by the offload server, so it was > complaining that it didn't trust my laptop! I added my laptop to authorized > keys on the server, and then it works! `guix archive --authorize` complai

Avoid sending sources to offload servers

2024-11-07 Thread Simen Endsjø
I notice package sources are sent to offload servers. I have a build that has 1.9GB sources, and results in a 4.7GB store item. I would have thought only the definitions were sent to the build machine, and it would download the 1.9GB file, but it seems this file is sent from my machine. I cannot se

Re: Not sure how to add an offload server

2024-11-07 Thread Simen Endsjø
Strange! I found out the error was passed by the offload server, so it was complaining that it didn't trust my laptop! I added my laptop to authorized keys on the server, and then it works! `guix archive --authorize` complains that it should be set in the system configuration for Guix SD though, so