From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 25 05:49:17 2020 Received: (at submit) by debbugs.gnu.org; 25 Apr 2020 09:49:17 +0000 Received: from localhost ([127.0.0.1]:58539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSHQy-0007JH-OW for submit@debbugs.gnu.org; Sat, 25 Apr 2020 05:49:17 -0400 Received: from lists.gnu.org ([209.51.188.17]:48844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSHQw-0007J8-Ds for submit@debbugs.gnu.org; Sat, 25 Apr 2020 05:49:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58868) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSHQv-0004qo-2L for bug-guix@gnu.org; Sat, 25 Apr 2020 05:49:14 -0400 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=ALL_TRUSTED, BAYES_00, BTC_ORG, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50920) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSHQu-0001db-Pg; Sat, 25 Apr 2020 05:49:12 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=59144 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jSHQu-0007GI-7r; Sat, 25 Apr 2020 05:49:12 -0400 From: Jan Nieuwenhuizen To: bug-guix@gnu.org Subject: Shepherd activation .GO files are not cross-compiled ... and the Hurd Organization: AvatarAcademy.nl X-Url: http://AvatarAcademy.nl Date: Sat, 25 Apr 2020 11:49:09 +0200 Message-ID: <87imhnuc8a.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.8 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) 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 around, or removing Linux-specifics from "guix system --target=3Di586-pc-gnu build,vm,..." One problem that still remains is that the shepherd's activation .GO files are not cross-compiled. Currently, wip-hurd-vm works around that by having the Shepherd load .SCM files instead of the (wrongly compiled) .GO files. After some discussion on IRC, I decided to find out if guix system build --target=3D... might not have this bug. That would make a great case to start migrating some custom gnu/system/hurd.scm code to "guix system --target=3Di586-pc-gnu ..."; we will have to do that some times soon anyway. guix system ..., however, shows has the same bug. You can see that by doing something like --8<---------------cut here---------------start------------->8--- 10:31:10 janneke@dundal:~/src/guix/core-updates [env] $ timeout 5 ./pre-inst-env guix system build --target=3Darm-linux-gnueabihf= --no-bootloader --no-grafts --verbosity=3D1 gnu/system/examples/bare-bones= .tmpl |& grep shepherd.*go.drv /gnu/store/08brf243p0zfkz2d5imsy2swy1pzhpvb-shepherd-networking.go.drv /gnu/store/0wyzan9dmv23i4bjv6vlrq9h0zfph6gx-shepherd-console-font-tty4.g= o.drv /gnu/store/0x2mscizw7bhv3da3njhr6h37jmisk7r-shepherd-console-font-tty1.g= o.drv /gnu/store/2r2rc2kp3wfvrlkz7gkhz06ggy0x3g9i-shepherd-term-tty1.go.drv /gnu/store/3845nr3gczx6pia83d796r56a89ihhwq-shepherd-term-auto.go.drv /gnu/store/3a7mivzyr5cx9kgkxl2g2flv6z9mnb16-shepherd-console-font-tty5.g= o.drv /gnu/store/5190cy2n0kcil0w1ln5f5z7rhnbp0m98-shepherd-file-system--dev-pt= s.go.drv /gnu/store/571pfgfi3q6ql0g1qadpm4ka06w1ckl1-shepherd-syslogd.go.drv /gnu/store/5j18jk5x33nkw4fdfdi4wwk03264sc1i-shepherd-nscd.go.drv /gnu/store/5kaacb0amw3k7avjj9xahbw50cchs4gc-shepherd-term-tty2.go.drv /gnu/store/67idmlz2b4dsbj4s9x2733q4d2vlhql5-shepherd-ssh-daemon-ssh-sshd= .go.drv /gnu/store/6n8pmflgqpkdcs02876n9f0nd51iggh3-shepherd-term-tty5.go.drv /gnu/store/9zrvxc2ii85zczv6yiq0h6z8xbsr69ny-shepherd-term-tty4.go.drv /gnu/store/blfzip72s4zwg8rwbs5n5x4m0jamlxzi-shepherd-user-homes.go.drv /gnu/store/bwks8ydmfcc4ig47qriwz02ja86lrpkn-shepherd-console-font-tty2.g= o.drv /gnu/store/fgimk2w6zfd11fn1mk1kzab2wh4f548g-shepherd-term-tty3.go.drv /gnu/store/g6dy6yqgn5rn6p0vza964kjsrnxymm4r-shepherd-term-tty6.go.drv /gnu/store/hhmsgh0plqhb5448kdjjg6cl66l8fnqv-shepherd-file-system--dev-sh= m.go.drv /gnu/store/hhvs8400445b8gs7nfp8sya9c32k3h0q-shepherd-user-processes.go.d= rv /gnu/store/ihnl0bqhz0x88a393bbpxiq52rf0rd5w-shepherd-console-font-tty6.g= o.drv /gnu/store/ki7n8gg54mc9dbzw3i7drpzys2w15033-shepherd-guix-daemon.go.drv /gnu/store/nxnzrh2pbhnk2pxw8iggc28096p0vyqk-shepherd-root-file-system.go= .drv /gnu/store/pw8p4ywnbamfz4ikr6zw9m4clszxakap-shepherd-console-font-tty3.g= o.drv /gnu/store/s3f030pywqps9fmdp0mnldyvmdkmm9d9-shepherd-file-systems.go.drv /gnu/store/vkafkq4qpnsijv7my0pw8qdg46ya206y-shepherd-user-file-systems.g= o.drv /gnu/store/vv25y5a8vga2syi716ph75x2xp0pjj7f-shepherd-mcron.go.drv /gnu/store/vxp0855svszgk8wix0mml2ahw48jdphx-shepherd-host-name.go.drv /gnu/store/x6s7b4il8a8lnwj8sshx786sq1l0mxsm-shepherd-loopback.go.drv /gnu/store/xnpg23wpxwyqjmh9vssp29kw2pwaq04x-shepherd-udev.go.drv /gnu/store/y5nv3pplsbf9i1mzpg5p0ry0qv1qxq7c-shepherd-file-system--gnu-st= ore.go.drv /gnu/store/z0a48zsv23pgy5d89ywj1sm9nwxdrwbq-shepherd-urandom-seed.go.drv /gnu/store/znn7813x9p1zn6bdywciqm6yk1qm7r0q-shepherd-virtual-terminal.go= .drv Terminated [143]10:31:15 janneke@dundal:~/src/guix/core-updates [env] $ ./pre-inst-env guix build --target=3Darm-linux-gnueabihf --no-grafts --ve= rbosity=3D1 /gnu/store/vxp0855svszgk8wix0mml2ahw48jdphx-shepherd-host-name.= go.drv ... /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-b= it LSB shared object no machine, version 1 (embedded), dynamically linked, = with debug_info, not stripped --8<---------------cut here---------------end--------------->8--- Greetings, janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 25 08:13:59 2020 Received: (at 40839) by debbugs.gnu.org; 25 Apr 2020 12:13:59 +0000 Received: from localhost ([127.0.0.1]:58962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSJh1-0006kZ-Et for submit@debbugs.gnu.org; Sat, 25 Apr 2020 08:13:59 -0400 Received: from mail-wm1-f41.google.com ([209.85.128.41]:54554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSJgz-0006kM-PA for 40839@debbugs.gnu.org; Sat, 25 Apr 2020 08:13:58 -0400 Received: by mail-wm1-f41.google.com with SMTP id h4so851567wmb.4 for <40839@debbugs.gnu.org>; Sat, 25 Apr 2020 05:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=yePKiWS8prd4Gs+nMAAlE56UwHcgc0AuiKKariyvSug=; b=Y4J4QW6YG16XHUVgBN/CU50H+nSiNQRwHxrg8YPUYPGcTJDu4Vx0TkEC31mF/p64m4 331o41+Hr5DsemTf0bO1I6TP67tJYFUXj85vcw8pCFJET9qwRdX5/3cor1wT8XXtZX+b DPsdM7A5oiEmgtbZTsz9ahZmGawfxaYZTF9HLcRk/qMKNfHEeYgaf2ozHNlURki93XE9 xSZq4gNTJpGaOdjSOQbR2/pp+vNaQrgIw3j9buiNDsvGiaLrSELdUPbnwWIAuytGoMmI VfaQ4kuEDzMrXwXkcyhJhQfizrIj9iENsDRRj9+VFfc02T5vQvsGlxuWOAN4eu+eL5QY nzAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=yePKiWS8prd4Gs+nMAAlE56UwHcgc0AuiKKariyvSug=; b=BaN9J4wqyB6jFW4BktK6iYwkmqJN4tJOAC0JZDAigeYIGdlJy/HjmGZXebhZxnBnBo 2pRVNWkdQqrANKh4fZNS7IRTz3Nviq87bofZS1pq8/MFqiAt1Jhv4eGQacZvVTfPVEok piuRPRThdX6PR58NCFCIOjo3uxD/CLAfFm0ll8Vt+lLWmJWXKsYC+0Bq0v2WlBsMG8xy AnQDmVrc7Vk9mgS8eNapNSC8IK23DNEvXFSVTrd003hMLrq2y2nd4az3geJ3PTEvWLzt xi21XkRFRvg74Ydko5FYAGjwyQa0aJvAee+tYP+c41mAMBgCQXmVLiW1V6zapfTZJbau namQ== X-Gm-Message-State: AGi0Pubhn4OXsniXxMbND92NeIwpGeffPQQpzRHqdVCaZ9JZ8ffbQpSj V7JUEiR9sHN80H4LTZaeXoDD5/FS X-Google-Smtp-Source: APiQypLeoDhH3TAU8mH5PI9ob45NRnhNODHj8lxeLjrfDqxrq0o/m0Jem1QtJK1I+D8yrWIwe250VA== X-Received: by 2002:a1c:e906:: with SMTP id q6mr15152655wmc.62.1587816831629; Sat, 25 Apr 2020 05:13:51 -0700 (PDT) Received: from meru ([2a01:cb18:832e:5f00:556b:aad6:8a55:812e]) by smtp.gmail.com with ESMTPSA id k9sm12963121wrd.17.2020.04.25.05.13.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Apr 2020 05:13:50 -0700 (PDT) From: Mathieu Othacehe To: Jan Nieuwenhuizen Subject: Re: bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd References: <87imhnuc8a.fsf@gnu.org> Date: Sat, 25 Apr 2020 14:13:49 +0200 In-Reply-To: <87imhnuc8a.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Sat, 25 Apr 2020 11:49:09 +0200") Message-ID: <87wo63u5j6.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 40839 Cc: 40839@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 LSB shared object no machine, version 1 (embedded), dynamically linked, with debug_info, not stripped 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: --8<---------------cut here---------------start------------->8--- (if target (with-target target (compile-file #$file #:output-file #$output #:env env)) (compile-file #$file #:output-file #$output #:env env)) --8<---------------cut here---------------end--------------->8--- Now, the tricky part is the value of target, because #$(%current-target-system) might not be correct in that context. Mathieu From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 25 08:32:24 2020 Received: (at 40839) by debbugs.gnu.org; 25 Apr 2020 12:32:24 +0000 Received: from localhost ([127.0.0.1]:58987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSJyq-0007Es-3y for submit@debbugs.gnu.org; Sat, 25 Apr 2020 08:32:24 -0400 Received: from mail-wm1-f44.google.com ([209.85.128.44]:51696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSJyo-0007Ee-6x for 40839@debbugs.gnu.org; Sat, 25 Apr 2020 08:32:22 -0400 Received: by mail-wm1-f44.google.com with SMTP id x4so14137630wmj.1 for <40839@debbugs.gnu.org>; Sat, 25 Apr 2020 05:32:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=spucMy61pwCLcF5r2tX7WYl3n/FsZyFzNad5Ul5ijtI=; b=gfkTkEkeNA1p70Wzx74gCMA44X+8o39UnbT5hmxXoRmxAhevBS93KtbhNfrJlPWQMF +j79Ax8XrAjghG2IhSSX6E9IbP5n93qNvyC1lQdHhfce/dK7R1tpNOiswF6TZKOXPYpr FodEviozznzr99IEA6Wcl2+tA84xnOY2+rwooblh/skeQpXMi164FWH9QPeVAR1kCfI3 Ob7aBfKYKTxgUsv5QVrqFQJ4MMg+Rv6wN7opkLZ5YqnJ5+v9x9gx9VLQfHaYZ72djt4P ktXyN99myzk4jAxlsTKKs/BdxNlOY4ll5MC5CQC7x5hV0oFqUpkJCYcXEkh6m/P0blPh FgZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=spucMy61pwCLcF5r2tX7WYl3n/FsZyFzNad5Ul5ijtI=; b=Xf5A8s4JpUxdp2kY8XlNx2PLwCUvCd+JZy17/G+jeQlTgigSAVB4R3XFu2+tkfp+18 o1RoRkXuIt078YpPP9crCz0bxgvvKQPYnzkud5JQv1AR2EE8nrQBZATGmnd8Xn8YxPFt 8fuDbDXl+FyHcqvrjDsSrLBDKBwQVt2U1AEvKWVOu7VyAU1p5K9x3muzNmVdKIz/MTBa xGzoAa3gSdaDU2NEv0Ps3rvwplSf09Adel7Xt5d1kOe8oUWt0i7d2WetB0OtmaPUepFN eq/XM+QRpRU2nxmW17t/DhO7xu5HyTuVLATrFJRdxY/8FsXzGzK2p9ZCoNSHDakJw6ll Qs/w== X-Gm-Message-State: AGi0Pub/yDZQLT7gJQDZ6GDF5N/c/8TTLj48y05/CK+4/xt/eYBgq38A a8gf6i179d/B43/YJ8XjIYBxtoqj X-Google-Smtp-Source: APiQypIui8u+PKLGveXwurtwA1ltSF3nLR4/SXlOOYyiuJsIwxOIkqXTgX998hxwBPaFT4nVUFUY6g== X-Received: by 2002:a7b:c190:: with SMTP id y16mr16736674wmi.50.1587817936103; Sat, 25 Apr 2020 05:32:16 -0700 (PDT) Received: from meru ([2a01:cb18:832e:5f00:556b:aad6:8a55:812e]) by smtp.gmail.com with ESMTPSA id y20sm13189339wra.79.2020.04.25.05.32.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Apr 2020 05:32:15 -0700 (PDT) From: Mathieu Othacehe To: Jan Nieuwenhuizen Subject: Re: bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd References: <87imhnuc8a.fsf@gnu.org> Date: Sat, 25 Apr 2020 14:32:14 +0200 In-Reply-To: <87imhnuc8a.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Sat, 25 Apr 2020 11:49:09 +0200") Message-ID: <87sggru4oh.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 40839 Cc: 40839@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > 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 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 to synchronize at some point :) As you have noticed our image creation is very tied to Linux and Intel x86 compatible machines. I would like in the future that producing images for other architectures/kernels could be less hacky. My idea is to: * Speed up image creation by removing the need to use VM to produce images. * Augment the operating-system record, or provide a new record, that encapsulates information related to image layout (partitions, bootloader location), target architecture (i586-pc-gnu, aarch64-linux, ...). This way, one would just have to run `guix system disk-image my-board.scm' or `guix system disk-image --board=xxx config.scm', and not have to worry about specifying the correct target triplet, kernel and bootloader packages. On the wip-disk-image, I propose the creation of an "image" record in (gnu image), but I'm still not sure how to interface it. Thanks, Mathieu From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 25 09:28:37 2020 Received: (at 40839) by debbugs.gnu.org; 25 Apr 2020 13:28:37 +0000 Received: from localhost ([127.0.0.1]:59025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSKrE-0000Bt-Nl for submit@debbugs.gnu.org; Sat, 25 Apr 2020 09:28:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSKrC-0000Bf-5m for 40839@debbugs.gnu.org; Sat, 25 Apr 2020 09:28:35 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54647) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSKr6-00029F-Sb; Sat, 25 Apr 2020 09:28:28 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=59392 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jSKr6-0002Er-1A; Sat, 25 Apr 2020 09:28:28 -0400 From: Jan Nieuwenhuizen To: Mathieu Othacehe Subject: Re: bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd Organization: AvatarAcademy.nl References: <87imhnuc8a.fsf@gnu.org> <87wo63u5j6.fsf@gmail.com> X-Url: http://AvatarAcademy.nl Date: Sat, 25 Apr 2020 15:28:23 +0200 In-Reply-To: <87wo63u5j6.fsf@gmail.com> (Mathieu Othacehe's message of "Sat, 25 Apr 2020 14:13:49 +0200") Message-ID: <87eesbu22w.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 40839 Cc: 40839@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain 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 > (compile-file #$file #:output-file #$output > #:env env)) > (compile-file #$file #:output-file #$output > #:env env)) Thank you! I have tried this in the attached patch, and it seems to work for me. I was so puzzled why wrapping scm->go --8<---------------cut here---------------start------------->8--- (use-modules (system base target)) (define (scm->go file) (with-target "i586-pc-gnu" (lambda _ ((@@ (gnu services shepherd) scm->go) file)))) --8<---------------cut here---------------end--------------->8--- did not work; actually reading scm->go makes that pretty clear :-) > Now, the tricky part is the value of target, because > #$(%current-target-system) might not be correct in that context. I did read this, but wanted to try it first anyway. So, what are you seeing here, when would this not be OK? Any other ideas of how to address this further? Greetings, janneke --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-services-shepherd-Cross-compilation-fix.patch >From cc9259a87c46cfa0dc2c59dc425b3656c9eecb13 Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Sat, 25 Apr 2020 15:20:04 +0200 Subject: [PATCH] services: shepherd: Cross-compilation fix. Fixes . Reported by Jan (janneke) Nieuwenhuizen Fix suggested by Mathieu Othacehe * gnu/services/shepherd.scm (scm->go): Use `with-target' when cross-compiling. --- gnu/services/shepherd.scm | 40 +++++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/gnu/services/shepherd.scm b/gnu/services/shepherd.scm index 2f30c6c907..ca4edd80ab 100644 --- a/gnu/services/shepherd.scm +++ b/gnu/services/shepherd.scm @@ -25,6 +25,7 @@ #:use-module (guix store) #:use-module (guix records) #:use-module (guix derivations) ;imported-modules, etc. + #:use-module (guix utils) #:use-module (gnu services) #:use-module (gnu services herd) #:use-module (gnu packages admin) @@ -260,22 +261,29 @@ stored." (define (scm->go file) "Compile FILE, which contains code to be loaded by shepherd's config file, and return the resulting '.go' file." - (with-extensions (list shepherd) - (computed-file (string-append (basename (scheme-file-name file) ".scm") - ".go") - #~(begin - (use-modules (system base compile)) - - ;; Do the same as the Shepherd's 'load-in-user-module'. - (let ((env (make-fresh-user-module))) - (module-use! env (resolve-interface '(oop goops))) - (module-use! env (resolve-interface '(shepherd service))) - (compile-file #$file #:output-file #$output - #:env env))) - - ;; It's faster to build locally than to download. - #:options '(#:local-build? #t - #:substitutable? #f)))) + (let ((target (%current-target-system))) + (with-extensions (list shepherd) + (computed-file (string-append (basename (scheme-file-name file) ".scm") + ".go") + #~(begin + (use-modules (system base compile) + (system base target)) + + ;; Do the same as the Shepherd's 'load-in-user-module'. + (let ((env (make-fresh-user-module))) + (module-use! env (resolve-interface '(oop goops))) + (module-use! env (resolve-interface '(shepherd service))) + (if #$target + (with-target #$target + (lambda _ + (compile-file #$file #:output-file #$output + #:env env))) + (compile-file #$file #:output-file #$output + #:env env)))) + + ;; It's faster to build locally than to download. + #:options '(#:local-build? #t + #:substitutable? #f))))) (define (shepherd-configuration-file services) "Return the shepherd configuration file for SERVICES." -- 2.26.0 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 25 11:54:05 2020 Received: (at 40839) by debbugs.gnu.org; 25 Apr 2020 15:54:05 +0000 Received: from localhost ([127.0.0.1]:60240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSN80-00068Y-MC for submit@debbugs.gnu.org; Sat, 25 Apr 2020 11:54:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSN7z-000685-07 for 40839@debbugs.gnu.org; Sat, 25 Apr 2020 11:54:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56759) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSN7s-0007fu-MM; Sat, 25 Apr 2020 11:53:56 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=48006 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jSN7h-0004WO-Ky; Sat, 25 Apr 2020 11:53:55 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Mathieu Othacehe Subject: Re: bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd References: <87imhnuc8a.fsf@gnu.org> <87wo63u5j6.fsf@gmail.com> Date: Sat, 25 Apr 2020 17:53:40 +0200 In-Reply-To: <87wo63u5j6.fsf@gmail.com> (Mathieu Othacehe's message of "Sat, 25 Apr 2020 14:13:49 +0200") Message-ID: <875zdnd0jf.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 40839 Cc: 40839@debbugs.gnu.org, Jan Nieuwenhuizen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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, 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. Jan Nieuwenhuizen skribis: > + (let ((target (%current-target-system))) > + (with-extensions (list shepherd) > + (computed-file (string-append (basename (scheme-file-name file) ".= scm") > + ".go") > + #~(begin The problem here is that =E2=80=98%current-target-system=E2=80=99 is not re= solved in the right context. Though in practice, it=E2=80=99s =E2=80=9Cgood enough=E2=80= =9D when using =E2=80=98guix system build --target=E2=80=99 though, because =E2=80=98%current-target-sys= tem=E2=80=99 is bound once and for all at the beginning. What about applying this patch, but adding a FIXME comment above =E2=80=98l= et=E2=80=99 pointing at ? Also, you can avoid duplicating the =E2=80=98compile-file=E2=80=99 call by = writing it like this: (with-target #$(or target #~%host-type) (compile-file =E2=80=A6)) Thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 25 13:38:53 2020 Received: (at 40839) by debbugs.gnu.org; 25 Apr 2020 17:38:53 +0000 Received: from localhost ([127.0.0.1]:60293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSOlQ-0000D7-PW for submit@debbugs.gnu.org; Sat, 25 Apr 2020 13:38:53 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSOlQ-0000Cu-4x for 40839@debbugs.gnu.org; Sat, 25 Apr 2020 13:38:52 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58551) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSOlJ-0002bY-MP; Sat, 25 Apr 2020 13:38:45 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=33958 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jSOlI-0003Nt-TA; Sat, 25 Apr 2020 13:38:45 -0400 From: Jan Nieuwenhuizen To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd Organization: AvatarAcademy.nl References: <87imhnuc8a.fsf@gnu.org> <87wo63u5j6.fsf@gmail.com> <875zdnd0jf.fsf@gnu.org> X-Url: http://AvatarAcademy.nl Date: Sat, 25 Apr 2020 19:38:42 +0200 In-Reply-To: <875zdnd0jf.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 25 Apr 2020 17:53:40 +0200") Message-ID: <875zdntqhp.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 40839 Cc: 40839@debbugs.gnu.org, Mathieu Othacehe X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ludovic Court=C3=A8s 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 guess we need that as soon as we unify the hurd VM with the guix system build? > Jan Nieuwenhuizen skribis: > >> + (let ((target (%current-target-system))) >> + (with-extensions (list shepherd) >> + (computed-file (string-append (basename (scheme-file-name file) "= .scm") >> + ".go") >> + #~(begin > > The problem here is that =E2=80=98%current-target-system=E2=80=99 is not = resolved in the > right context. Though in practice, it=E2=80=99s =E2=80=9Cgood enough=E2= =80=9D when using =E2=80=98guix > system build --target=E2=80=99 though, because =E2=80=98%current-target-s= ystem=E2=80=99 is bound > once and for all at the beginning. > > What about applying this patch, but adding a FIXME comment above =E2=80= =98let=E2=80=99 > pointing at ? Pushed to core-updates as d2fc76462e72268ee5b04fe53805efc05c35e139, with... > Also, you can avoid duplicating the =E2=80=98compile-file=E2=80=99 call b= y writing it > like this: > > (with-target #$(or target #~%host-type) ...this change too. Nice, that works (I tried (%current-system), which did not work). Thanks! janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 25 13:59:31 2020 Received: (at 40839) by debbugs.gnu.org; 25 Apr 2020 17:59:31 +0000 Received: from localhost ([127.0.0.1]:60311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSP5P-0000hi-Ar for submit@debbugs.gnu.org; Sat, 25 Apr 2020 13:59:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSP5L-0000hT-LQ for 40839@debbugs.gnu.org; Sat, 25 Apr 2020 13:59:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58858) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSP5F-0005q9-2o; Sat, 25 Apr 2020 13:59:21 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=33968 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jSP5E-0003Oh-KH; Sat, 25 Apr 2020 13:59:20 -0400 From: Jan Nieuwenhuizen To: Mathieu Othacehe Subject: Re: bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd Organization: AvatarAcademy.nl References: <87imhnuc8a.fsf@gnu.org> <87sggru4oh.fsf@gmail.com> X-Url: http://AvatarAcademy.nl Date: Sat, 25 Apr 2020 19:59:18 +0200 In-Reply-To: <87sggru4oh.fsf@gmail.com> (Mathieu Othacehe's message of "Sat, 25 Apr 2020 14:32:14 +0200") Message-ID: <871robtpjd.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 40839 Cc: 40839@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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=3Di586-pc-gnu build,vm,..." > > I have not followed really closely the recent progress on the Hurd, but > I think we may need to synchronize at some point :) Oh no! :) I haven't been following either...but I did notice that "guix system reconfigure" may be tricky on the Hurd, given that it does not have Qemu. I was actively trying not to think about that, hoping some solution would present itself. > As you have noticed our image creation is very tied to Linux and Intel > x86 compatible machines. I would like in the future that producing images > for other architectures/kernels could be less hacky. Yes...the Intel bit isn't really hurting the Hurd efforts yet (sadly), but I see what you mean. > My idea is to: > > * Speed up image creation by removing the need to use VM to produce > images. > > * Augment the operating-system record, or provide a new record, that > encapsulates information related to image layout (partitions, > bootloader location), target architecture (i586-pc-gnu, > aarch64-linux, ...). > > This way, one would just have to run `guix system disk-image > my-board.scm' or `guix system disk-image --board=3Dxxx config.scm', and > not have to worry about specifying the correct target triplet, kernel > and bootloader packages. > > On the wip-disk-image, I propose the creation of an "image" record in > (gnu image), but I'm still not sure how to interface it. Thanks for the ping and the summary: I should really look into that! I am currently still looking to consolidate all the cross build fixes, and how to migrate the Shepherd and services hacks into the regular framework. I'm guessing that's all stuff that wip-disk-image does not touch/change. Greetings, janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 27 08:35:16 2020 Received: (at 40839) by debbugs.gnu.org; 27 Apr 2020 12:35:16 +0000 Received: from localhost ([127.0.0.1]:35858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jT2yh-0002OL-TA for submit@debbugs.gnu.org; Mon, 27 Apr 2020 08:35:16 -0400 Received: from mail-wm1-f52.google.com ([209.85.128.52]:40036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jT2ye-0002O7-Vc for 40839@debbugs.gnu.org; Mon, 27 Apr 2020 08:35:14 -0400 Received: by mail-wm1-f52.google.com with SMTP id u16so20265325wmc.5 for <40839@debbugs.gnu.org>; Mon, 27 Apr 2020 05:35:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=A3ELKKT3NPsWcko3hqJaBkbbzs6n1DefFs6nAHxv5iA=; b=oGpOcQjm84viGvviofvtIIgpX5tKVBW0QBWuKu6C/WWl5qN948mneFr490tqPxv+aa GDdaOwdcXuzDVHAgOPxF5UfTjjkxDBdBmuj40Wqr9WZd3Mub6SPAS0C9rwogPptLshHU DJgsLCgWweBhRuXDdfwHtRxaIoRP2vweswI2CFd36yQTJ8TgRcB3TZv38t742RUyuClr fQvqXZ7ZuOFXJSA7i+gLEYsj1dXc6aUrhIdxY8166/vNowjfY7v6axg1KSwDNWUNE+9x py9Uu8LxSuXZBh/cp5WURzDlbyZOVgsGww0iDLambeDBN/FLnwGev55oRb6IbSgsoC7o eAyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=A3ELKKT3NPsWcko3hqJaBkbbzs6n1DefFs6nAHxv5iA=; b=Q2DELxeZpoauNzy62FBi4pSO9eC4Sr22UHXCna5Fa71IAywFFwcOup398BNdxf6n7l DVcBzfu0u3tdmX++n8//Ep2uI/A7dxEvxbE/E7eWC+1tMiUYM9cZpWb/foqXSkIei6C/ Tv/ZxFMUJUWRzon1BE7j0H150TExi8RBnSF1PaP7dOITS+IEWgqjf+hf4//3pFVzCKhC VJVV5757FcdeeEvXEiMGphZsJ3cWoeVJVmPmv598qf/RWC5Q/hkErvTuOwfBuCdT6/HF ykus3vNsPRfcD1IVqwsUk6XHYOtiiLpnLbpxby1IhSMi5if18rICC6j2ik4ANfFZ5zo7 SfGw== X-Gm-Message-State: AGi0PuZBzT4mugOtd45/xvpvImx/axST46oSWJ7s0YmQB1DmbKsYPNHt h3YS87KXXJNL98FOn4GQYIc= X-Google-Smtp-Source: APiQypKpGfebDwg4x5P2JUz3cENohTFoZtkFq461UjuNGIjBf4Ocxbwel5l5BmTmC627efEKD652FQ== X-Received: by 2002:a05:600c:14d4:: with SMTP id i20mr26967680wmh.118.1587990906860; Mon, 27 Apr 2020 05:35:06 -0700 (PDT) Received: from meru ([2a01:cb18:832e:5f00:7069:9b5d:ebe2:85b8]) by smtp.gmail.com with ESMTPSA id r3sm22090241wrx.72.2020.04.27.05.35.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Apr 2020 05:35:06 -0700 (PDT) From: Mathieu Othacehe To: Jan Nieuwenhuizen Subject: Re: bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd References: <87imhnuc8a.fsf@gnu.org> <87sggru4oh.fsf@gmail.com> <871robtpjd.fsf@gnu.org> Date: Mon, 27 Apr 2020 14:35:05 +0200 In-Reply-To: <871robtpjd.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Sat, 25 Apr 2020 19:59:18 +0200") Message-ID: <87h7x5w1hi.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 40839 Cc: ludo@gnu.org, 40839@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 'disk-image) (partitions (list (partition (size 'guess) (label "Guix_image") (file-system "ext2") (flags '(boot)) (initializer (gexp initialize-hurd-root-partition))))))) --8<---------------cut here---------------end--------------->8--- then we could have some mapping in guix/scripts/system.scm to associate: * x86_64-linux -> efi-disk-image * i586-pc-gnu -> hurd-disk-image and one could get a hurd disk-image by typing: --8<---------------cut here---------------start------------->8--- guix system disk-image --target=i586-pc-gnu my-hurd-os.scm --8<---------------cut here---------------end--------------->8--- One problem that can arise is the installation of grub. Currently wip-disk-image does not support legacy Grub (MBR based) installation. This is because running grub-install needs root permissions, to mess with /dev/something in order to write the MBR I guess. We could also create a Hurd ISO if grub-mkrescue (that is used to make the ISO bootable), supports the Hurd. Adding Ludo that might have some insight here. Thanks, Mathieu From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 28 13:20:47 2020 Received: (at 40839) by debbugs.gnu.org; 28 Apr 2020 17:20:47 +0000 Received: from localhost ([127.0.0.1]:41271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTTuY-0006vg-Vo for submit@debbugs.gnu.org; Tue, 28 Apr 2020 13:20:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTTuX-0006vR-Hz for 40839@debbugs.gnu.org; Tue, 28 Apr 2020 13:20:46 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36090) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTTuR-0004Ay-1V; Tue, 28 Apr 2020 13:20:39 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=49490 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jTTuQ-0008Uq-GH; Tue, 28 Apr 2020 13:20:38 -0400 From: Jan Nieuwenhuizen To: Mathieu Othacehe Subject: Re: bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd Organization: AvatarAcademy.nl References: <87imhnuc8a.fsf@gnu.org> <87sggru4oh.fsf@gmail.com> <871robtpjd.fsf@gnu.org> <87h7x5w1hi.fsf@gmail.com> X-Url: http://AvatarAcademy.nl Date: Tue, 28 Apr 2020 19:20:36 +0200 In-Reply-To: <87h7x5w1hi.fsf@gmail.com> (Mathieu Othacehe's message of "Mon, 27 Apr 2020 14:35:05 +0200") Message-ID: <87o8rbcysb.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 40839 Cc: ludo@gnu.org, 40839@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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; possibly we can start playing there? I tried rebasing wip-disk-image on core-updates and that was (almost?) painless. > More seriously, we could do something like: > > (define hurd-disk-image > (image > (format 'disk-image) > (partitions > (list > (partition > (size 'guess) > (label "Guix_image") > (file-system "ext2") > (flags '(boot)) > (initializer (gexp initialize-hurd-root-partition))))))) Sweet! > then we could have some mapping in guix/scripts/system.scm to > associate: > > * x86_64-linux -> efi-disk-image > * i586-pc-gnu -> hurd-disk-image > > and one could get a hurd disk-image by typing:=20 > > guix system disk-image --target=3Di586-pc-gnu my-hurd-os.scm Oh, that sounds real great. > One problem that can arise is the installation of grub. Currently > wip-disk-image does not support legacy Grub (MBR based) > installation. > > 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? > We could also create a Hurd ISO if grub-mkrescue (that is used to make > the ISO bootable), supports the Hurd. > > Adding Ludo that might have some insight here. Hopefully -- this is also pretty out of my comfort zone, otoh I am very motivated to get this going. :-) I have been wondering about the branch name in combination with its functionality: can/will/could "wip-disk-image" also be used for guix system init/reconfigure (we don't have qemu on the Hurd)? Greetings, janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 29 04:49:06 2020 Received: (at 40839) by debbugs.gnu.org; 29 Apr 2020 08:49:06 +0000 Received: from localhost ([127.0.0.1]:42400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTiOw-0005E8-Iz for submit@debbugs.gnu.org; Wed, 29 Apr 2020 04:49:06 -0400 Received: from mail-wm1-f53.google.com ([209.85.128.53]:37939) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTiOv-0005D7-GG for 40839@debbugs.gnu.org; Wed, 29 Apr 2020 04:49:05 -0400 Received: by mail-wm1-f53.google.com with SMTP id g12so1090577wmh.3 for <40839@debbugs.gnu.org>; Wed, 29 Apr 2020 01:49:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=x3guGInvSi/xoZusu3s06RptPCXRKKPHGa8FjYeYKHo=; b=ltb8qNvt/iZjSzCGKsXASGbdnDm036L7kylhW5+DjqS6WWpbMpBekD1S4E9QVtY8R7 IuRgEIR/Cls7eEBCD6jJOyot90B3aAafqT6SIUPTdKQHQ3MU4UgHFVX6Dp5gATjm8u3X fFheAyfhcpMZvUPVHKuLbiud1lFLzNhFzVVPFg1n5vKG8FSe1MmNA1DgIrSbuA0V9jmg 6sAlVoLjyLRJqERN4mhve2jXTgnQZlOtqV1teS4+SacfEh6TjY0NeTRHezysCP4MDW5y oqQ4qwn/1/Ojnq8nEADAnTA6BHIp3jerOHXOh9Lzw6VAWaarae6KjyxNo2hdWwXElmJP D4mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=x3guGInvSi/xoZusu3s06RptPCXRKKPHGa8FjYeYKHo=; b=sPH6i6UX7k5X4vvR+saexq8GWVmRABjWJuUn/GKqJekn/3xJ3VCyJNWjbrxgGgIje6 bGCpW3bSG3E6kp5DpAiJDDXyUGpZeMz1shpua58th6Lzid/LUIOTvn71DdgYgS5LEJQK llQOicSJpxrOlbQw5r6l3ggNZ88/8K0z6DX93f6In4CfProj1yCEMoxBDnWMHhKNsQFi 93630JmaDDEwm8QGRPUOvk+YCSN5oykGdHxFPsB95oefjwjblLfjSuoej6ByY3b2PtCN 8A5TgZQy0gXIxRonxQ8FdtrI8nUxMPGDGslddJ/F/KQ1cgtFZvXtqBq8DqU97bZxYgHc RPLQ== X-Gm-Message-State: AGi0PuY26A3vEJ9SUwpaf64q/Vr8bZUGwDyQfrjyqooa5e8Kr7wAhImw n/2W4iw71F5uL8vRqDhI/XIw2oYi X-Google-Smtp-Source: APiQypK1cUIWKvpk0V1Jx1L3W2MAO/Qa9WKJZFMNr5eZlTkB1TciVgSubHNx23GT9jzEsjMSGUrYvA== X-Received: by 2002:a1c:e1c1:: with SMTP id y184mr2036568wmg.143.1588150139768; Wed, 29 Apr 2020 01:48:59 -0700 (PDT) Received: from meru ([2a01:cb18:832e:5f00:e9fd:9d65:b691:fcb3]) by smtp.gmail.com with ESMTPSA id s14sm7129203wme.33.2020.04.29.01.48.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Apr 2020 01:48:59 -0700 (PDT) From: Mathieu Othacehe To: Jan Nieuwenhuizen Subject: Re: bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd References: <87imhnuc8a.fsf@gnu.org> <87sggru4oh.fsf@gmail.com> <871robtpjd.fsf@gnu.org> <87h7x5w1hi.fsf@gmail.com> <87o8rbcysb.fsf@gnu.org> Date: Wed, 29 Apr 2020 10:48:58 +0200 In-Reply-To: <87o8rbcysb.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Tue, 28 Apr 2020 19:20:36 +0200") Message-ID: <87d07qy8w5.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 40839 Cc: ludo@gnu.org, 40839@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 to make >> the ISO bootable), supports the Hurd. >> >> Adding Ludo that might have some insight here. > > Hopefully -- this is also pretty out of my comfort zone, otoh I am > very motivated to get this going. :-) > > I have been wondering about the branch name in combination with its > functionality: can/will/could "wip-disk-image" also be used for > guix system init/reconfigure (we don't have qemu on the Hurd)? Note that "init" and "reconfigure" options do not use Qemu. "init" will roughly populate a store directory and install a bootloader. "reconfigure" will re-install the bootloader with new system derivation. While it certainly won't work out of the box for the Hurd, it may be less tricky than the image support. I sent a first version of the wip-disk-image to review and rebased it on master. Now, I'll focus on improving Grub support on this branch (for MBR based booting), hoping it will help us to get Hurd support later on. Thanks, Mathieu From debbugs-submit-bounces@debbugs.gnu.org Sat May 02 09:15:32 2020 Received: (at 40839-done) by debbugs.gnu.org; 2 May 2020 13:15:32 +0000 Received: from localhost ([127.0.0.1]:51537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUrzQ-0002HG-5g for submit@debbugs.gnu.org; Sat, 02 May 2020 09:15:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUrzO-0002H3-E4 for 40839-done@debbugs.gnu.org; Sat, 02 May 2020 09:15:30 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56897) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUrzJ-0003rG-6T; Sat, 02 May 2020 09:15:25 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=45120 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jUrzE-0000LG-Ac; Sat, 02 May 2020 09:15:23 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Jan Nieuwenhuizen Subject: Re: bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd References: <87imhnuc8a.fsf@gnu.org> <87wo63u5j6.fsf@gmail.com> <875zdnd0jf.fsf@gnu.org> <875zdntqhp.fsf@gnu.org> Date: Sat, 02 May 2020 15:15:17 +0200 In-Reply-To: <875zdntqhp.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Sat, 25 Apr 2020 19:38:42 +0200") Message-ID: <87ees28om2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 40839-done Cc: Mathieu Othacehe , 40839-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi! Jan Nieuwenhuizen skribis: > Pushed to core-updates as d2fc76462e72268ee5b04fe53805efc05c35e139, Closing! Ludo=E2=80=99. From unknown Sat Aug 16 18:38:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 31 May 2020 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator