From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4ea1::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oDcoFINTymHHlgAAgWs5BA (envelope-from ) for ; Tue, 28 Dec 2021 01:00:03 +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 oAoVDoNTymHAlAAAG6o9tA (envelope-from ) for ; Tue, 28 Dec 2021 01:00:03 +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 06FB413856 for ; Tue, 28 Dec 2021 01:00:03 +0100 (CET) Received: from localhost ([::1]:45688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1zuM-0008Qt-55 for larch@yhetil.org; Mon, 27 Dec 2021 19:00:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1zu8-0008Qj-U1 for guix-devel@gnu.org; Mon, 27 Dec 2021 18:59:48 -0500 Received: from mx1.riseup.net ([198.252.153.129]:50028) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1zu7-00050I-7q for guix-devel@gnu.org; Mon, 27 Dec 2021 18:59:48 -0500 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4JNF5X5gG8zDqBD for ; Mon, 27 Dec 2021 15:59:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1640649584; bh=afRC6lP3US6Et1/2h15b2/f3WBs08/cmqwL+FPyeIT4=; h=Date:From:To:Subject:From; b=gFc+Eu/tZgpE45zRWsjR0eec65mAYdhASk7EAUdbBWYlE3ZlE6yCGw49PN2PwYZAR KOIBpHEqSM7JtOiChb1x0rQNGw1dRQ2EJpyeP3FVdSuoWn1vRfBLiJ/e0jRUX8NlKm C+XFyqAJGU7CD8IGt0etN4rMq2mqEHgEyx6zIqy4= X-Riseup-User-ID: 74521823AAB62BBD44FE47BCFDA68E67647511070E7C1E391BD02469CF2DF12C Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4JNF5X0bTfz5vSf for ; Mon, 27 Dec 2021 15:59:43 -0800 (PST) Date: Tue, 28 Dec 2021 00:57:55 +0100 From: raingloom To: "guix-devel@gnu.org" Subject: useful snippet for debugging a package that builds but shouldn't Message-ID: <20211228005755.44438676@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" 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=1640649603; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=XVXMhntcGrUuGiQ6SXJdWR0VOJJ2umsBcBde9NYGOxs=; b=V2FBaj+H8oYG8K8qkQ42ua862UWWibDh/WVMpS5lrPcfOPFp50Y4fiZ5x/PMrx9O0EBaU6 dNZnYQvUreBQvnnNbVMIh6/tL9Uie95aCWPu78oVN9BOodaBM6QijGzgWiOJMdiPR/2k9+ J5AsTnnwxBtwqyUfATcxEobIhKYzQaaGGOxw5eAdD40x19z8zrWuvbIn9m3ErRX4J17uhr cb18clsKbld+QEmNKjFAtNpD+PgouJvh114rXvYp+t9duj+PdA12ti75ao6EKyBIWgy5Ya 9YKoXIl8+rBMob2kSKRSUdAy8Qi/tXzSVLWLuyefTwswYgx4k+FH8mChruf1AA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640649603; a=rsa-sha256; cv=none; b=OWwf3C2H7i9PBJeoKFXEPEcJdDsU0cVtM+ZZ7kNNUHJuQqLdGMWwbOaHkvCJGW7rWz7CV4 HFLCTpdEQOMsDJiSjMZ6Y9vew0Nzy9uxxJx4n2PerTPb3SXxmIuJ3bSjMkxp6LK9Evy0Xr P1hLhBwO6tgWh/5aIOHKuqiWEWWZwZQNPGAPUsF1AG7vBOIKn6fXQAy0kjVeuaI4HuWJlL j7jDH/WwRwSra2EqhTyUIgSD/gcnAE3futMdpQGTR2TwG/EBA2KGD2UbWkkU0yQuejqxTP LB1j02VIOVk+/viJ1VAEXabfv72CYxYpsEoFt1TGJoP1mzH8caCzN3mS9x1SJA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b="gFc+Eu/t"; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.37 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b="gFc+Eu/t"; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 06FB413856 X-Spam-Score: -5.37 X-Migadu-Scanner: scn1.migadu.com X-TUID: HJG+jUiuf3C9 I used it to run `make localmodconfig` in a linux build, others might find it useful as well. Should I contribute it to the cookbook or Guix itself as well? ``` (define (error-before phase pkg) (package (inherit pkg) (arguments (substitute-keyword-arguments (package-arguments pkg) ((#:phases phases) `(modify-phases ,phases (add-before (quote ,phase) 'error-on-purpose (lambda _ (error "error on purpose"))))))))) ```