[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
12/12: gnu: papirus-icon-theme: Reduce inode consumption.
From: |
guix-commits |
Subject: |
12/12: gnu: papirus-icon-theme: Reduce inode consumption. |
Date: |
Tue, 31 Jan 2023 14:41:04 -0500 (EST) |
nckx pushed a commit to branch master
in repository guix.
commit aed385e18ec7b68a0bc1bb4b173aeadc9cd97245
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Jan 29 01:00:00 2023 +0100
gnu: papirus-icon-theme: Reduce inode consumption.
* gnu/packages/gnome-xyz.scm (papirus-icon-theme)[arguments]:
Add a new 'halve-inode-consumption phase.
---
gnu/packages/gnome-xyz.scm | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm
index 84b46fe89f..0cb4adac76 100644
--- a/gnu/packages/gnome-xyz.scm
+++ b/gnu/packages/gnome-xyz.scm
@@ -6,7 +6,7 @@
;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
;;; Copyright © 2020 Kei Kebreau <kkebreau@posteo.net>
;;; Copyright © 2020 Ekaitz Zarraga <ekaitz@elenq.tech>
-;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2020, 2023 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
;;; Copyright © 2020 Ellis Kenyo <me@elken.dev>
;;; Copyright © 2020 Stefan Reichör <stefan@xsteve.at>
@@ -216,7 +216,23 @@ simple and consistent.")
(modify-phases %standard-phases
(delete 'bootstrap)
(delete 'configure)
- (delete 'build))))
+ (delete 'build)
+ (add-after 'install 'halve-inode-consumption
+ ;; This package uses over 100K inodes, which is a lot. We can
easily
+ ;; halve that number by using (hard) links, to no ill effect.
+ ;; See <https://logs.guix.gnu.org/guix/2023-01-31.log#171227>.
+ ;; However, the source checkout will still use the full amount!
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (symlink? (lambda (_ stat)
+ (eq? 'symlink (stat:type stat)))))
+ (for-each (lambda (file)
+ (with-directory-excursion (dirname file)
+ (let ((target (readlink file)))
+ (when (eq? 'regular (stat:type (stat target)))
+ (delete-file file)
+ (link target file)))))
+ (find-files out symlink?))))))))
(native-inputs
(list `(,gtk+ "bin")))
(home-page "https://git.io/papirus-icon-theme")
- 06/12: gnu: hwinfo: Update to 22.2., (continued)
- 06/12: gnu: hwinfo: Update to 22.2., guix-commits, 2023/01/31
- 02/12: gnu: appstream: Update to 0.15.6., guix-commits, 2023/01/31
- 03/12: gnu: edgar: Update to 1.36., guix-commits, 2023/01/31
- 04/12: gnu: memtest86+: Update to 6.01., guix-commits, 2023/01/31
- 05/12: gnu: memtester: Update to 4.6.0., guix-commits, 2023/01/31
- 07/12: gnu: phockup: Properly patch exiftool., guix-commits, 2023/01/31
- 10/12: gnu: libpng-apng: Update to 1.6.39., guix-commits, 2023/01/31
- 08/12: gnu: phockup: Test exiftool patching., guix-commits, 2023/01/31
- 09/12: gnu: phockup: Update to 1.9.2., guix-commits, 2023/01/31
- 11/12: gnu: libpng-apng: Remove obsolete trailing #t., guix-commits, 2023/01/31
- 12/12: gnu: papirus-icon-theme: Reduce inode consumption.,
guix-commits <=