Skip to content

logrotate: move mail dependency from package to service#162225

Closed
martinetd wants to merge 1 commit intoNixOS:masterfrom
martinetd:logrotate_mail
Closed

logrotate: move mail dependency from package to service#162225
martinetd wants to merge 1 commit intoNixOS:masterfrom
martinetd:logrotate_mail

Conversation

@martinetd
Copy link
Member

Motivation for this change

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 #162001

This supersedes the "mail" part of #162063 which has grown bigger/more complicated than planned, and will continue its own life at a slower pace.

Things done
  • Built on platform(s)
    • x86_64-linux
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Feb 28, 2022
@martinetd martinetd mentioned this pull request Feb 28, 2022
5 tasks
@ofborg ofborg bot requested a review from viric February 28, 2022 14:21
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Feb 28, 2022
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
Copy link
Contributor

@ius ius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This resolves the immediate issue. Thanks!

@Artturin
Copy link
Member

@ofborg test logrotate

@martinetd
Copy link
Member Author

Closing, this has been merged as part of #162063

@martinetd martinetd closed this Apr 1, 2022
@martinetd martinetd deleted the logrotate_mail branch October 5, 2022 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Logrotate adds bloat to installation media closure

4 participants