From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kF7xGrapKGLTbQAAgWs5BA (envelope-from ) for ; Wed, 09 Mar 2022 14:20:54 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kAStE7apKGLNhQAAG6o9tA (envelope-from ) for ; Wed, 09 Mar 2022 14:20:54 +0100 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 DA37D3FBAD for ; Wed, 9 Mar 2022 14:20:53 +0100 (CET) Received: from localhost ([::1]:58724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRwFJ-0001hS-0y for larch@yhetil.org; Wed, 09 Mar 2022 08:20:53 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRwDX-0000hA-4P for guix-patches@gnu.org; Wed, 09 Mar 2022 08:19:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36661) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRwDW-0002ht-Rs for guix-patches@gnu.org; Wed, 09 Mar 2022 08:19:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nRwDW-00028c-GJ for guix-patches@gnu.org; Wed, 09 Mar 2022 08:19:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#50238] [PATCH] build-self: Try printing nicer error messages. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 09 Mar 2022 13:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50238 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun , Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 50238@debbugs.gnu.org Received: via spool by 50238-submit@debbugs.gnu.org id=B50238.16468319258192 (code B ref 50238); Wed, 09 Mar 2022 13:19:02 +0000 Received: (at 50238) by debbugs.gnu.org; 9 Mar 2022 13:18:45 +0000 Received: from localhost ([127.0.0.1]:58791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRwD6-00027t-EB for submit@debbugs.gnu.org; Wed, 09 Mar 2022 08:18:44 -0500 Received: from baptiste.telenet-ops.be ([195.130.132.51]:42304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRwD4-00027l-Hu for 50238@debbugs.gnu.org; Wed, 09 Mar 2022 08:18:35 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by baptiste.telenet-ops.be with bizsmtp id 4DJY2700J4UW6Th01DJYLM; Wed, 09 Mar 2022 14:18:33 +0100 Message-ID: From: Maxime Devos Date: Wed, 09 Mar 2022 14:18:26 +0100 In-Reply-To: <8735js45c7.fsf_-_@gmail.com> References: <87r1denq09.fsf@gnu.org> <8735js45c7.fsf_-_@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-edcLXdO4jEMnbdzM1Plq" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1646831913; bh=8f4+yJC1tKmXIMt74oLW7p1OUhcnuGYRIkHSqHYFbH4=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=h9fuLfh5fuxNFG3ZhG4ZEjecgLNTDlfxKsdjWROC1vfrG2Xn8MObPfHQySoXJFFbU VjyyF6pgMA5kvGUPyEp//qnbBWmwA6gWM1u7hQYScl3JCdtAb23wpK2S3G4WhT/rQq B0jt6JZqT0N++CoYYSO0CMwFIfbHjz+rIeRP1Io2lj2tJ5rdXoXbpic1tFQrF9D5EN l1TQCOFlK8SIj0yrU+5T02wu+iYRzAUnqDTWzRvyc5Vlsk14KBLrlWNw8XqZAOzeYY 6yS6I6TS32hPcR+bgDka+nVwHV5d3PD3BRjFlnEB91tvCJeG92QQrQPm13hfIKL2Yw vHXuYsTNj9k2g== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646832054; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=8f4+yJC1tKmXIMt74oLW7p1OUhcnuGYRIkHSqHYFbH4=; b=r+X2lPH3dh4l0t9hcNQ6/owY18BT5RZ1kKHT3OYD4yfI9yktWnastvIGCaA8v9d22gTUNn /W8H83Ulcn1PrtmV5/j1JCqq61lt5c1DPP5wELyuF6E74j9qb3HN6VnP1kMGnrhuzET41S C2ApqKOJCTOjvd2zKeubyDRxX0mBR9dlP9TYi8Tp7/9tvA8k31BLUf0up2joFRTWUQXI1O FP8LVHfD1c+He8lzSJLW++83wpQCpXWd5NiHgCyVxrBp++FiENEwhU4N3UEqhcejYfI/zg q1AmEGgy3LFJA5Mchc9fPCjX69lijl1nHPPNJCU97xtnlJ5gFOnRDtiZF2k8eA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646832054; a=rsa-sha256; cv=none; b=Og3HCfMd+w2Tt+5LAiKrAk2o0sy6HHoEvkT7oTUxTgCJfmCncSpO7Zy1LXrbue5acBjvMq TByPHfMrYNp+pavUd98jkNBwcZeaKH8/ZV47zwy7a//KryJwAk58Oi2iFvhshu9uD3zof0 yb2yWLlvRJz7bd8lzEaGkAAhwtNFyvOHiBGa6eBjB73zpGFbPhktPzN8oeYX4D9YSqzCO5 6PmXRo3lImccuLhlvv+Gq8SPZPPTJa6p0z7miC7Ue0S4f2k7R7jtTLbvbASdaEKyTvNcOe 6D32N8H+nSjzzGY9YYBvozBGLAZW+vkZ8gnmoPbDTV7H7eIPMmrLEZ7JlWZNCA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=h9fuLfh5; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.19 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=h9fuLfh5; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: DA37D3FBAD X-Spam-Score: 5.19 X-Migadu-Scanner: scn1.migadu.com X-TUID: u5JATcAAt7vx --=-edcLXdO4jEMnbdzM1Plq Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable zimoun schreef op di 08-03-2022 om 20:22 [+0100]: > Well, I am unsure about the addition of '(guix ui)' and by > 'with-error-handlng' in 'build-program'.=C2=A0 However, maybe the excepti= on > handling could happen in the 'build' part.=C2=A0 WDYT? Keep in mind that the result of the '(build-program ...)' is a program that will be invoked as a separate program. Exceptions do not propagate accross process boundaries, so 'build' cannot catch the exceptions happening inside, so 'build' cannot catch the exceptions happening inside 'build-program'. Hence, the error handling bits need to be inside the 'compute-guix-derivation'. Greetings, Maxime. --=-edcLXdO4jEMnbdzM1Plq Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYiipIhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7guTAQDySOBgD+ORezyC1zpuz2KaMnTB Zj9DNJfu6dkrzfdp9wEAhb1fJjnqUH/1ejuoI5COeDn6ouYdWuaOdwTWECAqJQs= =2U6D -----END PGP SIGNATURE----- --=-edcLXdO4jEMnbdzM1Plq--