From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id Jt4DFcoN9V7yFQAA0tVLHw (envelope-from ) for ; Thu, 25 Jun 2020 20:49:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id UCBNEMoN9V48YQAAB5/wlQ (envelope-from ) for ; Thu, 25 Jun 2020 20:49:14 +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 C26229401CB for ; Thu, 25 Jun 2020 20:49:13 +0000 (UTC) Received: from localhost ([::1]:45120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joYo3-0003f9-UG for larch@yhetil.org; Thu, 25 Jun 2020 16:49:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joYnu-0003eb-Ke for bug-guix@gnu.org; Thu, 25 Jun 2020 16:49:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58000) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1joYnu-0003JX-8s for bug-guix@gnu.org; Thu, 25 Jun 2020 16:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1joYnu-0001i8-7C for bug-guix@gnu.org; Thu, 25 Jun 2020 16:49:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42047: [PATCH 3/3] guix: gc: Support for the Hurd. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 25 Jun 2020 20:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42047 X-GNU-PR-Package: guix X-GNU-PR-Keywords: patch To: "Jan \(janneke\) Nieuwenhuizen" Received: via spool by 42047-submit@debbugs.gnu.org id=B42047.15931181336558 (code B ref 42047); Thu, 25 Jun 2020 20:49:02 +0000 Received: (at 42047) by debbugs.gnu.org; 25 Jun 2020 20:48:53 +0000 Received: from localhost ([127.0.0.1]:41313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joYnl-0001hi-F9 for submit@debbugs.gnu.org; Thu, 25 Jun 2020 16:48:53 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joYnj-0001hW-TO for 42047@debbugs.gnu.org; Thu, 25 Jun 2020 16:48:52 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44956) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joYne-0003GC-Jk; Thu, 25 Jun 2020 16:48:46 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=59568 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1joYne-0000zl-5q; Thu, 25 Jun 2020 16:48:46 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20200625203850.25057-1-janneke@gnu.org> <20200625203850.25057-3-janneke@gnu.org> Date: Thu, 25 Jun 2020 22:48:43 +0200 In-Reply-To: <20200625203850.25057-3-janneke@gnu.org> (Jan Nieuwenhuizen's message of "Thu, 25 Jun 2020 22:38:50 +0200") Message-ID: <87pn9mq3bo.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-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: , Cc: 42047@debbugs.gnu.org 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: -1.01 X-TUID: UiRgrtmsxx64 "Jan (janneke) Nieuwenhuizen" skribis: > * guix/store/roots.scm (proc-environ-roots): Handle EIO, for the Hurd. > * gnu/build/hurd-boot.scm (set-hurd-device-translators): Mount /proc. Add > symlink to /etc/mtab. Remove duplicate calls to 'scope'. Nitpick: I see 3 mostly unrelated patches: (1) fix duplicate called to =E2=80=98scope=E2=80=99, (2) mount /proc, and (3) handle EIO. I think it= =E2=80=99s clearer to view them separately. (1) and (2) LGTM! > - (mkdir* (scope "dev/vcs/1")) > - (mkdir* (scope "dev/vcs/2")) > - (mkdir* (scope "dev/vcs/2")) Was it creating like /some/root/some/root/dev/vcs/1? > (append-map rhs-file-names > - (split-on-nul > - (call-with-input-file environ > - get-string-all)))) > + (catch 'system-error > + (lambda _ > + (split-on-nul > + (call-with-input-file environ > + get-string-all))) > + (lambda args > + (if (=3D EIO (system-error-errno args)) > + '() > + (apply throw args)))))) This may be papering over a real problem. Before doing that, I think =E2=80=9Cwe=E2=80=9D :-) should investigate why procfs returns EIO in some = cases and look into fixing it. Then maybe we can still have the =E2=80=98catch=E2=80=99 above, but this ti= me as a temporary measure and with a reference to the upstream issue/commit. WDYT? Thank you! Ludo=E2=80=99.