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
Logrotate adds bloat to installation media closure #162001
Comments
just, wow! A few points:
That would remove the need for mailutils for most setups including default, and still work for people who need it. |
i like this solution |
Works for me! Should bring the size down to ~118 kB for logrotate sans mail. |
quick follow up on this. First, thanks for the link to RFC42 -- I wasn't aware of the "freeformType" and co framework. Unfortunately logrotate config is a bit special and I wasn't able to warp my head around how to use it to generate a full config from this, so I tried a more direct approach -- I've posted what I have in a draft PR #162063 if you could take a look and advice. It currently works in this state and does what we wanted, just a few rough edges but I won't have time to finish it for a few more days (probably) so depending on the degree of urgency you feel there is we might want to do the remaining points I've listed in the PR in two steps (e.g. finish fixing obvious problems quickly then continue with config validation steps and cleanup in a follow-up PR); I'd rather take the time to finish it properly but open to other opinions here. thanks! |
having pkgs.logrotate depend on mailutils brings in quite a bit of dependencies through mailutil itself and recursive dependency to guile when most people do not need it. Remove mailutils dependency from the package, and conditionally add it to the service if the user specify the mail option either at top level or in a path Fixes NixOS#162001
A recently merged PR has made quite a negative impact on the size (and build time) of the
sdImage
and cd image closure by enabling logrotate by default.Added size (last column) on my
sdimage
It adds 60 MB and pulls in Guile via indirect dependencies. 60 MB to send an email (I suppose) seems a bit much.
mailutils
has 11 MB NAR size and adds another 43 MB via Guile.I noticed this as I caught my cross builder building Guile for over an hour.
Most problematic path:
Some ideas:
mailutils
for logrotate?Related:
@martinetd @orivej @vrthra @viric
The text was updated successfully, but these errors were encountered: