From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sNoUBpkGvWEhAgEAgWs5BA (envelope-from ) for ; Fri, 17 Dec 2021 22:52:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QKPeAZkGvWHUHQAAB5/wlQ (envelope-from ) for ; Fri, 17 Dec 2021 21:52:25 +0000 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 BE2B22C7A6 for ; Fri, 17 Dec 2021 22:52:24 +0100 (CET) Received: from localhost ([::1]:51186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myL9L-0002CG-U4 for larch@yhetil.org; Fri, 17 Dec 2021 16:52:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:32958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myL90-00028O-Ik for bug-guix@gnu.org; Fri, 17 Dec 2021 16:52:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57455) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myL90-0005nD-8t for bug-guix@gnu.org; Fri, 17 Dec 2021 16:52:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1myL90-0001i9-5l for bug-guix@gnu.org; Fri, 17 Dec 2021 16:52:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52588: A linter & styler for %outputs -> #$output:...? Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 17 Dec 2021 21:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52588 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 52588@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16397779116554 (code B ref -1); Fri, 17 Dec 2021 21:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Dec 2021 21:51:51 +0000 Received: from localhost ([127.0.0.1]:40768 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myL8p-0001hd-1j for submit@debbugs.gnu.org; Fri, 17 Dec 2021 16:51:51 -0500 Received: from lists.gnu.org ([209.51.188.17]:52392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myL8n-0001hU-1V for submit@debbugs.gnu.org; Fri, 17 Dec 2021 16:51:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:32862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myL8m-0001rP-Gc for bug-guix@gnu.org; Fri, 17 Dec 2021 16:51:48 -0500 Received: from [2a02:1800:110:4::f00:d] (port=47860 helo=leibniz.telenet-ops.be) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myL8k-0005hv-CZ for bug-guix@gnu.org; Fri, 17 Dec 2021 16:51:48 -0500 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by leibniz.telenet-ops.be (Postfix) with ESMTPS id 4JG2kS3bQSzMqdcQ for ; Fri, 17 Dec 2021 22:51:44 +0100 (CET) Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by xavier.telenet-ops.be with bizsmtp id XZrc2600a4UW6Th01ZrdGo; Fri, 17 Dec 2021 22:51:37 +0100 Message-ID: <8cabcf6564d54ba2925663222a932aa8b6bdabe4.camel@telenet.be> From: Maxime Devos Date: Fri, 17 Dec 2021 21:51:36 +0000 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1639777897; bh=hzM3X8ohiMe6Gyk27pu4CM+OcpQMjewIzGheJZTmz04=; h=Subject:From:To:Date; b=krY3Thc6SJPfUJ49MWSj4YJMV+4nYF90xDnE62jv3XH0lT5r04K+CHA+Ui/LFnrND y4h2k0G2KS80P199JtVViIcKO26Qz1zidgG99fh4k4z9vGVW/i2aLHsuOUDurrR6LY 3iktEIQIBmH1hN8hIWIc66QQ5w8kZ5ESxnpY6xJYaJF0Uk+9J2OAfUZkgYWM2xIBI4 2jACvsqyIKgkldAu/7+Sb59mQcDoFn5uxCzFOM/0j1FeZVzwz2geeh9uFGqDTbl7n8 SruFlXbmtkHm8l1e//VgaXOWakl7JAqBhV3xF0Xr3RLu5NIpdgpRMTYDqqKvr+7Y5B P7fCkFybqfWag== X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:1800:110:4::f00:d (failed) Received-SPF: pass client-ip=2a02:1800:110:4::f00:d; envelope-from=maximedevos@telenet.be; helo=leibniz.telenet-ops.be X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, FREEMAIL_FROM=0.001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" 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=1639777944; 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:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=hzM3X8ohiMe6Gyk27pu4CM+OcpQMjewIzGheJZTmz04=; b=mb8jAj6HoteshkcCo4akBdtnPPqIi/06w3SaY5MM0gWKM3XCtdroUaxVaIuBxEO7jbWluU fc4tP/BqpAUbrnh2OWngLQmCqtXj2rkYtEXbE+pblBjPHbUoY2JxklvPBGcLZ00W1DbBx0 6owNWKUnvaOzZc+yEg6o0BiShx3hFagFcvM1DyvE6t0+rUXbtG1f6c+8FreM0O5cve7QIZ RQ/ABTaV/3MMUjdyet9w32xEJeK8ZRjVy6EHexJAeKkE9AYBekOuCCD0ECmyqBzQ8JeMRN GRPFiW7gZx5/gOv3fAULkb6ru5f3H8+MsOdnaFTjteFi+ucz/FVZ7owHc0a6vw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639777944; a=rsa-sha256; cv=none; b=I92aFjOO2wKRnW2byzY3Lzg7deX4OZwQOcwNGGUIKtHiYw34P8csBgW3cLX/lh1snjj0rF lWIDNNNDwBfjvoO4n2hSNBsfTXn2uAChYmVcu62Xjkf02uzGHm05i4HlzjDTA/mEKSDKX1 KHLhHE5KXiDalF2HjgGrmHXknP58bYXU5ATTZMF1S5hioIsmPNHXDj1fOPrUZDISDe3XiO l5v2gTjvC3o0OLMH9Gn0Vxmd4uOODyBZreSAw9gYf5rGisNr83DuwBOS/uvgBHwQ/3vFXS RNgxNgpro9GZASDE90xlwtweNq4voYrn8p/ZG5kWf/vD98fH7kzNX7XWsnUfpQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=krY3Thc6; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.10 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=krY3Thc6; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: BE2B22C7A6 X-Spam-Score: -2.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: otSsrO/QRrYh Hi guix, With the core-updates-frozen merge, some (i.e., so far one) bug reports about cross-compilation failing due to %outputs not being defined have been appearing: https://issues.guix.gnu.org/52574. (That particular bug was actually introduced in core-updates-frozen!) To find out how prevalent these issues are, and to prevent them from being introduced, a linter detecting (assoc-ref %outputs ...) in sexps and gexps and suggesting to use #$output:... could be useful. This should be doable with 'gexp->approximate-sexp'. Also, maybe "guix style" could even be teached to G-expify most S-exps. Long term, we might want to eliminate %outputs entirely, to make the wrong thing impossible to do instead of making it easy to break cross- compilation. Alternatively, %outputs (& friends?) could be re-introduced, albeit with #$output and #$(this-package-input ...) being strongly preferred above %outputs & %build-inputs & friends. Reintroducing %build-inputs/%build-target-inputs/... could help with the ‘how do I refer to implicit build inputs from #:configure-flags’ issues that have been cropping up. Greetings, Maxime.