From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id KHpeIgk7K2YEBgAA62LTzQ:P1 (envelope-from ) for ; Fri, 26 Apr 2024 07:26:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id KHpeIgk7K2YEBgAA62LTzQ (envelope-from ) for ; Fri, 26 Apr 2024 07:26:33 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714109193; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=XC1VDzBxdxBsozJNTaFeCiNRbmNSFI6Q+JfF2N8EeA4=; b=CJS46DhY5jZvE97E0ZLrm9/2eOL36+V55YqPV4n704lnIC2lgGrYShillOm53Jm2ooo6JI l4RgO6LVt32n45uK7Hvlm8BjCX+Poi9HIeTWbGZS53/1YybhH/PYFGaDb1JRQl61altCj+ 0NIeGATyR+U+pYjW+5RWijp1Mxg2UkNFd2AiBQETwgLu7pehTB/Qmyn7vAHbHD+fwDWGEN MxqcH9kf0LaEjXNKyBtDBbf/vtv/EkxrxodkiZE2OsWYtzXbmtpRNIXVU541KHDibyXIci tgyxtmk1/1g+EdW/FqO6AA0wgrv4PIHHX1AEtjyqWDEIhET6bxeiUDVxxrksyg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714109193; a=rsa-sha256; cv=none; b=do5P/hl8kMbUmsis1zDJkWkXqtjztIQU0xLq1HwecRtoid9UqX2B+RfdD5TLep/7Q40e28 S0AdUIc1alowpMjGww+xboovPnrEoP3Et1u0zjH3oB+kbiYohN2jtOIQPI3YAo3lRTSDiJ RrW/+10sh+YXCH9qlabXn2QlybcCyA3JvePrO8QNWqDPFT5u9YiZcYVPLxKeP8g/LFDdZ9 bdj3u31qoCd0p84uJXiAmeCie0B0gflH5A8gkeN9c8MpD9dl6o3MfnOw//M2tm2/e6tga8 7nZCfx/7erl+dsI770bmET384jXPHk6z0P015CoSSDB24Ybn434F++MeXUiK3w== 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 666663F656 for ; Fri, 26 Apr 2024 07:26:32 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s0E5u-0000FJ-La; Fri, 26 Apr 2024 01:26:00 -0400 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 1s0E5p-0000F3-9F for guix-devel@gnu.org; Fri, 26 Apr 2024 01:25:55 -0400 Received: from 14.mo550.mail-out.ovh.net ([178.32.97.215]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s0E5n-0007eu-J4 for guix-devel@gnu.org; Fri, 26 Apr 2024 01:25:53 -0400 Received: from director11.ghost.mail-out.ovh.net (unknown [10.109.140.5]) by mo550.mail-out.ovh.net (Postfix) with ESMTP id 4VQh5Q5Rz2z1Qnk for ; Fri, 26 Apr 2024 05:25:46 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-8prff (unknown [10.110.178.161]) by director11.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 71A481FE78 for ; Fri, 26 Apr 2024 05:25:46 +0000 (UTC) Received: from ngraves.fr ([37.59.142.101]) by ghost-submission-6684bf9d7b-8prff with ESMTPSA id Z7PyGNo6K2bePgMAISUp7g (envelope-from ) for ; Fri, 26 Apr 2024 05:25:46 +0000 X-OVh-ClientIp: 81.67.146.208 To: guix-devel@gnu.org Subject: API for rewriting package fields ? Date: Fri, 26 Apr 2024 07:25:42 +0200 Message-ID: <87r0es66g9.fsf@ngraves.fr> MIME-Version: 1.0 Content-Type: text/plain X-Ovh-Tracer-Id: 4240702003264610869 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrudelkedgkeeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvffufffkgggtsehttdertddttddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepueejleeileejfffhleetjedtleejheevudffleevgfdufeekhefgvddvveegveefnecukfhppeduvdejrddtrddtrddupdekuddrieejrddugeeirddvtdekpdefjedrheelrddugedvrddutddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopehguhhigidquggvvhgvlhesghhnuhdrohhrghdpoffvtefjohhsthepmhhoheehtddpmhhouggvpehsmhhtphhouhht Received-SPF: pass client-ip=178.32.97.215; envelope-from=ngraves@ngraves.fr; helo=14.mo550.mail-out.ovh.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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: , Reply-to: Nicolas Graves From: Nicolas Graves via "Development of GNU Guix and the GNU System distribution." Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.89 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -5.89 X-Migadu-Queue-Id: 666663F656 X-TUID: aTsuWrgXF311 Is there an interface to rewrite / update a field from a series of packages easily? What I get from the change in python-team last change for the pyproject-build-system is that we need to add python-setuptools or python-wheel to all packages that will complain about it, when trying to build. The errors are very easy to diagnose (a string match in stderr: ModuleNotFoundError: No module named 'setuptools' or error: invalid command 'bdist_wheel' is enough to know what's wrong). The logical thing to do here IMO would be to have a script running, reading stderr when it fails and programmatically replacing where it's needed, since it's done for 2-3k packages basically. I know some work has been done with the guix refresh command to rewrite based on package field location, but I'm not sure it provides a convenient-enough API to simply say in guile "add this package to native-inputs of this package in place". Would love some counselling here, thanks! -- Best regards, Nicolas Graves