From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:56311) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuMxq-0002Ra-RM for guix-patches@gnu.org; Wed, 22 Jan 2020 15:51:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iuMxp-0001Sf-Og for guix-patches@gnu.org; Wed, 22 Jan 2020 15:51:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45451) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iuMxp-0001SX-LQ for guix-patches@gnu.org; Wed, 22 Jan 2020 15:51:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iuMxp-0001N0-KN for guix-patches@gnu.org; Wed, 22 Jan 2020 15:51:01 -0500 Subject: [bug#39146] [PATCH v2] gnu: icecat: Remove about:buildconfig store references. Resent-Message-ID: Date: Wed, 22 Jan 2020 21:50:47 +0100 From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Message-ID: <20200122205047.dclrpcyispjwm4dr@zdrowyportier.kadziolka.net> References: <20200122201313.27946-1-me@tobias.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200122201313.27946-1-me@tobias.gr> 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: Tobias Geerinckx-Rice Cc: 39146@debbugs.gnu.org On Wed, Jan 22, 2020 at 09:13:13PM +0100, Tobias Geerinckx-Rice wrote: > Jakub: I accidentally kept your copyright line in v1, but didn't actually use your code (although part of your comment survives :-). Is the Reported-by above acceptable? I feel like Co-authored-by might fit better, but either is fine by me. > + ;; Mangle the store references to compilers & other build tools in > + ;; about:buildconfig, reducing IceCat's closure by 1 GiB on x86-64. Minor² nit: I feel like this wording suggests this only matters on x64. How about: reducing IceCat's closure by 1 GiB (measured on x86-64). > + (substitute* > + "dist/bin/chrome/toolkit/content/global/buildconfig.html" > + (((format #f "(~a/)([0-9a-z]{32})" (%store-directory)) _ store hash) > + (string-append store (string-take hash 8) "…"))) > + #t)) I don't know whether this is a supported use case, but... what if (%store-directory) contains regex metacharacters? Marius Bakke wrote: > Is it possible to use 'remove-store-references' here? For later reference, resolved on IRC: http://logs.guix.gnu.org/guix/2020-01-22.log#213448 Regards, Jakub Kądziołka