From patchwork Tue May 26 21:15:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Lepiller X-Patchwork-Id: 22389 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A655827BBE3; Tue, 26 May 2020 22:17:19 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 4736327BBE1 for ; Tue, 26 May 2020 22:17:19 +0100 (BST) Received: from localhost ([::1]:34310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdgwo-0003YB-RB for patchwork@mira.cbaines.net; Tue, 26 May 2020 17:17:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdgwY-0003UF-JC for guix-patches@gnu.org; Tue, 26 May 2020 17:17:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35006) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdgwY-0003fQ-8c for guix-patches@gnu.org; Tue, 26 May 2020 17:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jdgwY-0005ON-5G for guix-patches@gnu.org; Tue, 26 May 2020 17:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41548] [PATCH] gnu: mozjs: Remove static library Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 26 May 2020 21:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41548 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41548@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159052778320638 (code B ref -1); Tue, 26 May 2020 21:17:01 +0000 Received: (at submit) by debbugs.gnu.org; 26 May 2020 21:16:23 +0000 Received: from localhost ([127.0.0.1]:46534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdgvv-0005Mo-HG for submit@debbugs.gnu.org; Tue, 26 May 2020 17:16:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:36606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdgvt-0005Mg-J5 for submit@debbugs.gnu.org; Tue, 26 May 2020 17:16:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdgvt-000335-Be for guix-patches@gnu.org; Tue, 26 May 2020 17:16:21 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:38202) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdgvq-0002rX-8s for guix-patches@gnu.org; Tue, 26 May 2020 17:16:20 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 1fe37708 for ; Tue, 26 May 2020 21:16:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:message-id:mime-version:content-type; s=dkim; bh=Qac CfRicxiRtJnIZX5kJvJ+juuK7Zcz+1ydVqcvu/i4=; b=eItt4NZPV9cq4/9pTNW IgodBAh2SR3Sm+3LSaIJcIRzShx1JE4F50QeyFd5XGX1MfGPqSjckrhKoMVG0vDR W8XJD/OXXOG2tnDx5gUAhTn6dde9IceXf67AfdIAiDUEzLAGmPlBgWgvte19D/r0 HPxco/Lrc0mLnmQPi2ar5yGQ6fnlrVPa02cf2pQe3Ga+3NYtN9Zhl61Ylh6nLmf1 fOZVDCzD3KaoItkA9ctbJMGR/eolhltq1v7Au1ylAK1cljahM9rCcF5whgz/R4ow XUBtREheCvR4vUkZ7YEZbdz9j+Nl96MoebQKTEi/wttSyh5IksuAt6nCXXj/zBjY qAQ== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id c38f5a24 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Tue, 26 May 2020 21:16:09 +0000 (UTC) Date: Tue, 26 May 2020 23:15:57 +0200 From: Julien Lepiller Message-ID: <20200526231557.0e4c40a5@tachikoma.lepiller.eu> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Received-SPF: none client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hi, the attached patch removes lib/libjs_static.ajs from the output of mozjs, a 30 MB static library. This mozjs is part of the closure of gdm and gnome, so it reduces the size of most desktop systems. The reason why I found that file, is because it is mentionned in BLFS: http://linuxfromscratch.org/blfs/view/svn/general/js68.html From 9529f1442323bad4f96fe070a510e1dd64a2c8ce Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Tue, 26 May 2020 23:08:15 +0200 Subject: [PATCH] gnu: mozjs: Remove static library. * gnu/packages/gnuzilla.scm (mozjs-60): Remove static library. --- gnu/packages/gnuzilla.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm index 7bf9850e97..808c04f1db 100644 --- a/gnu/packages/gnuzilla.scm +++ b/gnu/packages/gnuzilla.scm @@ -404,6 +404,12 @@ in C/C++.") ;; This test assumes that /bin exists and contains certain ;; executables. (delete-file "js/src/tests/shell/os.js") + #t)) + (add-after 'install 'remove-static + (lambda* (#:key outputs #:allow-other-keys) + ;; this saves ~30 MB + (delete-file (string-append (assoc-ref outputs "out") + "/lib/libjs_static.ajs")) #t))))) (native-inputs `(("autoconf" ,autoconf) -- 2.26.2