-
Notifications
You must be signed in to change notification settings - Fork 49
Optimize dependencies of samba #346
Copy link
Copy link
Closed
flatcar-archive/coreos-overlay
#864Labels
Description
Current situation
Samba is well-known for its full-blown dependencies on a huge number of libraries. Whenever it bumps into a release, like 4.12, it pulls in another libs.
Recently we updated samba to 4.12.9, and apparently the latest Alpha release 2783.0.0 has ~50 MB of less free space compared to the previous version.
To improve that, we need to do some deep dive into the samba ebuild file.
Unfortunately the ebuild does not make use of all configure options available in upstream Samba. It is the case for both Flatcar and Gentoo.
A rough list of what to do, as of Samba 4.12.x.
Gentoo-changes:
- make USE flag
spotlightto pass--disable-spotlight.- The
spotlightis not needed by Linux, not sure why configure tries to auto-detect it and pulls in libs like icu. - we can probably liburing as well.
- The
- make USE flag
docto exclude deps onapp-text/docbook-xsl-stylesheetsanddev-libs/libxslt. - make USE flag
glusterfsto pass--disable-glusterfs. - make USE flag
ntvfsto pass--without-ntvfs-fileserver. - make USE flag
regeditto pass--without-regedit.
Flatcar changes:
- set
bundled_libs=ldbinstead ofALL.
Reactions are currently unavailable