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

Consider USE=minimal on sys-libs/ncurses #59

Closed
azimut opened this issue Jan 23, 2017 · 8 comments
Closed

Consider USE=minimal on sys-libs/ncurses #59

azimut opened this issue Jan 23, 2017 · 8 comments

Comments

@azimut
Copy link
Contributor

azimut commented Jan 23, 2017

about 5MB get's removed from /usr/share/terminfo (the ebuild does a rm -rf) alpine does something similar with some backup on /etc http://git.alpinelinux.org/cgit/aports/tree/main/ncurses/APKBUILD so far It worked for me but don't know about the images you use

@edannenberg
Copy link
Owner

Nice. Tried the minimal flag for ncurses, seems to work but "only" seeing about 1mb size reduction on my end.

@edannenberg
Copy link
Owner

edannenberg commented Jan 25, 2017

Looking at /usr/share/ in the bash image the only big chunk left seems to be misc/magic.mgc with around 5mb. Removing that is probably not a good idea, but providing a minimal version might be an option.

@azimut
Copy link
Contributor Author

azimut commented Jan 25, 2017

right, probably at docker image level is about that, I just base it on "du"

sh-4.3# du -sh /usr/share/terminfo/
6.7M	/usr/share/terminfo/

Ha! I will consider removing that on my image.

btw, other rabbit-hole to reduce size is libressl https://github.com/azimut/rpi-cluster/blob/master/gentoo-bb/namespaces/stage3-armv7a-musl-libressl/dock/gentoobb-arm-musl-libressl/builder/bob/Buildconfig.sh

but probably not applicable here due lack of nodejs support for it

@soredake
Copy link
Contributor

soredake commented Jan 26, 2017

but probably not applicable here due lack of nodejs support for it

+bundled-openssl is solution (for me, at least) for now (or maybe forever)

@jbergstroem
Copy link
Contributor

@azimut we (node.js) have a work in progress patch for libressl but it's alpha and isn't on par feature-wise: nodejs/node#9376

@edannenberg
Copy link
Owner

edannenberg commented Jan 27, 2017

@azimut with the latest changes you should now be able to simplify your repo setup:

./rpi-cluster
├── builder
│   ├── bob-armv7a
│   ├── bob-armv7a-musl
│   └── bob-armv7a-musl-libre
└── images
build.conf
README.md

Then just clone the whole thing under gentoobb/dock.

Set STAGE3_BASE for bob-armv7a and bob-armv7a-musl. bob-musl's build.conf should be pretty much what you want, probably enough to change STAGE3_BASE and ARCH. bob-armv7a-musl-libre can just extend bob-armv7a-musl by configuring BUILDER.

@azimut
Copy link
Contributor Author

azimut commented Feb 8, 2017

@edannenberg That worked, not the easiest migration ever (mainly due I had a typo on CFLAGS that collided with the new approach of force rebuild of bob-core if CFLAGS are changed), but it worked!. I will create other bug for libressl which is the pending topic that appeared here. Any reason to leave this open? I am not building anything that pulls "file" so I can't help with the magic.mgc test.

@edannenberg
Copy link
Owner

Glad it worked out.

the new approach of force rebuild of bob-core if CFLAGS are changed

Was sadly no other way around it. CFLAGS need to be defined per stage3 build container now, with only one stage3 we could just export the namespace/global default, but now this context may no longer be accurate after the stage3 build container is built.

Any reason to leave this open? I am not building anything that pulls "file" so I can't help with the magic.mgc test.

magic.mgc will probably amount to 1MB image size, so gain/pain ratio fiddling with that is not really worth it IMO. Closing. :)

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

4 participants