From unknown Fri Jun 20 07:20:38 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#68420 <68420@debbugs.gnu.org> To: bug#68420 <68420@debbugs.gnu.org> Subject: Status: [PATCH 0/1] scripts: size: Add =?UTF-8?Q?=E2=80=98system=E2=80=99?= argument to =?UTF-8?Q?=E2=80=98ensure-store-item=E2=80=99.?= Reply-To: bug#68420 <68420@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:20:38 +0000 retitle 68420 [PATCH 0/1] scripts: size: Add =E2=80=98system=E2=80=99 argum= ent to =E2=80=98ensure-store-item=E2=80=99. reassign 68420 guix-patches submitter 68420 Hilton Chain severity 68420 normal tag 68420 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 13 02:25:50 2024 Received: (at submit) by debbugs.gnu.org; 13 Jan 2024 07:25:51 +0000 Received: from localhost ([127.0.0.1]:38274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOYOs-0005ow-Iq for submit@debbugs.gnu.org; Sat, 13 Jan 2024 02:25:50 -0500 Received: from lists.gnu.org ([2001:470:142::17]:36926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOYOp-0005og-Py for submit@debbugs.gnu.org; Sat, 13 Jan 2024 02:25:48 -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 1rOYOl-0001Cv-Hi for guix-patches@gnu.org; Sat, 13 Jan 2024 02:25:43 -0500 Received: from mail.boiledscript.com ([144.168.59.46]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rOYOj-0007iS-H6 for guix-patches@gnu.org; Sat, 13 Jan 2024 02:25:43 -0500 From: Hilton Chain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1705130727; h=from:from: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; bh=RuiIN3BqUZt18NrZe69sIPrHInXk/b/V4PBWkhSwDo0=; b=YFxLVHApfn+EmrtSz6DiVOdxG56QFIl9sRAFcwEIOU6jx87Zgx0ePKiL06I/aAhuywYoru A5VZnR3ar5qLhBpuWOcBwxy8woqxw8Gw9DH597JP6hqQBCFi0LTrY6AwvOKux73gQ549Zg ZArfBR6UO6bY4rgE2colrw2BKG4xyJKZC7n2purt+O3Y/Y+Qe/RmiY4PklBgE/kisWFUTK 85Vtm7ugCrAEDY1d2fr7tD9oFK8KkJ4DVcaUL83CUNfUQz1UZyeNK0WeLOcE4JzT3oAak1 CL5l13RWtIAibxOQtHoEYn4BY+xmknwjB28je/QhG7Op35Duo1foUGGPk82adQ== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space To: guix-patches@gnu.org Subject: [PATCH 0/1] scripts: size: Add ‘system’ argument to ‘ensure-store-item’. Date: Sat, 13 Jan 2024 15:25:17 +0800 Message-ID: X-Debbugs-Cc: Christopher Baines , Josselin Poiret , Ludovic Courtès , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice , Zheng Junjie MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spamd-Bar: + X-Spam-Level: * Received-SPF: pass client-ip=144.168.59.46; envelope-from=hako@ultrarare.space; helo=mail.boiledscript.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: Hilton Chain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) This patch is a follow-up to . Since the issue hasn't been found for a long time, I think it's better to pass the system explicitly. Thanks Hilton Chain (1): scripts: size: Add ‘system’ argument to ‘ensure-store-item’. guix/scripts/size.scm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) base-commit: c0b303aaa3d6154acbe054120d11467eb98e6d33 -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 13 02:29:50 2024 Received: (at 68420) by debbugs.gnu.org; 13 Jan 2024 07:29:50 +0000 Received: from localhost ([127.0.0.1]:38291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOYSj-0005vM-Ln for submit@debbugs.gnu.org; Sat, 13 Jan 2024 02:29:50 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:37014) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOYSh-0005vD-Q5 for 68420@debbugs.gnu.org; Sat, 13 Jan 2024 02:29:48 -0500 From: Hilton Chain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1705130976; h=from:from: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: in-reply-to:in-reply-to:references:references; bh=ZH0vL1/d5hAuxBGC+i7JzgNpWOPhMozPvvwiyJlQjTg=; b=3qBnTr/wKvVepP3GipERv1oKQyhTqVPum4o9SFpyxFojfYufpnY+jJo0CAIFz6/tPZLAWI m//zZedcILyZ8LutqOjgtn9pFL7SEkXZCvSJ9PlQYg07pXhbyrurLnOvy8D2AHgq9xSqhk PHqhjjiADE9R9Op04lrNfUKlGO2ZTFKDzYNitMTwnS25/1hxjTH6K03OqwJOGyRAQ1rNzH dW/lihRWCcZco2aGNaPSmqlr8N2gEdwAKRe4h02gnold4i6OlaCLvtrnfY64gJ5/9Oig6s 1+j7zI0B4OHdsyKGXCG+PdbFhicQ2XrGglU5KuhXBLR3+6g25k1rBSYKY+sy9Q== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space To: 68420@debbugs.gnu.org Subject: [PATCH 1/1] scripts: size: Add ‘system’ argument to ‘ensure-store-item’. Date: Sat, 13 Jan 2024 15:29:33 +0800 Message-ID: In-Reply-To: References: X-Debbugs-Cc: Christopher Baines , Josselin Poiret , Ludovic Courtès , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice , Zheng Junjie MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spamd-Bar: -- X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68420 Cc: Hilton Chain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This is a follow-up to c245a54aab348642178129a9aad501b81a3089b4. ‘%current-system’ is already parameterized within ‘run-with-store’, the root cause is that ‘mlet*’ bindings are evaluated before the parameterization. * guix/scripts/size.scm (ensure-store-item): Add ‘system’ argument and pass it to ‘package->derivation’. (guix-size): Adjust accordingly. Change-Id: I910af7c137737bcd0ee079e57a81c4114ab5ae32 --- guix/scripts/size.scm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/guix/scripts/size.scm b/guix/scripts/size.scm index 8a8676a16f..0603c0498a 100644 --- a/guix/scripts/size.scm +++ b/guix/scripts/size.scm @@ -168,7 +168,7 @@ (define (store-profile items) (return (profile item size dependencies))))) sizes))) -(define* (ensure-store-item spec-or-item) +(define* (ensure-store-item spec-or-item #:optional (system (%current-system))) "Return a store file name. If SPEC-OR-ITEM is a store file name, return it as is. Otherwise, assume SPEC-OR-ITEM is a package output specification such as \"guile:debug\" or \"gcc-4.8\" and return its store file name." @@ -177,7 +177,7 @@ (define* (ensure-store-item spec-or-item) (return spec-or-item) (let-values (((package output) (specification->package+output spec-or-item))) - (mlet %store-monad ((drv (package->derivation package))) + (mlet %store-monad ((drv (package->derivation package system))) ;; Note: we don't try building DRV like 'guix archive' does ;; because we don't have to since we can instead rely on ;; substitute meta-data. @@ -317,8 +317,7 @@ (define-command (guix-size . args) ;; Turn off grafts because (1) substitute servers do not serve grafted ;; packages, and (2) they do not make any difference on the ;; resulting size. - (parameterize ((%graft? #f) - (%current-system system)) + (parameterize ((%graft? #f)) (with-store store (set-build-options store #:use-substitutes? #t @@ -326,7 +325,9 @@ (define-command (guix-size . args) (run-with-store store (mlet* %store-monad ((items (mapm %store-monad - ensure-store-item files)) + (cut ensure-store-item <> + system) + files)) (profile (store-profile items))) (if map-file (begin -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 13 04:36:55 2024 Received: (at 68420) by debbugs.gnu.org; 13 Jan 2024 09:36:55 +0000 Received: from localhost ([127.0.0.1]:38443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOaRj-00089O-83 for submit@debbugs.gnu.org; Sat, 13 Jan 2024 04:36:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOaRh-00088z-7r for 68420@debbugs.gnu.org; Sat, 13 Jan 2024 04:36:53 -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 1rOaRa-0007QC-4e; Sat, 13 Jan 2024 04:36:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=TqFkq4CLEW3JGhdVZJM/qE0whlU5IrDe+5W/6+aMEVo=; b=U1HVxNSi7i7+pYdrz/BR TiGNaT9MxzNd/I0z4vO1nzNMayaouj6N0aVNw0KGMmDzcvhQA+T+GWMFNKD+Uv5bNC9/yJVRSAuiU mQNSC5bgzIlw9XtmjOSoSJO/O/TBYx2JCZJ3DbdbzRP06Ou4pucy5qCNpVpTOTydqrvqmVI3XHUX1 Yk3g8cvkd60IklIe7+EoJuF0+NDSKQ2BE4KEW6i6Yjoo6GFLck93d9S9y1t+FPNqMBXP/1lFSu3ua azIfCyx2IgbaG6qVz1CqLmBP/aayiKw3ll0yrOnS1XEQrqZNiZlGKjltrOl3pmwMadyZr8v1wEJ7k 9yqL0PN//u0kWQ==; From: Mathieu Othacehe To: Hilton Chain Subject: Re: [bug#68420] [PATCH 1/1] scripts: size: Add =?utf-8?B?4oCYc3lz?= =?utf-8?B?dGVt4oCZ?= argument to =?utf-8?Q?=E2=80=98ensure-store-item=E2=80=99=2E?= In-Reply-To: (Hilton Chain's message of "Sat, 13 Jan 2024 15:29:33 +0800") References: Date: Sat, 13 Jan 2024 10:36:37 +0100 Message-ID: <8734v1inh6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68420 Cc: Josselin Poiret , Tobias Geerinckx-Rice , Simon Tournier , Ludovic =?utf-8?Q?Court=C3=A8s?= , 68420@debbugs.gnu.org, Zheng Junjie , Ricardo Wurmus , Christopher Baines X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hey, > -(define* (ensure-store-item spec-or-item) When I have a look to the derivation that is computed in that procedure, it looks like it has the expected system (the one passed as a cli argument). Do you have any evidence of `guix size` doing the wrong thing after c245a54aab? Thanks, Mathieu From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 01 01:02:38 2024 Received: (at 68420) by debbugs.gnu.org; 1 Feb 2024 06:02:38 +0000 Received: from localhost ([127.0.0.1]:40062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVQ9m-0004Q6-A1 for submit@debbugs.gnu.org; Thu, 01 Feb 2024 01:02:38 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:57124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVQ9k-0004Pw-6U for 68420@debbugs.gnu.org; Thu, 01 Feb 2024 01:02:37 -0500 Date: Thu, 01 Feb 2024 14:02:14 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1706767293; h=from:from: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: in-reply-to:in-reply-to:references:references; bh=X6Nk28Pj3VbHL6xKME75YHTqCyrLxsp6doba4W6LAOM=; b=zFrZKRIBYYpUvqufYKnWqkjwtIek7ZcWm97gEJ11gGOQd0dTLrhljTHvFJfp6AU6asaRU+ OsNzRNfVR6aJqlzr0pAnf4FuER1VYM6Y9yfbGyLUxUKjpJ8hmkYYd+CFeqGd4s7elcGe8P R495CGQFSLZOADJHzNDqI0l08Qf8SElGR7Wa3xi8AA7+18MJ/bzCsOZyNt2SoMv7vYGYfM IB09oLdMCb7S12ebNfcBRVb5fOy9gq6txelEFJg9gfaonxdr+NapWq1yfJ0CUGF4vx0CPv 3smf5A+N5et+zm+YCPCRrtgiaFSI3eI1KL6orVHcgjS13dCYzwAHWyz1+N+jsQ== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space Message-ID: <87mssk4t95.wl-hako@ultrarare.space> From: Hilton Chain To: Mathieu Othacehe Subject: Re: [bug#68420] [PATCH 1/1] scripts: size: Add =?ISO-8859-7?Q?=A1?= =?ISO-8859-7?Q?system=A2?= argument to =?ISO-8859-7?Q?=A1ensure-store-it?= =?ISO-8859-7?Q?em=A2.?= In-Reply-To: <8734v1inh6.fsf@gnu.org> References: <8734v1inh6.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ++ X-Spam-Level: ** X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68420 Cc: Josselin Poiret , Tobias Geerinckx-Rice , Simon Tournier , Ludovic =?ISO-8859-1?Q?Court=E8s?= , 68420@debbugs.gnu.org, Zheng Junjie , Ricardo Wurmus , Christopher Baines X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Mathieu, On Sat, 13 Jan 2024 17:36:37 +0800, Mathieu Othacehe wrote: > > > Hey, > > > -(define* (ensure-store-item spec-or-item) > > When I have a look to the derivation that is computed in that procedure, > it looks like it has the expected system (the one passed as a cli > argument). Do you have any evidence of `guix size` doing the wrong thing > after c245a54aab? Sorry for the confusion, c245a54aab did fix the issue, I should remove the "follow-up" line in the commit message. This patch is more of a style change: Since system has been passed to =A1run-with-store=A2 and parameterized with= in it, we only have to deal with the =A1mlet*=A2 bindings which are evaluated earlier. For this specefic case, only =A1ensure-store-item=A2 used in =A1mlet*=A2 bi= ndings needs the system, so we can simply handle it there. And I think parameterizing s= ystem around =A1run-with-store=A2 again made the procedure less clear. Thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 12 07:50:36 2024 Received: (at control) by debbugs.gnu.org; 12 Nov 2024 12:50:36 +0000 Received: from localhost ([127.0.0.1]:32822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAqLs-0005nr-59 for submit@debbugs.gnu.org; Tue, 12 Nov 2024 07:50:36 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:52494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAqLp-0005nc-4u for control@debbugs.gnu.org; Tue, 12 Nov 2024 07:50:33 -0500 Date: Tue, 12 Nov 2024 20:50:01 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1731415826; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=K/Z1Pt5gU+0I3PLQ3/jzCVYOVHENZvabpkgwFtkiw5I=; b=NueA1Bbn8RAmaVIBpteDEAebGIvh7rkP2km+YPKl/qsZm2fYsjdcwKJf0HbNUitAlXjJza qiDkUzpW2BKuPdeL3lcqCFBM6QTGdWwyGiFv5E2LBDEG1zTp1rSaIb3aaPtr7BzaLfjpay DpV5/iNWzsGRvPjZPkVv+6pR8TfDvBRGqeLHoSNJxOq4u872oIccYNi7pr990quBF7eY7U qU2nuxL2wQv+uqYx6Oanik33H1GH3pKNqb4ymNwpiWvYKOUcVAIHa4JeCER2tkDN8/SIax 73yDBHzyWwkgj6nAbNAbJn6lyRQDyEBB4VKUUoAlDwLCfErJw70s14Wr9iCOmg== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space Message-ID: <877c98ipl2.wl-hako@ultrarare.space> From: Hilton Chain To: control@debbugs.gnu.org Subject: Control message. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: / X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 68420 quit From unknown Fri Jun 20 07:20:38 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 11 Dec 2024 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator