All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [git commit] package/polkit: bump to version 0.116
Date: Mon, 10 Feb 2020 09:33:39 +0100	[thread overview]
Message-ID: <20200210093339.1782bd4d@windsurf> (raw)
In-Reply-To: <CAJ4jsacmmUF8eKM9Xs+5vVseg8VrHw-K1APU-O=6DGdyvDJvTg@mail.gmail.com>

Hello Carlos,

On Sun, 9 Feb 2020 21:00:31 -0300
Carlos Santos <unixmania@gmail.com> wrote:

> > Signed-off-by: Adam Duskett <Aduskett@gmail.com>
> > Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>  
> 
> Argh, the mozjs (spidermonkey) dependency increases the size of the
> target system by 45 MiB!

Yes, the mozjs dependency is unfortunate, and trust me, we would very
much have liked polkit to use a different JS engine, or no JS at all.
We have been postponing this polkit bump for years due to this. But
this is upstream polkit's decision, and at some point, we have no
choice but to follow what they did.

If you look at the polkit archive, many years ago there was a patch
series posted to use the ducktape JS engine instead of mozjs. It would
be very nice to revive this work and hopefully bring it upstream.
Indeed, ducktape is 2 orders of magnitude smaller than mozjs I believe.

> $ file build/buildroot-fs/ext2/target/usr/{bin/js60,lib/libmozjs-60.so}
> build/buildroot-fs/ext2/target/usr/bin/js60:           ELF 64-bit LSB
> executable, x86-64, version 1 (GNU/Linux), dynamically linked,
> interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 4.14.0,
> BuildID[sha1]=93295e8e66ae075577bc76110d7a81fc3f9b6359, stripped
> build/buildroot-fs/ext2/target/usr/lib/libmozjs-60.so: ELF 64-bit LSB
> shared object, x86-64, version 1 (GNU/Linux), dynamically linked,
> BuildID[sha1]=2cda65c78b09727e5ee4ac481f8847ca07953cc9, stripped
> 
> $ du -hc build/buildroot-fs/ext2/target/usr/{bin/js60,lib/libmozjs-60.so}
> 23M    build/buildroot-fs/ext2/target/usr/bin/js60

Is this binary dynamically linked against libmozjs, or statically
linked against it? The fact that it has the same size as libmozjs makes
me think it might be statically linked against it.

> 23M    build/buildroot-fs/ext2/target/usr/lib/libmozjs-60.so

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2020-02-10  8:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-08 14:56 [Buildroot] [git commit] package/polkit: bump to version 0.116 Thomas Petazzoni
2020-02-10  0:00 ` Carlos Santos
2020-02-10  8:33   ` Thomas Petazzoni [this message]
2020-02-10 13:29     ` Carlos Santos
2020-03-08  3:23       ` Carlos Santos
2020-04-02 21:10 ` Thomas Petazzoni
2020-04-03 20:28   ` Yann E. MORIN
2020-04-04 13:08     ` Thomas Petazzoni

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200210093339.1782bd4d@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /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.
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.