From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8Dw0Oms94mNiDwEAbAwnHQ (envelope-from ) for ; Tue, 07 Feb 2023 13:00:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sAcOOms94mPZ4gAAauVa8A (envelope-from ) for ; Tue, 07 Feb 2023 13:00:43 +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 C62372CFA1 for ; Tue, 7 Feb 2023 13:00:43 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPMdo-0001Cz-LZ; Tue, 07 Feb 2023 07:00:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPMdn-0001CS-RG for guix-patches@gnu.org; Tue, 07 Feb 2023 07:00:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pPMdn-0001LC-H6 for guix-patches@gnu.org; Tue, 07 Feb 2023 07:00:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pPMdn-0003BD-CF for guix-patches@gnu.org; Tue, 07 Feb 2023 07:00:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61322] [PATCH] status: Print a hint when a 'package-cache' hook fails to build. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 07 Feb 2023 12:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61322 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 61322@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 61322-submit@debbugs.gnu.org id=B61322.167577114612110 (code B ref 61322); Tue, 07 Feb 2023 12:00:03 +0000 Received: (at 61322) by debbugs.gnu.org; 7 Feb 2023 11:59:06 +0000 Received: from localhost ([127.0.0.1]:51390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPMcs-00039F-DJ for submit@debbugs.gnu.org; Tue, 07 Feb 2023 06:59:06 -0500 Received: from mail-wr1-f52.google.com ([209.85.221.52]:35416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPMco-00038L-Be for 61322@debbugs.gnu.org; Tue, 07 Feb 2023 06:59:02 -0500 Received: by mail-wr1-f52.google.com with SMTP id y1so13320998wru.2 for <61322@debbugs.gnu.org>; Tue, 07 Feb 2023 03:59:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=HDGDVOmKBhAOy44RPGa34rSR6u4xcFeZ3z1aqW0Pg34=; b=GXVbrx6C2UNWBWMhfgcgeu88mmGh9r2RA4DWDp2BSC2p9PqIWtvBGvSsVrikGyt2ee R+b+WEvNbobKWuB1wk/4w/EAYXlfbj5fB4BtmAX7Uc0aYN2DSE9nwhxJxSBN/zXsiePB xVqR9LYf/swbmpQzWUyp7QuEoMtRiPxHRelZpik7fC3M9nEwiNUYHneTTnGF3IQT3W4Q B32S6kr2myBTS9eLzxyylhFlKDgoQsY884nzQ624fKXMkFkzoiAqvf506bt+7ql9LBXg pw9zU2BYDvgiYA34cNCTLn5F7/cV3JVfXBrSQN2dbTA2C5iId1ANxyqAKRgSvvj6iOZa GO/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HDGDVOmKBhAOy44RPGa34rSR6u4xcFeZ3z1aqW0Pg34=; b=feiuUFreb2jL/z9UGvw7vbnA8vkjGjoRZgz8MJIZnWvZRhcoeRRJNWb/3EtsBSb2zE Ax8K6XTEvYG9A/wuw5Ob0KV7MjCBIBaNyRENyCDymBwt/6spPhjKFiOSOQadsWqp8QOK arpoJ8sbxZx77B5T+RTqv29IW8s2So00JFKdRksDkRa/6KO4xI9qVhQ5tj2ALGZm/OjM hLlNZoV5rRpqh8RTVbC79M0p79V7Acf3hlmdo3CQzQ9k2U7bmy2CJdjaHqyeloxALN5e n8BifZvqZojc87RytRpBi9ZStYSA4q6H5+PFcALghfli/nlNWmoVlSrbX1zvOfk9QBJL F9Ew== X-Gm-Message-State: AO0yUKVMAO4arq1sLSc/U81YFOsCn2PuQxrUCsUWSgD5MzXE7DFfGcHL EnEC7dXyyIV1COKlqXOCDM1Yr9ShqVL7QQ== X-Google-Smtp-Source: AK7set8+nTW/q2mllexUfSWm/FnabCe7Ma/pkBKvWWxDn4yX7yuSwUONR6SbgSaWZ/Jmkr3zXc4TGQ== X-Received: by 2002:a5d:6707:0:b0:2c3:db5b:7277 with SMTP id o7-20020a5d6707000000b002c3db5b7277mr1709604wru.0.1675771136651; Tue, 07 Feb 2023 03:58:56 -0800 (PST) Received: from lili ([81.255.72.129]) by smtp.gmail.com with ESMTPSA id bj24-20020a0560001e1800b002bded7da2b8sm11204875wrb.102.2023.02.07.03.58.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 03:58:56 -0800 (PST) From: zimoun In-Reply-To: <20230206141352.29287-1-ludo@gnu.org> References: <20230206141352.29287-1-ludo@gnu.org> Date: Tue, 07 Feb 2023 12:56:05 +0100 Message-ID: <86mt5pn0yy.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=GXVbrx6C; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675771243; a=rsa-sha256; cv=none; b=IGuedjsYS27TPB1KxIVx8EkobZRhZk+pxSqIdyFZIDcAu0mThoKhutpNv9QuaBFj7zM4yb BTtjcjmeAmSoylIORtJjDatjNOxfq6Mjm7ZqYqUL3FvKhNu+77hmg8bB9I+qHYtlb+ijdt NfMKkefxhgeONEhZHJ1swNbWUFLq3cEumyq69ulu+OKyrCqKQsV/IeJY/ZUSbFa9JmgfjU KiJ8tIirTQtPz5VTWeNNTjSB4kZRxoF7AFzeG6V9UnBl+1YGTkULslGiWU1mNGfd+frCSn DZknggFq3JZJC/2yGYs89vPeMdIbWOxl4LUczFY3zg2261V89/6UCXjfIpqLJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675771243; 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: content-transfer-encoding:content-transfer-encoding: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=HDGDVOmKBhAOy44RPGa34rSR6u4xcFeZ3z1aqW0Pg34=; b=dft1+1o/YqRvGia7ORd45O0xKyLoZAe4tFmsEwHZMSsGXOmbpb1bJAuchteo75KCtGnnJQ 0DiASTDFKpahsRVcYFg06Onyd7MmDU4h12hK5G+qXWyLvkVTAYCyRWth/ELnnfxjST/wJ9 0WFqP1pnntlV5Y0jU/CzRoTwjzKCdbXZykXpotO1Tzd8blEri42ogVRxmGy6AkA62HRDiM CEZZS8vUo/9tAGmounmPBG0YvVk73/LjRyfuC1z9UHd8JoNFpaldptc5cBq8W8E7DxMcZY OoGOxBYAyMXPG3B3v4L2JTxvt0qS+ILrssK9xJjAz25CXV+wf4hhL3r/9l4gDg== X-Migadu-Spam-Score: -1.99 X-Spam-Score: -1.99 X-Migadu-Queue-Id: C62372CFA1 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=GXVbrx6C; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-TUID: ScQhBaPuhVp1 Hi, On Mon, 06 Feb 2023 at 15:13, Ludovic Court=C3=A8s wrote: > * guix/channels.scm (package-cache-file): Add 'channels' to the #:propert= ies > list. > * guix/status.scm (print-build-event): Upon failure, display a hint when > the derivation is a 'package-cache' hook. Cool! A minor comment. > In this case the relevant bit in the build log is: > > --8<---------------cut here---------------start------------->8--- > In inria/hiepacs.scm: > 879:41 3 (inputs #) > In ice-9/boot-9.scm: > 1685:16 2 (raise-exception _ #:continuable? _) > 1780:13 1 (_ #<&compound-exception components: (#<&undefined-vari?>) > In unknown file: > 0 (backtrace #) > > (exception unbound-variable (value #f) (value "Unbound variable: ~S") (va= lue (python2-numpy)) (value #f)) > --8<---------------cut here---------------end--------------->8--- [...] > + (let ((properties (and=3D> (false-if-exception > + (read-derivation-from-file drv)) > + derivation-properties))) > + (when (and (pair? properties) > + (eq? (assq-ref properties 'type) 'profile-hook) > + (eq? (assq-ref properties 'hook) 'package-cache)) > + (display-hint (format #f (G_ "This usually indicates a bug in o= ne of > +the channels you are pulling from, or some incompatibility among them. = You > +can check the build log and report the issue to the channel developers. > + > +The channels you are pulling from are: ~a.") > + (string-join > + (map symbol->string > + (or (assq-ref properties 'channels) > + '(guix)))))))) Would it be possible to also detect and also display the unbound variable, e.g., python2-numpy? Cheers, simon