all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#41548] [PATCH] gnu: mozjs: Remove static library
@ 2020-05-26 21:15 Julien Lepiller
  2020-05-28 17:46 ` Leo Famulari
  0 siblings, 1 reply; 6+ messages in thread
From: Julien Lepiller @ 2020-05-26 21:15 UTC (permalink / raw)
  To: 41548

[-- 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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#41548] [PATCH] gnu: mozjs: Remove static library
  2020-05-26 21:15 [bug#41548] [PATCH] gnu: mozjs: Remove static library Julien Lepiller
@ 2020-05-28 17:46 ` Leo Famulari
  2020-05-28 17:57   ` Julien Lepiller
  0 siblings, 1 reply; 6+ messages in thread
From: Leo Famulari @ 2020-05-28 17:46 UTC (permalink / raw)
  To: Julien Lepiller; +Cc: 41548

On Tue, May 26, 2020 at 11:15:57PM +0200, Julien Lepiller wrote:
> 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.

Awesome! I figure that things seem to keep working without it?




^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#41548] [PATCH] gnu: mozjs: Remove static library
  2020-05-28 17:46 ` Leo Famulari
@ 2020-05-28 17:57   ` Julien Lepiller
  2020-05-29 16:54     ` Leo Famulari
  0 siblings, 1 reply; 6+ messages in thread
From: Julien Lepiller @ 2020-05-28 17:57 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 41548

Le 28 mai 2020 13:46:49 GMT-04:00, Leo Famulari <leo@famulari.name> a écrit :
>On Tue, May 26, 2020 at 11:15:57PM +0200, Julien Lepiller wrote:
>> 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.
>
>Awesome! I figure that things seem to keep working without it?

At least gdm still builds, but I'm not sure how to test it properly




^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#41548] [PATCH] gnu: mozjs: Remove static library
  2020-05-28 17:57   ` Julien Lepiller
@ 2020-05-29 16:54     ` Leo Famulari
  2020-05-30 16:07       ` bug#41548: " Julien Lepiller
  0 siblings, 1 reply; 6+ messages in thread
From: Leo Famulari @ 2020-05-29 16:54 UTC (permalink / raw)
  To: Julien Lepiller; +Cc: 41548

On Thu, May 28, 2020 at 01:57:32PM -0400, Julien Lepiller wrote:
> Le 28 mai 2020 13:46:49 GMT-04:00, Leo Famulari <leo@famulari.name> a écrit :
> >On Tue, May 26, 2020 at 11:15:57PM +0200, Julien Lepiller wrote:
> >> 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.
> >
> >Awesome! I figure that things seem to keep working without it?
> 
> At least gdm still builds, but I'm not sure how to test it properly

You could make a vm-image with %desktop-services, which uses GDM.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#41548: [PATCH] gnu: mozjs: Remove static library
  2020-05-29 16:54     ` Leo Famulari
@ 2020-05-30 16:07       ` Julien Lepiller
  2020-05-30 17:08         ` [bug#41548] " Leo Famulari
  0 siblings, 1 reply; 6+ messages in thread
From: Julien Lepiller @ 2020-05-30 16:07 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 41548-close

Le Fri, 29 May 2020 12:54:45 -0400,
Leo Famulari <leo@famulari.name> a écrit :

> On Thu, May 28, 2020 at 01:57:32PM -0400, Julien Lepiller wrote:
> > Le 28 mai 2020 13:46:49 GMT-04:00, Leo Famulari <leo@famulari.name>
> > a écrit :  
> > >On Tue, May 26, 2020 at 11:15:57PM +0200, Julien Lepiller wrote:  
> > >> 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.  
> > >
> > >Awesome! I figure that things seem to keep working without it?  
> > 
> > At least gdm still builds, but I'm not sure how to test it properly
> >  
> 
> You could make a vm-image with %desktop-services, which uses GDM.

Thanks, that's a good idea. I managed to build a vm that way and
unfortunately gdm fails to start, so the static library must be used in
some way. I'm closing this without pushing anything.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#41548] [PATCH] gnu: mozjs: Remove static library
  2020-05-30 16:07       ` bug#41548: " Julien Lepiller
@ 2020-05-30 17:08         ` Leo Famulari
  0 siblings, 0 replies; 6+ messages in thread
From: Leo Famulari @ 2020-05-30 17:08 UTC (permalink / raw)
  To: Julien Lepiller; +Cc: 41548-close

On Sat, May 30, 2020 at 06:07:36PM +0200, Julien Lepiller wrote:
> Thanks, that's a good idea. I managed to build a vm that way and
> unfortunately gdm fails to start, so the static library must be used in
> some way. I'm closing this without pushing anything.

Okay, but did it work without your patch?




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-05-30 17:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-26 21:15 [bug#41548] [PATCH] gnu: mozjs: Remove static library Julien Lepiller
2020-05-28 17:46 ` 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.