Skip to content
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

Merged
merged 1 commit into from Nov 7, 2017

Conversation

behlendorf
Copy link
Contributor

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (a change to man pages or other documentation)

Checklist:

  • My code follows the ZFS on Linux code style requirements.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • All commit messages are properly formatted and contain Signed-off-by.
  • Change has been approved by a ZFS on Linux member.

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
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@behlendorf behlendorf added this to PR Needed for 0.7.4 in 0.7.4 Nov 7, 2017
@behlendorf behlendorf merged commit 1295449 into openzfs:master Nov 7, 2017
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Nov 21, 2017
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
@behlendorf behlendorf moved this from PR Needed for 0.7.4 to Merged to 0.7.4 in 0.7.4 Dec 12, 2017
Nasf-Fan pushed a commit to Nasf-Fan/zfs that referenced this pull request Jan 29, 2018
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
Nasf-Fan pushed a commit to Nasf-Fan/zfs that referenced this pull request Feb 13, 2018
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
@behlendorf behlendorf deleted the issue-6467 branch April 19, 2021 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
0.7.4
Merged to 0.7.4
Development

Successfully merging this pull request may close these issues.

None yet

3 participants