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
Enable building the DKMS package on Debian-based distributions #6731
Conversation
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.
Thanks! Functionally this looks good and worked as expected for me. There are just two minor additional tweaks I'd like to make mentioned inline.
config/deb.am
Outdated
| @@ -60,4 +71,4 @@ if CONFIG_USER | |||
| $$pkg8 $$pkg9; | |||
| endif | |||
|
|
|||
| deb: deb-kmod deb-utils | |||
| deb: deb-kmod deb-dkms deb-utils | |||
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.
Let's also add a target for this in the top-level Makefile.am to make it easy to build dkms packages without having to build kmods.
diff --git a/Makefile.am b/Makefile.am
index 4977448..05107cb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -50,5 +50,6 @@ etags:
tags: ctags etags
pkg: @DEFAULT_PACKAGE@
+pkg-dkms: @DEFAULT_PACKAGE@-dkms
pkg-kmod: @DEFAULT_PACKAGE@-kmod
pkg-utils: @DEFAULT_PACKAGE@-utils
config/deb.am
Outdated
| @@ -24,6 +24,17 @@ if CONFIG_KERNEL | |||
| $(RM) $$pkg1 | |||
| endif | |||
|
|
|||
|
|
|||
| deb-dkms: deb-local rpm-dkms | |||
| if CONFIG_KERNEL | |||
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.
We should remove the CONFIG_KERNEL and CONFIG_USER guards. This happened in rpm.am quick a while ago was was overlooked in deb.am. This allows us to run ./configure --with-config=srpm which runs only enough of configure to generate Makefile's with targets capable of invoking the right machinery to build actual packages.
|
@Conan-Kudo could you please add the following line to the ZFS commit comment. It will ensure this PR gets tested with its SPL counterpart. |
|
@behlendorf Does it matter which commit I put it in, or do I need to put it into both? Also, do these requests also apply to spl, as I think I saw similar things there. |
|
You need only add it to the top ZFS commit, and yes please make the same changes to the SPL PR. You'll want to push the SPL updates first then the ZFS updates. I also have a few tweaks to the buildbot I'll push for review which allow it to optionally use dkms packages I'll push once I'm sure they work. |
Signed-off-by: Neal Gompa <ngompa@datto.com> Requires-spl: refs/pull/657/head
This involved three things: * Condition kernel-devel Req to RPM distros * Adjust the DKMS Req to have a minimum of a version only * Ensure that --rpm_safe_upgrade isn't used on non-RPM distros Signed-off-by: Neal Gompa <ngompa@datto.com>
Codecov Report
@@ Coverage Diff @@
## master #6731 +/- ##
==========================================
- Coverage 74.18% 74.14% -0.04%
==========================================
Files 295 295
Lines 93905 93865 -40
==========================================
- Hits 69659 69597 -62
- Misses 24246 24268 +22
Continue to review full report at Codecov.
|
|
@behlendorf The requested changes are done in SPL and ZFS PRs. |
Signed-off-by: Neal Gompa <ngompa@datto.com>
Signed-off-by: Neal Gompa <ngompa@datto.com>
|
Thank You, I have been dreading updating my kernel lately will see how 4.13 goes |
* config/deb.am: Enable building DKMS packages for Debian * rpm/generic/zfs-dkms.spec.in: Adjust spec to be Debian-compatible * Condition kernel-devel Req to RPM distros * Adjust the DKMS Req to have a minimum of a version only * Ensure that --rpm_safe_upgrade isn't used on non-RPM distros * config/deb.am: Drop CONFIG_KERNEL and CONFIG_USER guards * Makefile.am: Add pkg-dkms target Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Neal Gompa <ngompa@datto.com> Closes #6044 Closes #6731
* config/deb.am: Enable building DKMS packages for Debian * rpm/generic/zfs-dkms.spec.in: Adjust spec to be Debian-compatible * Condition kernel-devel Req to RPM distros * Adjust the DKMS Req to have a minimum of a version only * Ensure that --rpm_safe_upgrade isn't used on non-RPM distros * config/deb.am: Drop CONFIG_KERNEL and CONFIG_USER guards * Makefile.am: Add pkg-dkms target Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Neal Gompa <ngompa@datto.com> Closes openzfs#6044 Closes openzfs#6731
* config/deb.am: Enable building DKMS packages for Debian * rpm/generic/zfs-dkms.spec.in: Adjust spec to be Debian-compatible * Condition kernel-devel Req to RPM distros * Adjust the DKMS Req to have a minimum of a version only * Ensure that --rpm_safe_upgrade isn't used on non-RPM distros * config/deb.am: Drop CONFIG_KERNEL and CONFIG_USER guards * Makefile.am: Add pkg-dkms target Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Neal Gompa <ngompa@datto.com> Closes openzfs#6044 Closes openzfs#6731
* config/deb.am: Enable building DKMS packages for Debian * rpm/generic/zfs-dkms.spec.in: Adjust spec to be Debian-compatible * Condition kernel-devel Req to RPM distros * Adjust the DKMS Req to have a minimum of a version only * Ensure that --rpm_safe_upgrade isn't used on non-RPM distros * config/deb.am: Drop CONFIG_KERNEL and CONFIG_USER guards * Makefile.am: Add pkg-dkms target Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Neal Gompa <ngompa@datto.com> Closes openzfs#6044 Closes openzfs#6731
* config/deb.am: Enable building DKMS packages for Debian * rpm/generic/zfs-dkms.spec.in: Adjust spec to be Debian-compatible * Condition kernel-devel Req to RPM distros * Adjust the DKMS Req to have a minimum of a version only * Ensure that --rpm_safe_upgrade isn't used on non-RPM distros * config/deb.am: Drop CONFIG_KERNEL and CONFIG_USER guards * Makefile.am: Add pkg-dkms target Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Neal Gompa <ngompa@datto.com> Closes openzfs#6044 Closes openzfs#6731
* config/deb.am: Enable building DKMS packages for Debian * rpm/generic/zfs-dkms.spec.in: Adjust spec to be Debian-compatible * Condition kernel-devel Req to RPM distros * Adjust the DKMS Req to have a minimum of a version only * Ensure that --rpm_safe_upgrade isn't used on non-RPM distros * config/deb.am: Drop CONFIG_KERNEL and CONFIG_USER guards * Makefile.am: Add pkg-dkms target Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Neal Gompa <ngompa@datto.com> Closes openzfs#6044 Closes openzfs#6731
Description
This pull request adds the ability to generate DKMS packages that are compatible and installable for Debian and derivatives.
This depends on openzfs/spl/pull/657.
Motivation and Context
This change is intended to fix /issues/6044.
How Has This Been Tested?
I built it and installed the DKMS packages on Debian 9.0 (Stretch) for x86_64/amd64. The packages installed and did the right things (built the module and installed it).
Types of changes
Checklist:
Signed-off-by.