GNU bug report logs -
#39146
[PATCH] gnu: icecat: Remove compiler paths from about:buildconfig
Previous Next
Reported by: Jakub Kądziołka <kuba <at> kadziolka.net>
Date: Wed, 15 Jan 2020 22:22:01 UTC
Severity: normal
Tags: patch
Done: Jakub Kądziołka <kuba <at> kadziolka.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
* gnu/packages/gnuzilla.scm
(icecat)[arguments](dont-store-compiler-paths): New phase.
---
gnu/packages/gnuzilla.scm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index ae0c58eedb..d32333ca96 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -11,6 +11,7 @@
;;; Copyright © 2018 Ricardo Wurmus <rekado <at> elephly.net>
;;; Copyright © 2019 Ivan Petkov <ivanppetkov <at> gmail.com>
;;; Copyright © 2020 Oleg Pykhalov <go.wigust <at> gmail.com>
+;;; Copyright © 2020 Jakub Kądziołka <kuba <at> kadziolka.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -906,6 +907,16 @@ from forcing GEXP-PROMISE."
"-p1" "--input" file))))
(or native-inputs inputs)))
#t))
+ (add-after 'unpack 'dont-store-compiler-paths
+ (lambda _
+ ;; Remove references to the compilers used from the output. Reduces
+ ;; `guix size icecat' by 1 GiB on x86-64.
+ (let ((zap "Store reference removed"))
+ (substitute* "toolkit/content/buildconfig.html"
+ (("@CC@") zap)
+ (("@CXX@") zap)
+ (("@RUSTC@") zap)
+ (("@MOZ_CONFIGURE_OPTIONS@") zap)))))
(add-after 'apply-guix-specific-patches 'remove-bundled-libraries
(lambda _
;; Remove bundled libraries that we don't use, since they may
--
2.25.0
This bug report was last modified 5 years and 81 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.