From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SA6aMn8K9V6tXwAA0tVLHw (envelope-from ) for ; Thu, 25 Jun 2020 20:35:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id EM1xLn8K9V5VQwAA1q6Kng (envelope-from ) for ; Thu, 25 Jun 2020 20:35:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 35DC29403E6 for ; Thu, 25 Jun 2020 20:35:11 +0000 (UTC) Received: from localhost ([::1]:41204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joYaS-0000VD-P2 for larch@yhetil.org; Thu, 25 Jun 2020 16:35:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joYaM-0000V0-4j for bug-guix@gnu.org; Thu, 25 Jun 2020 16:35:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1joYaL-0001Sc-RO for bug-guix@gnu.org; Thu, 25 Jun 2020 16:35:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1joYaL-0001Kp-O4 for bug-guix@gnu.org; Thu, 25 Jun 2020 16:35:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42047: [PATCH 0/3] Running guix gc on the Hurd. Resent-From: "Jan (janneke) Nieuwenhuizen" Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 25 Jun 2020 20:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42047 X-GNU-PR-Package: guix X-GNU-PR-Keywords: patch To: 42047@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15931172495064 (code B ref -1); Thu, 25 Jun 2020 20:35:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Jun 2020 20:34:09 +0000 Received: from localhost ([127.0.0.1]:41275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joYZV-0001Jb-5U for submit@debbugs.gnu.org; Thu, 25 Jun 2020 16:34:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:39896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joYZR-0001JR-L5 for submit@debbugs.gnu.org; Thu, 25 Jun 2020 16:34:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joYZR-0000SJ-DF for bug-guix@gnu.org; Thu, 25 Jun 2020 16:34:05 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44837) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joYZP-00015S-Qc; Thu, 25 Jun 2020 16:34:03 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=46174 helo=dundal.fritz.box) by fencepost.gnu.org with esmtpa (Exim 4.82) (envelope-from ) id 1joYZP-0008Qa-72; Thu, 25 Jun 2020 16:34:03 -0400 From: "Jan (janneke) Nieuwenhuizen" Date: Thu, 25 Jun 2020 22:34:00 +0200 Message-Id: <20200625203400.24644-1-janneke@gnu.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: xdki46Suqkzt From: Jan Nieuwenhuizen Hi! As discussed on IRC, we would like to get "guix gc" to work on the Hurd. It's kind of essential to get the build nodes running a Childhurd. We discussed several workarounds, but an acceptable one is non-trivial; so better look into a proper fix first. We found that /proc is missing, so I have added that. And then we found that /proc/1/environ (and others) may return EIO; so I've added a catch/workaround for that. However, when trying to test this I found that the hurd disk image on master is pretty broken: * it creates an ext2, but not of hurd flavor (fixed in 0001) * it fails to call make-hurd-device-nodes (fixed in 0002) With these two fixes, it boots again. These are really minor fixes/typo-like oversights and I was considering to "just push" them... but then I found that the "guix build" command is also broken: --8<---------------cut here---------------start------------->8--- root@guixygnu ~# guix build -e '(@@ (gnu packages commencement) gnu-make-boot0)' Backtrace: In ice-9/boot-9.scm: 1736:10 4 (with-exception-handler _ _ #:unwind? _ # _) In unknown file: 3 (apply-smob/0 #) In ice-9/boot-9.scm: 718:2 2 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 1 (_ #(#(#))) In guix/ui.scm: 1948:12 0 (run-guix-command _ . _) guix/ui.scm:1948:12: In procedure run-guix-command: In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f --8<---------------cut here---------------end--------------->8--- How sad! I'm a bit stuck on this, probably because I'm feeling somewhat discouraged. Any ideas what could have broken this, how to look into it, fix this? Greetings, Janneke Jan (janneke) Nieuwenhuizen (3): image: hurd: Create hurd-compatible ext2 file-system. image: hurd: Initialize root partition for the Hurd. guix: gc: Support for the Hurd. gnu/build/hurd-boot.scm | 21 ++++++++++++++------- gnu/system/image.scm | 7 ------- gnu/system/images/hurd.scm | 11 ++++++++++- guix/store/roots.scm | 12 +++++++++--- 4 files changed, 33 insertions(+), 18 deletions(-) -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | AvatarĀ® http://AvatarAcademy.com