Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce libslang.so.2 library footprint #517

Open
tlaurion opened this issue Feb 8, 2019 · 4 comments
Open

Reduce libslang.so.2 library footprint #517

tlaurion opened this issue Feb 8, 2019 · 4 comments

Comments

@tlaurion
Copy link
Collaborator

tlaurion commented Feb 8, 2019

@kylerankin : doing some tests to reduce libraries footprints, since x200 and other hardware that don't have a TPM also tend to have smaller SPI flash chips (4mb on some, 8mb on others).

Whiptail depends on a 1.1M libslang.so.2 library, which is the biggest of all, with currently deactivated features:

--with-z=no \
--with-png=no \
--with-pcre=no \
--with-onig=no \

Can we deactivate some other unneeded features? Here is the list:

--with-terminfo=no \
--with-readline=no \
--with-slsyswrap=no \
--with-x=no \
--with-pcre=no \
--with-pcrelib=no \
--with-pcreinc=no \
--with-onig=no \
--with-oniglib=no \
--with-oniginc=no \
--with-png=no \
--with-pnglib=no \
--with-pnginc=no \
--with-z=no \
--with-zlib=no \
--with-zinc=no \
--with-iconv=no \
--with-iconvlib=no \
--with-iconvinc=no \

Edit: even if all of those are turned off, the library still pounds 1.1M. Any advice?

@tlaurion
Copy link
Collaborator Author

tlaurion commented May 1, 2019

@kylerankin : any idea?

@tlaurion
Copy link
Collaborator Author

tlaurion commented May 3, 2020

@MrChromebox : any idea here in link with #590 ?

@MrChromebox
Copy link
Contributor

@tlaurion unless I'm missing something, the only in-tree board I see including the slang module is qemu-coreboot (both explicitly and via CONFIG_NEWT).

@tlaurion
Copy link
Collaborator Author

tlaurion commented May 8, 2020

@MrChromebox this is required for whiptail without full graphical interface (#453 ) (Not really a prority as of now).

those are combined space used per gui-init with fbwhiptail, current ticket being without fbwhiptail.

790103 832 -rwx------ 1 user user 851968 Jun 28 13:01 ./lib/libcairo.so.2
790113 652 -rwx------ 1 user user 667048 Jun 28 13:01 ./lib/libpixman-1.so.0
790114 200 -rwx------ 1 user user 201096 Jun 28 13:01 ./lib/libpng16.so.16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants