From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 28 10:31:45 2020 Received: (at 42047) by debbugs.gnu.org; 28 Jun 2020 14:31:45 +0000 Received: from localhost ([127.0.0.1]:46767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpYLR-0002Wu-61 for submit@debbugs.gnu.org; Sun, 28 Jun 2020 10:31:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpYLM-0002We-QE for 42047@debbugs.gnu.org; Sun, 28 Jun 2020 10:31:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43342) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpYLG-0005pH-68; Sun, 28 Jun 2020 10:31:34 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=40394 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jpYL7-0005jG-Iq; Sun, 28 Jun 2020 10:31:29 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Jan Nieuwenhuizen Subject: Re: [PATCH v2] guix: gc: Support for the Hurd. References: <20200625203850.25057-1-janneke@gnu.org> <20200625203850.25057-3-janneke@gnu.org> <87pn9mq3bo.fsf@gnu.org> <87d05m9qpx.fsf@gnu.org> <87eeq0wy1y.fsf_-_@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 11 Messidor an 228 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sun, 28 Jun 2020 16:31:24 +0200 In-Reply-To: <87eeq0wy1y.fsf_-_@gnu.org> (Jan Nieuwenhuizen's message of "Sat, 27 Jun 2020 13:25:13 +0200") Message-ID: <87k0zri7nn.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: 42047 Cc: 42047@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: > I'm really puzzled here. This > > (append-map rhs-file-names > (split-on-nul > (catch #t ;;'system-error > (lambda _ > (call-with-input-file environ > get-string-all)) > (lambda args > (format (current-error-port) "KETS: args=3D~s\n" args) > (format (current-error-port) "sys: ~s\n" (system-error= -errno args)) > "")))) > > > gives > > KETS: args=3D(r6rs:exception #) Ah yes, it=E2=80=99s really an R6RS condition here, not 'system-error, beca= use we=E2=80=99re using =E2=80=98get-string-all=E2=80=99 (from R6RS). So we=E2= =80=99d need to use =E2=80=98guard=E2=80=99 and the R6RS I/O error predicate. But I do think we should take a closer look at procfs; we=E2=80=99ll have t= o fix it anyway, and it=E2=80=99s relatively little code, so the sooner the better IMO. As discussed yesterday on IRC, gdb is a somewhat flaky, so perhaps we can try (cross)building procfs and with a bunch of printfs, and then starting it as an active translator so it has stdout/stderr. High tech! := -) Thanks, Ludo=E2=80=99.