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 dependency tracking for dkms builds #16241

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

SoongNoonien
Copy link
Contributor

@SoongNoonien SoongNoonien commented Jun 1, 2024

Motivation and Context

This should fix #16221.

Description

This PR simply disables automatic dependency tracking for the dkms build. Maybe it could be disabled in configure.ac directly but I don't know if there a any drawbacks.

How Has This Been Tested?

I've adjusted the dkms.conf locally and can confirm that this fixed the issue.

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)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

Previously the dkms build left some unwanted files
in `/usr/lib/modules` which could cause package
managers to not properly clean up old kernels.

Signed-off-by: Martin Wagner <[email protected]>
@tonyhutter
Copy link
Contributor

Nice, this may speed up dkms builds as well:

In fact, dependency tracking is completely useless for one-time builds and
there is a configure option to disable this:

--disable-dependency-tracking

Speed up one-time builds.

https://www.gnu.org/software/automake/manual/html_node/Dependency-Tracking.html

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Jun 14, 2024
@behlendorf behlendorf merged commit c98295e into openzfs:master Jun 14, 2024
22 of 25 checks passed
robn pushed a commit to robn/zfs that referenced this pull request Jul 18, 2024
Previously the dkms build left some unwanted files
in `/usr/lib/modules` which could cause package
managers to not properly clean up old kernels.

Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Martin Wagner <[email protected]>
Closes openzfs#16221 
Closes openzfs#16241
lundman pushed a commit to openzfsonwindows/openzfs that referenced this pull request Sep 4, 2024
Previously the dkms build left some unwanted files
in `/usr/lib/modules` which could cause package
managers to not properly clean up old kernels.

Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Martin Wagner <[email protected]>
Closes openzfs#16221 
Closes openzfs#16241
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dkms build leaves empty folders in /usr/lib/modules/KERNEL/build behind
3 participants