Skip to content

fix(zfs): build OpenZFS's native Debian packages so they declare their dependencies - #29

Merged
JBailes merged 2 commits into
mainfrom
fix/zfs-native-deb
Oct 27, 2026
Merged

JBailes merged 2 commits into
mainfrom
fix/zfs-native-deb

Conversation

@JBailes

@JBailes JBailes commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

The alien targets (make deb-utils deb-dkms) convert RPMs and drop their
requirements: zfs-dkms did not depend on dkms and the libraries declared no
shared-library dependencies, which breaks installing them through apt.
make native-deb-utils builds OpenZFS's own contrib/debian packaging instead
(openzfs-* packages, real Depends), versioned - via the
generated changelog. The zfs-2.4.4 patch lane adds Conflicts for the
alien-built names upstream only Replaces, so apt removes them on upgrade.
check-zfs-dkms now also fails if the DKMS package does not depend on dkms.

.github/workflows/release.yml | 4 +-
README.md | 9 +--
docs/APT_REPO.md | 4 +-
docs/BUILDING.md | 10 +--
docs/CI_RELEASES.md | 2 +-
docs/DKMS.md | 2 +-
docs/INSTALLERS.md | 2 +-
docs/KERNEL.md | 2 +-
docs/SMOOTHNAS.md | 16 ++---
docs/bumping-kernel.md | 4 +-
docs/kernel-config.md | 2 +-
docs/signing.md | 2 +-
examples/smooth.env | 7 +-
examples/smoothnas.env | 7 +-
...debian-conflict-with-alien-built-packages.patch | 72 +++++++++++++++++++
patches/zfs-2.4.4/README.md | 33 +++++++++
recipes/build-zfs.sh | 80 ++++++++--------------
recipes/check-zfs-dkms.sh | 4 +-
18 files changed, 173 insertions(+), 89 deletions(-)

…r dependencies

The alien targets (make deb-utils deb-dkms) convert RPMs and drop their
requirements: zfs-dkms did not depend on dkms and the libraries declared no
shared-library dependencies, which breaks installing them through apt.
make native-deb-utils builds OpenZFS's own contrib/debian packaging instead
(openzfs-* packages, real Depends), versioned <zfs>-<build number> via the
generated changelog. The zfs-2.4.4 patch lane adds Conflicts for the
alien-built names upstream only Replaces, so apt removes them on upgrade.
check-zfs-dkms now also fails if the DKMS package does not depend on dkms.
@JBailes
JBailes merged commit 5088e7e into main Oct 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant