lilyp pushed a commit to branch master
in repository guix.

commit 039a89620bf420e2efce9b8bf9a1289e5c9a594c
Author: Timo Wilken <[email protected]>
AuthorDate: Wed Apr 2 13:16:21 2025 +0200

    gnu: papirus-icon-theme: Preserve hardlinks to save inodes.
    
    The ‘halve-inode-consumption’ phase only works if subsequent invocations of
    ‘cp’ do not break the created hard links.  Thus, we tell ‘cp’ to preserve 
them.
    
    This commit ought to reduce the number of hardlinks under /share/icons 
inside
    papirus-icon-theme package from 113886 to 58697 (compared to 116011 without 
the
    ‘halve-inode-consumption’ phase).
    
    * gnu/packages/gnome-xyz.scm (papirus-icon-theme)[#:make-flags]:
    Add “CP_OPTS=--preserve=links”.
    
    Change-Id: I594fb47ecd09754f6b3e13b74215826521db5cfa
    Signed-off-by: Liliana Marie Prikler <[email protected]>
---
 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 ac1b3c38df..927cf83c0b 100644
--- a/gnu/packages/gnome-xyz.scm
+++ b/gnu/packages/gnome-xyz.scm
@@ -218,7 +218,8 @@ simple and consistent.")
     (arguments
      (list
       #: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)

Reply via email to