-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Shrink the ZFS closure by making mail support optional #109345
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
Conversation
707c153
to
232527d
Compare
@ofborg test zfs |
@@ -26,7 +27,7 @@ in stdenv.mkDerivation rec { | |||
postPatch = "cp -v ${driverdb} drivedb.h"; | |||
|
|||
configureFlags = [ | |||
"--with-scriptpath=${stdenv.lib.makeBinPath [ mailutils inetutils ]}" | |||
"--with-scriptpath=${lib.makeBinPath ([ inetutils ] ++ lib.optional enableMail mailutils)}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it even need inetutils
when not enabling mail support? I can't think of another reason why smartmontools should talk to the network.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only inetutils
binary it (maybe) uses is in update-smart-drivedb
(ftp
), which has a comment nearby of # OpenBSD
. Say the word and I'll make them both optional; I don't know if that single use of ftp
is worth "breaking" or not (considering it also supports curl
, wget
, svn
, etc).
This is ready for review (basically just squashed everything). I'll write docs after the contents are approved to limit the amount of (potential) rewriting. |
@@ -1,5 +1,6 @@ | |||
{ lib, stdenv, fetchurl, autoreconfHook | |||
, mailutils, inetutils | |||
, mailutils, enableMail ? true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
, mailutils, enableMail ? true | |
, enableMail ? true, mailutils |
, smartmontools, enableMail ? false | ||
, sysstat, sudo, pkg-config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not clear for me which packages belong to enableMail.
Edit:
Maybe like this if we only need smartmontools.
, smartmontools, enableMail ? false | |
, sysstat, sudo, pkg-config | |
, sysstat, sudo, pkg-config | |
, enableMail ? false, smartmontools |
"zed does not need the ability to send email by default" --Eelco
It's enabled by default since that's how it was before this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM though I haven't tested a thing.
Motivation for this change
Fixes #83865.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)There's probably a better way to do this, but at least this gets the ball rolling / starts the conversation. Pinged all the people who participated in the original issue.
TODO: write docs?