From patchwork Wed Apr 2 11:16:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timo Wilken X-Patchwork-Id: 41163 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3DC0F27BBE2; Wed, 2 Apr 2025 12:18:37 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0208827BBE2 for ; Wed, 2 Apr 2025 12:18:37 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tzw6k-0002or-42; Wed, 02 Apr 2025 07:18:10 -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 1tzw6f-0002nB-MG for guix-patches@gnu.org; Wed, 02 Apr 2025 07:18:06 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tzw6e-0004uT-8D for guix-patches@gnu.org; Wed, 02 Apr 2025 07:18:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=RgCmOeMZZxk+cziBho7e8lbiXF5B49XOfxzfrZljDmU=; b=ZGJ0ZnLcvyP5hZItUXsRk4yvTMvpG1GoP4+pML+XKij+o0bcEHFVyPa4waAV6YaQRtzZnc8zy1iU3fjjX6QO4OD9mpk52Usvs0PDmYJp5B1mdFzase6+y0hamm/EVKSh67YDC/BcvDMLm4SdeMJFrQuJN5qi2oc79db8DwpgF3bdmOEMUq0ZbjccXYYMJy5wvlWJq4Mua4rEl3rSL8zia7SxqXaDJkL05kuzeUUcSyK8nL6RhSjPU4H1cOEUgfFGHttyQ5mhGDgL2i6PssfHYzGt+88j4+mCHCeSdvD5XqNqFSmpW8wpbX6Fe8aIP2BOni8rRxMGWRbGQG5AlExUCQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tzw6d-0005KC-Le; Wed, 02 Apr 2025 07:18:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77455] [PATCH 3/4] gnu: papirus-icon-theme: Preserve hardlinks to save inodes. Resent-From: Timo Wilken Original-Sender: "Debbugs-submit" Resent-CC: liliana.prikler@gmail.com, maxim.cournoyer@gmail.com, vivien@planete-kraus.eu, guix-patches@gnu.org Resent-Date: Wed, 02 Apr 2025 11:18:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77455 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 77455@debbugs.gnu.org Cc: Timo Wilken , Liliana Marie Prikler , Maxim Cournoyer , Vivien Kraus X-Debbugs-Original-Xcc: Liliana Marie Prikler , Maxim Cournoyer , Vivien Kraus Received: via spool by 77455-submit@debbugs.gnu.org id=B77455.174359262820060 (code B ref 77455); Wed, 02 Apr 2025 11:18:03 +0000 Received: (at 77455) by debbugs.gnu.org; 2 Apr 2025 11:17:08 +0000 Received: from localhost ([127.0.0.1]:55436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tzw5j-0005DN-FI for submit@debbugs.gnu.org; Wed, 02 Apr 2025 07:17:07 -0400 Received: from mx1.mythic-beasts.com ([2a00:1098:0:86:1000:0:2:1]:39407) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tzw5e-0005BO-9u for 77455@debbugs.gnu.org; Wed, 02 Apr 2025 07:17:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=twilken.net ; s=mythic-beasts-k1; h=Date:Subject:To:From; bh=RgCmOeMZZxk+cziBho7e8lbiXF5B49XOfxzfrZljDmU=; b=j5LoMV/V9f+FBzcOUr+rwU2B6X EZDzTztF+x0TUnqqvLj1w0BqXovHZ/clxs6yeaGV+dNupbGzPLzlNW6T7at8AwmIP3wjL5vic7Wur g7T4ode+aHBTtwzsHm7tfrUpmBxxJP8RgIjLqBpVA1no6bpIK+8ZVuzN0G9BE71mUtuhjKaiBOTuH FkuEaaIo9xSf2/e3iFFEGwdL33O+0jqZNNtKkkk0RG3KxBIZ+0WSANoHMhCJ2FAFk2I/gy4wDy+wz AbxgIsOuiwRSpeZtLBqafCjJg0SgG2EToUWw3DK34WxljBmBWRwv42zVR4L2yOxpbTI0DnX6knzvo 81Ju/ciA==; Received: by mailhub-cam-d.mythic-beasts.com with esmtpa (Exim 4.94.2) (envelope-from ) id 1tzw5Y-000KMR-6Z; Wed, 02 Apr 2025 12:16:56 +0100 From: Timo Wilken Date: Wed, 2 Apr 2025 13:16:21 +0200 Message-ID: <20250402111623.22287-3-guix@twilken.net> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250402111623.22287-1-guix@twilken.net> References: <20250402111623.22287-1-guix@twilken.net> MIME-Version: 1.0 X-BlackCat-Spam-Score: 49 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Even though the package has a 'halve-inode-consumption phase, this only works if the subsequent `cp' doesn't break the created hardlinks again. Tell `cp' to preserve them. For me, this commit reduces the number of hardlinks under /share/icons inside this package from 113886 to 58697 (compared to 116011 without the 'halve-inode-consumption phase). * gnu/packages/gnome-xyz.scm (papirus-icon-theme) [arguments]: Preserve hardlinks during installation. Change-Id: I594fb47ecd09754f6b3e13b74215826521db5cfa --- gnu/packages/gnome-xyz.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm index 2a9b50d9b4..2054cd9762 100644 --- a/gnu/packages/gnome-xyz.scm +++ b/gnu/packages/gnome-xyz.scm @@ -217,7 +217,8 @@ (define-public papirus-icon-theme (build-system gnu-build-system) (arguments `(#:tests? #f ; no test suite - #:make-flags ,#~(list (string-append "PREFIX=" (assoc-ref %outputs "out"))) + #:make-flags ,#~(list "CP_OPTS=--preserve=links" + (string-append "PREFIX=" (assoc-ref %outputs "out"))) #:phases ,#~(modify-phases %standard-phases (delete 'bootstrap)