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 0Gs2EAjQ5mMBSAEAbAwnHQ (envelope-from ) for ; Sat, 11 Feb 2023 00:15:20 +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 4FIXEAjQ5mNwgwEAauVa8A (envelope-from ) for ; Sat, 11 Feb 2023 00:15:20 +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 194991B83C for ; Sat, 11 Feb 2023 00:15:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQcbj-00065R-Ic; Fri, 10 Feb 2023 18:15:07 -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 1pQcbe-00064o-P2 for guix-patches@gnu.org; Fri, 10 Feb 2023 18:15:02 -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 1pQcbe-0001Ty-FN for guix-patches@gnu.org; Fri, 10 Feb 2023 18:15:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQcbe-00030o-0F for guix-patches@gnu.org; Fri, 10 Feb 2023 18:15:02 -0500 Subject: bug#61322: [PATCH] status: Print a hint when a 'package-cache' hook fails to build. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Fri, 10 Feb 2023 23:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 61322 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: 61322-done@debbugs.gnu.org Mail-Followup-To: 61322@debbugs.gnu.org, ludo@gnu.org, ludo@gnu.org Received: via spool by 61322-done@debbugs.gnu.org id=D61322.167607084211478 (code D ref 61322); Fri, 10 Feb 2023 23:15:01 +0000 Received: (at 61322-done) by debbugs.gnu.org; 10 Feb 2023 23:14:02 +0000 Received: from localhost ([127.0.0.1]:38311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQcag-0002z3-0j for submit@debbugs.gnu.org; Fri, 10 Feb 2023 18:14:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQcae-0002yQ-5P for 61322-done@debbugs.gnu.org; Fri, 10 Feb 2023 18:14:00 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQcaY-00015j-UY; Fri, 10 Feb 2023 18:13:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=g91Lq8FwI1Iwe7i7w9rgJZlrpX3/2JyP4WZmpSS+ilU=; b=ZQpGCy1afakf4QE9Yt7i uBoMY2im1UOl6cPoF9BAYBqn0PQeGfidE6uwnnd7DdPLT9xVH9dzOYafl6c+3yuY2nIGsBjdUDGom XbbEaFLZNYZataB6mij8GLhL0yHy3sALNotnYtjuxXE4nV4T+k6dWnD2Zm9plvvhv0lImOsN/fBDs eFT5Rr716L2mk0i/nRCvmzCFKvgbsk+T/vT+lfLCxXBDhmEhoL5YCvN4tIl9t8JSE08iqJgwJEMjq 5ERLrKNX53wqhV9wsfehl9NVyQM9LW/qFkm+Dckrj2oj9XThrUF5jB1riK9EQGbLUKhQfII89KLnB PxwuhpE5V0B/Jw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQcaY-0004fc-HY; Fri, 10 Feb 2023 18:13:54 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20230206141352.29287-1-ludo@gnu.org> <86mt5pn0yy.fsf@gmail.com> Date: Sat, 11 Feb 2023 00:13:53 +0100 In-Reply-To: <86mt5pn0yy.fsf@gmail.com> (zimoun's message of "Tue, 07 Feb 2023 12:56:05 +0100") Message-ID: <87o7q1nmfi.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676070920; 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-to: 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=g91Lq8FwI1Iwe7i7w9rgJZlrpX3/2JyP4WZmpSS+ilU=; b=V8x0oyZnSobFpG+9PS14Pnulnem7j+GkHaLzaHhYHhKb3R2twe4Hrcf2xsCW6WjsmlH04w ofwjf9RobV+C4YSKpjKZmAzoIuyPwfRTVAaKHuY2+/3Iw29iLFELh6VpgJh/koFC51jQkG oNSrC6ASd3B/0CVLAdWdX0JGTad+G85MjTmEsSEWHL89BJCD8kSxPkrjbF/ziqVmIh2nFs /5eX7mpqPxSbVqRPwXv4s/ItXsqOv1VdfjGm0aG9+dMoeU50W2GguKYPIvuasLjiHim+Mz vpuY26wN8JDuu/1UYvyYUOi0r5CdD7091GkYyWi4HEgEvvKG4EcKQof87iWA6Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=ZQpGCy1a; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676070920; a=rsa-sha256; cv=none; b=T+grJIUvdyMOIGdKn8JEGF0D4oxKvuDwV6ZY0qozL3hYiHKMFR1pH2Pq1zSPBWx6WRUP8a kEbjCYVhskwIoBVHyN4Rvgw5CgX4ZPbPcJ/qCgjS7HdxFZ9rdSF8fI3iI46alEyFdOpZA0 kmGY3tzfPGaLAsTTtG2tbN+cDM65euoVuanRlpzeiODT1IJtDN53eGelu8xY8BZLiPdfI4 ko69J4lFC+EXmIS9lQQc4s7WFotemMnUUbMLxXP8cQ3Lhcpo7HeMH8kekw+6DMdty0PwnL DCX+bDE4Zi5Y6g2KvHTSFbAfqw/NI4fhZ8i2GfrgJcUSaoO84NmI2hfpO7Yz9w== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=ZQpGCy1a; dmarc=pass (policy=none) header.from=gnu.org; 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: -4.01 X-Spam-Score: -4.01 X-Migadu-Queue-Id: 194991B83C X-Migadu-Scanner: scn1.migadu.com X-TUID: 0YoKJIe1+BRf Hello! zimoun skribis: >> 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") (v= alue (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 = one 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? Nope. As I wrote, I agree it would be nicer, but I don=E2=80=99t see how we could reliably =E2=80=9Cextract=E2=80=9D the actual error from the build lo= g. Pushed as 3ab8559436356ef89aa60135d3558681d64443ae. Thanks for taking a look! Ludo=E2=80=99.