GNU bug report logs

#50238 [PATCH] build-self: Try printing nicer error messages.

PackageSource(s)Maintainer(s)
guix-patches PTS Buildd Popcon
Full log

Message #14 received at 50238@debbugs.gnu.org (full text, mbox, reply):

Received: (at 50238) by debbugs.gnu.org; 8 Mar 2022 19:22:43 +0000
From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 08 14:22:43 2022
Received: from localhost ([127.0.0.1]:57956 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1nRfPv-0004OC-8P
	for submit@debbugs.gnu.org; Tue, 08 Mar 2022 14:22:43 -0500
Received: from mail-wm1-f54.google.com ([209.85.128.54]:36670)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@gmail.com>) id 1nRfPt-0004O0-Jp
 for 50238@debbugs.gnu.org; Tue, 08 Mar 2022 14:22:41 -0500
Received: by mail-wm1-f54.google.com with SMTP id
 n31-20020a05600c3b9f00b003898fc06f1eso2033325wms.1
 for <50238@debbugs.gnu.org>; Tue, 08 Mar 2022 11:22:41 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-transfer-encoding;
 bh=cG/hrM3P3whYHXlfjcHWPyrvRuh5m66L41jMUzVCONI=;
 b=g2eCINaSIgZxC8VuNtjXPZDP0+8kVfaz1dEUymZo/h+uFaBw90ldi4oIBBJ4OJUWRb
 vBAT3pqNwl8kIjBmCXH5rhdti1xBUCej59w6RR+mxZTMyo3XTodV2/zgB/yc26gGUnqF
 M0sDeuwzLdkZ5Z0xKAvmMgKyc7xuXrdAHZszGa0LzRbgisOdpFrn5q+NC6IlGQGY5FIe
 v1MZ7BwwGYsOzgLl9sZ3VCItQB1bhrOVEWXbHdBy16Xoq/QZAJO+/QzdLbf6cRbn93cR
 y4O/ogbZNvDrGWYeFPZQ7D1z+njmTRN+BUZvbz44WT+fu/Urz1alUmp0Nnt0f3HYNWKN
 voww==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version:content-transfer-encoding;
 bh=cG/hrM3P3whYHXlfjcHWPyrvRuh5m66L41jMUzVCONI=;
 b=oDOADQMxky677HEn8w/48nDDwimPeW8u3ikKUawqfQ+3vtLN57NJsZC16xpIXO9wFO
 M59hUuxHEWlIsF36B31bQnXuUyhAGdwZmLu/zqTFns+ZJk0EY/mmfeenbIyKuTMeAOYH
 TmB7issKgQguMscSpkEjDy+bBXt43bUyXcWh/PnETuLTWAFkxwrVNJ/eDW3GMuaO6+Iw
 8vL7P6mpQff6Bk2gemzOmKb7jqirInPHK3ilgn30QqUKybIrgqF70scW7iH/9cFlK6AE
 PGpjZ89mUnwggrc3KI8/y9XJnxMXRNxnp6OTTxFToIt/L82H0X4tzTJ20wDgk71Q6zKm
 U+cg==
X-Gm-Message-State: AOAM532yqhZmjNUB0XdNmj0Q6lvQUWXedb/tzUrit9MyYixLwEeTqYn7
 fgP4zz7FILk6hmysYQYuU7lhP2umX4A=
X-Google-Smtp-Source: ABdhPJxsnvT8G2KeqwLWlaERmPA71YJTuHGojDZKv/mcE1zt0ZIizFYnYhfFqi7HggsPavJbJ0PxiA==
X-Received: by 2002:a05:600c:1d08:b0:381:6eda:67d1 with SMTP id
 l8-20020a05600c1d0800b003816eda67d1mr4949858wms.88.1646767355776; 
 Tue, 08 Mar 2022 11:22:35 -0800 (PST)
Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id
 i74-20020adf90d0000000b0020373ba7beesm1365873wri.0.2022.03.08.11.22.35
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 08 Mar 2022 11:22:35 -0800 (PST)
From: zimoun <zimon.toutoune@gmail.com>
To: Ludovic Courtès <ludo@gnu.org>
Subject: Re: bug#50238: [PATCH] build-self: Try printing nicer error messages.
References: <b8eaa03230227033135d919aaafe76ad5af1eefc.camel@telenet.be>
 <87r1denq09.fsf@gnu.org>
Date: Tue, 08 Mar 2022 20:22:32 +0100
In-Reply-To: <87r1denq09.fsf@gnu.org> ("Ludovic Courtès"'s message of "Fri, 24 Sep 2021 13:59:18 +0200")
Message-ID: <8735js45c7.fsf_-_@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 50238
Cc: Maxime Devos <maximedevos@telenet.be>, 50238@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
Hi,

On ven., 24 sept. 2021 at 13:59, Ludovic Courtès <ludo@gnu.org> wrote:

> I sympathize with the goal but unsure about the implementation.

On one hand, I agree that the import of '(guix ui)' here feels "hum, it
seems an incorrect location", but...

> To me, compute-guix-derivation should remain as simple as possible and
> it shouldn't take care of UI concerns.  Having said that, I don't know
> how to address the problem above while sticking to this principle.

...on the other hand, where 'build-program' is called, i.e, 'build,
there is:

--8<---------------cut here---------------start------------->8---
        (format (current-error-port) "Computing Guix derivation for '~a'...  "
                system)
--8<---------------cut here---------------end--------------->8---

which is UI, no?  Idem for the message "You found a bug".


Well, I am unsure about the addition of '(guix ui)' and by
'with-error-handlng' in 'build-program'.  However, maybe the exception
handling could happen in the 'build' part.  WDYT?


Cheers,
simon




Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Sun Dec 22 16:30:14 2024; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.