From: Julien Lepiller <julien@lepiller.eu>
To: 41548@debbugs.gnu.org
Subject: [bug#41548] [PATCH] gnu: mozjs: Remove static library
Date: Tue, 26 May 2020 23:15:57 +0200 [thread overview]
Message-ID: <20200526231557.0e4c40a5@tachikoma.lepiller.eu> (raw)
[-- Attachment #1: Type: text/plain, Size: 336 bytes --]
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
[-- Attachment #2: 0001-gnu-mozjs-Remove-static-library.patch --]
[-- Type: text/x-patch, Size: 1078 bytes --]
From 9529f1442323bad4f96fe070a510e1dd64a2c8ce Mon Sep 17 00:00:00 2001
From: Julien Lepiller <julien@lepiller.eu>
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
next reply other threads:[~2020-05-26 21:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-26 21:15 Julien Lepiller [this message]
2020-05-28 17:46 ` [bug#41548] [PATCH] gnu: mozjs: Remove static library Leo Famulari
2020-05-28 17:57 ` Julien Lepiller
2020-05-29 16:54 ` Leo Famulari
2020-05-30 16:07 ` bug#41548: " Julien Lepiller
2020-05-30 17:08 ` [bug#41548] " Leo Famulari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200526231557.0e4c40a5@tachikoma.lepiller.eu \
--to=julien@lepiller.eu \
--cc=41548@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).