From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UJlUCF+HzV5fMwAA0tVLHw (envelope-from ) for ; Tue, 26 May 2020 21:17:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id yK0SBF+HzV7DRgAAbx9fmQ (envelope-from ) for ; Tue, 26 May 2020 21:17:19 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7B42A94050A for ; Tue, 26 May 2020 21:17:18 +0000 (UTC) Received: from localhost ([::1]:34310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdgwm-0003YB-HD for larch@yhetil.org; Tue, 26 May 2020 17:17:16 -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 Content-Type: multipart/mixed; boundary="MP_/ZAWwBpSX7Au+ulQxyOfhUE0" 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-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=lepiller.eu header.s=dkim header.b=eItt4NZP; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: o74rTe/NjVGG --MP_/ZAWwBpSX7Au+ulQxyOfhUE0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 --MP_/ZAWwBpSX7Au+ulQxyOfhUE0 Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-gnu-mozjs-Remove-static-library.patch >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 --MP_/ZAWwBpSX7Au+ulQxyOfhUE0--