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
Error building and installing zfs-dkms on Debian Stretch #7540
Comments
That is your problem right there. You should try either building from debian sources (with 'dpkg-buildpackage', or simply 'fakeroot ./debian/rules binary'), or creating your own debian directory in a source tree pulled from zol git. Building things for Debian the Debian way is good practice, relying on things converted from rpm's by alien is likely to see you end up with all sorts of problems. |
|
Building from the Debian 0.7.9-2 sources results in the same error for Jessie. Setting up zfs-dkms (0.7.9-2) ... dkms config.log |
EDIT: Debian keeps its kernel source organized differently. I've opened a PR that should fix this. |
scripts/dkms.mkconf calls configure with
`--with-linux=${kernel_source_dir}`, but Debian puts it kernel source at
`/lib/modules/<version>/source`. This patch adds the same logic to the
DKMS file produced by `scripts/dkms.mkconf` that Debian has shipped in
its official ZFS packaging.
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Closes openzfs#7352 openzfs#7540
scripts/dkms.mkconf calls configure with
`--with-linux=${kernel_source_dir}`, but Debian puts it kernel source at
`/lib/modules/<version>/source`. This patch adds the same logic to the
DKMS file produced by `scripts/dkms.mkconf` that Debian has shipped in
its official ZFS packaging: at DKMS build time, it checks if the system
is a Debian system, and adjusts the path accordingly.
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Closes openzfs#7352 openzfs#7540
scripts/dkms.mkconf calls configure with
`--with-linux=${kernel_source_dir}`, but Debian puts it kernel source at
`/lib/modules/<version>/source`. This patch adds the same logic to the
DKMS file produced by `scripts/dkms.mkconf` that Debian has shipped in
its official ZFS packaging: at DKMS build time, it checks if the system
is a Debian system, and adjusts the path accordingly.
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Closes openzfs#7358 openzfs#7540
|
@Serphentas @Ryushin Could you confirm that PR #7554 fixes this problem for you? |
|
@aerusso I'm afraid the error still exists. The problem occurs on Jessie but not Sid (Devuan Ceres). I have not tested Stretch (Devuan Ascii) but probably I should. |
|
Can I get the output of from the failing machine, please? |
|
@aerusso Sure: ls -l /lib/modules/4.9.0-0.bpo.6-amd64 ls -l /lib/modules/4.9.0-0.bpo.6-amd64/build lsb_release -is |
|
@Ryushin You're building on Devuan (not Debian). I'll update the logic in that patch to support that as well. In the future, please be very clear about what distribution you are building. EDIT: @Ryushin Is Devuan reversing Debian's decision to divide |
scripts/dkms.mkconf calls configure with
`--with-linux=${kernel_source_dir}`, but Debian puts it kernel source at
`/lib/modules/<version>/source`. This patch adds the same logic to the
DKMS file produced by `scripts/dkms.mkconf` that Debian has shipped in
its official ZFS packaging: at DKMS build time, it checks if the system
is a Debian system, and adjusts the path accordingly.
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Closes openzfs#7358 openzfs#7540
|
@aerusso The problem is still occurring with Devuan Ceres, Devuan Jessie and Devuan Ascii. @Serphentas is running Debian Stretch so I don't think there is an issue between Devuan or Debian. Running a find command for mmzone.h results it nothing being found: locate for mmzone.h shows the following: Odd that it is not picking up the correct kernel source directory. I made a quilt patch for your changes in scripts/dkms.mkconf and I've verified that the patch has been applied. Strange that this is happening with 0.7.9-2 and not 0.7.6-1. New config log: |
|
@Ryushin Does (in a cleanly unpacked source directory with #7554 applied) If you are experiencing a problem with a particular distribution's packaging of ZFS, you should report it on their bugtracker. |
scripts/dkms.mkconf calls configure with
`--with-linux=${kernel_source_dir}`, but Debian puts it kernel source at
`/lib/modules/<version>/source`. This patch adds the same logic to the
DKMS file produced by `scripts/dkms.mkconf` that Debian has shipped in
its official ZFS packaging: at DKMS build time, it checks if the system
is a Debian system, and adjusts the path accordingly.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Closes openzfs#7358
Closes openzfs#7540
Closes openzfs#7554
scripts/dkms.mkconf calls configure with
`--with-linux=${kernel_source_dir}`, but Debian puts it kernel source at
`/lib/modules/<version>/source`. This patch adds the same logic to the
DKMS file produced by `scripts/dkms.mkconf` that Debian has shipped in
its official ZFS packaging: at DKMS build time, it checks if the system
is a Debian system, and adjusts the path accordingly.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Closes openzfs#7358
Closes openzfs#7540
Closes openzfs#7554
scripts/dkms.mkconf calls configure with
`--with-linux=${kernel_source_dir}`, but Debian puts it kernel source at
`/lib/modules/<version>/source`. This patch adds the same logic to the
DKMS file produced by `scripts/dkms.mkconf` that Debian has shipped in
its official ZFS packaging: at DKMS build time, it checks if the system
is a Debian system, and adjusts the path accordingly.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Closes openzfs#7358
Closes openzfs#7540
Closes openzfs#7554
System information
Describe the problem you're observing
During
make pkg-utils deb-dkmsI see errors as described in #5744.When installing the zfs-dkms deb file, the installation fails:
The
config.logreveals:and other similar issues.
Note that SPL builds correctly, using DKMS.
Describe how to reproduce the problem
Build SPL and ZFS for Debian using DKMS, either from releases tarballs or Git.
then install appropriate SPL debs. Then ZFS:
then install appropriate ZFS debs and observe errors above.
I have been through #6044, #5744, #6577 and others, but to no avail.
The text was updated successfully, but these errors were encountered: