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
Disable automatic dependencies in DKMS package #6835
Conversation
By default additional dependencies are generated automatically for packages. This is normally a good thing because it helps ensure things just work. It doesn't make sense for the DKMS package which requires minimal dependencies that can be easily listed. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue openzfs#6467
| @@ -27,6 +27,7 @@ Requires: gcc, make, perl | |||
| Requires: kernel-devel | |||
| %endif | |||
| Provides: %{module}-kmod = %{version} | |||
| AutoReqProv: no | |||
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 resulting rpm misses these auto-dependencies:
auto: /bin/bash
auto: /bin/sed
auto: /bin/sh
auto: /usr/bin/env
auto: /usr/bin/python
/bin/sh and /usr/bin/env should be safe to assume "already installed", probably.
I tried to remove the other three (bash, sed and python) on my CentOS7 but they are all needed by yum, it is probably safe to assume any RHEL-based will always have those installed and we don't need to manually "require" them here.
OTOH on Debian8 i can safely uninstall python: this most probably comes from the ZTS test runner and arcstat.py/arc_summary.py/dbufstat.py, so it's ok to drop from the DKMS package too.
That being said, LGTM.
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.
Yes, I considered dropping some of these for the reasons you mentioned by opted not to out of an abundance of caution. Worst case we pull in some additional dependencies which are very likely already installed. If we want to strip down the dependencies further let's do it in a separate PR.
By default additional dependencies are generated automatically for packages. This is normally a good thing because it helps ensure things just work. It doesn't make sense for the DKMS package which requires minimal dependencies that can be easily listed. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: loli10K <ezomori.nozomu@gmail.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#6467 Closes openzfs#6835
By default additional dependencies are generated automatically for packages. This is normally a good thing because it helps ensure things just work. It doesn't make sense for the DKMS package which requires minimal dependencies that can be easily listed. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: loli10K <ezomori.nozomu@gmail.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#6467 Closes openzfs#6835
By default additional dependencies are generated automatically for packages. This is normally a good thing because it helps ensure things just work. It doesn't make sense for the DKMS package which requires minimal dependencies that can be easily listed. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: loli10K <ezomori.nozomu@gmail.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#6467 Closes openzfs#6835
Description
By default additional dependencies are generated automatically for
packages. This is normally a good thing because it helps ensure
things just work. It doesn't make sense for the DKMS package which
requires minimal dependencies that can be easily listed.
Motivation and Context
Issue #6467, a required fix for the upcoming Fedora 27 release.
How Has This Been Tested?
Locally.
Types of changes
Checklist:
Signed-off-by.