From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:48133) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itxTX-0003Ok-Vx for guix-patches@gnu.org; Tue, 21 Jan 2020 12:38:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itxTW-0008TB-3o for guix-patches@gnu.org; Tue, 21 Jan 2020 12:38:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42413) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1itxTW-0008T3-0O for guix-patches@gnu.org; Tue, 21 Jan 2020 12:38:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1itxTV-0007uV-Rd for guix-patches@gnu.org; Tue, 21 Jan 2020 12:38:01 -0500 Subject: [bug#39146] [PATCH v2] gnu: icecat: Remove compiler paths from about:buildconfig References: <20200115222115.322ymuuqkwlnbl3v@zdrowyportier.kadziolka.net> In-Reply-To: <20200115222115.322ymuuqkwlnbl3v@zdrowyportier.kadziolka.net> Resent-Message-ID: Date: Tue, 21 Jan 2020 18:37:11 +0100 From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Message-ID: <20200121173711.5gegrl233dtjneni@zdrowyportier.kadziolka.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39146@debbugs.gnu.org * 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 ;;; Copyright © 2019 Ivan Petkov ;;; Copyright © 2020 Oleg Pykhalov +;;; Copyright © 2020 Jakub Kądziołka ;;; ;;; 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