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 <liliana.prikler@gmail.com>
This commit is contained in:
Timo Wilken 2025-04-02 13:16:21 +02:00 committed by Liliana Marie Prikler
parent ac98cf42fa
commit 039a89620b
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -218,7 +218,8 @@ simple and consistent.")
(arguments (arguments
(list (list
#:tests? #f ; no test suite #: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 #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(delete 'bootstrap) (delete 'bootstrap)