bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd

2020-05-02 Thread Ludovic Courtès
Hi! Jan Nieuwenhuizen skribis: > Pushed to core-updates as d2fc76462e72268ee5b04fe53805efc05c35e139, Closing! Ludo’.

bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd

2020-04-29 Thread Mathieu Othacehe
Hello! >> This is because running grub-install needs root permissions, to mess with >> /dev/something in order to write the MBR I guess. > > Hmm...so we need to do some work, is that bad? Not sure yet, but I'll investigate it. >> We could also create a Hurd ISO if grub-mkrescue (that is used

bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd

2020-04-28 Thread Jan Nieuwenhuizen
Mathieu Othacehe writes: Hello Mathieu! > I had a look to (gnu system hurd), this is really nice! I think we could > try an explosive mixture of our two branches :) Sure, why not? ;-) I played a bit yesterday with wip-disk-image. Not that (gnu system hurd) already lives on core-updates;

bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd

2020-04-27 Thread Mathieu Othacehe
Hello Janneke! I had a look to (gnu system hurd), this is really nice! I think we could try an explosive mixture of our two branches :) More seriously, we could do something like: --8<---cut here---start->8--- (define hurd-disk-image (image (format

bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd

2020-04-25 Thread Jan Nieuwenhuizen
Mathieu Othacehe writes: >> We did this to avoid too much struggle up front with parameterizing, >> working around, or removing Linux-specifics from "guix system >> --target=i586-pc-gnu build,vm,..." > > I have not followed really closely the recent progress on the Hurd, but > I think we may need

bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd

2020-04-25 Thread Jan Nieuwenhuizen
Ludovic Courtès writes: Hello! >> Now, the tricky part is the value of target, because >> #$(%current-target-system) might not be correct in that context. > > Yes, that brings us back to . > Time flies! But now we really need to address it. Oh! Yes, I

bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd

2020-04-25 Thread Ludovic Courtès
Hey ho! Mathieu Othacehe skribis: > That would look like: > > (if target > (with-target target > (compile-file #$file #:output-file #$output >#:env env)) > (compile-file #$file #:output-file #$output > #:env env)) > > > Now,

bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd

2020-04-25 Thread Jan Nieuwenhuizen
Mathieu Othacehe writes: Hello Mathieu, > I strongly suspect this is because we would need to wrap the > "compile-file" call in "scm->go" procedure of (gnu services shepherd) > inside a "with-target". > That would look like: > > (if target > (with-target target >

bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd

2020-04-25 Thread Mathieu Othacehe
> The wip-hurd-vm branch cross-builds a VM for the Hurd. It uses some > dedicated hacks to build the system packages, services, system profile > and shepherd configuration and cross-build them into a qemu image. > > We did this to avoid too much struggle up front with parameterizing, > working

bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd

2020-04-25 Thread Mathieu Othacehe
Hello Jan, > /gnu/store/dbmj8ls2bwn0vbwi6qzng56rgrza3z0i-shepherd-host-name.go > $ 11:27:25 janneke@dundal:~/src/guix/core-updates [env] > $ file /gnu/store/dbmj8ls2bwn0vbwi6qzng56rgrza3z0i-shepherd-host-name.go > /gnu/store/dbmj8ls2bwn0vbwi6qzng56rgrza3z0i-shepherd-host-name.go: ELF 64-bit >

bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd

2020-04-25 Thread Jan Nieuwenhuizen
Hello! The wip-hurd-vm branch cross-builds a VM for the Hurd. It uses some dedicated hacks to build the system packages, services, system profile and shepherd configuration and cross-build them into a qemu image. We did this to avoid too much struggle up front with parameterizing, working