Subject: bug#39146: closed (Done: gnu: icecat: Remove about:buildconfig store references.)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 26 Feb 2020 21:34:02 +0000

Your bug report

#39146: [PATCH] gnu: icecat: Remove compiler paths from about:buildconfig

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
39146: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=39146
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Done: gnu: icecat: Remove about:buildconfig store references.
From: Jakub Kądziołka <[email-masked]>
To: [email-masked]
Date: Wed, 26 Feb 2020 22:33:43 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Pushed as 37db2370db884ceac3bc97123aaaed84377398eb, closing.

Regards,
Jakub Kądziołka

Subject: [PATCH] gnu: icecat: Remove compiler paths from about:buildconfig
From: Jakub Kądziołka <[email-masked]>
To: [email-masked]
Date: Wed, 15 Jan 2020 23:21:15 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/gnuzilla.scm
  (icecat)[arguments](dont-store-compiler-paths): New phase.
---
 gnu/packages/gnuzilla.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index c619cd5d55..ae155e51ba 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -890,6 +890,16 @@ from forcing GEXP-PROMISE."
              (substitute* '("browser/confvars.sh")
                (("MOZ_SERVICES_SYNC=0") "MOZ_SERVICES_SYNC=1"))
              #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 'unpack 'apply-guix-specific-patches
            (lambda* (#:key inputs native-inputs #:allow-other-keys)
              (let ((patch (string-append (assoc-ref (or native-inputs inputs)
-- 
2.24.1