openzfs / openzfs-docs

OpenZFS Documentation
https://openzfs.github.io/openzfs-docs/
135 stars 194 forks source link

Add missing packages for Debian derived systems #524

Closed rnickle closed 1 month ago

rnickle commented 2 months ago

While building for Ubuntu 24.04, I documented that five packages were missing that were required for different aspects of configuration and building of ZFS, associated utilities, packaging and libraries.

I found that the libpam0g-dev and dh-dkms packages were clearly required by Debian 12 and Ubuntu 24.04 and not present on my provisioned installs. In general, I believe all 5 packages are required on both platforms, although the different platforms appear to pull in some packages from other dependencies.

Specifically, these packages appear to be required for both Debian 12 and Ubuntu 24.04:

As validation, I performed the build in parallel on a newly provisioned Ubuntu 24.04 VM and a newly provisioned Debian 12 VM.

I was specifically interested in building native-deb and native-deb-utils so the package list reflects that requirement.

 I followed these steps for Debian and Ubuntu:

$ sh autogen.sh
$ ./configure
$ make -s -j$(nproc)
$ make deb-native
$ make deb-native-utils

Incidentally fixed a typo.

Issues:

457

gmelikov commented 1 month ago

I've checked with our CI https://github.com/openzfs/zfs/blob/b1958b531b75afa8a138eae8ace9d17201fa42b9/.github/workflows/scripts/qemu-3-deps.sh#L32

and some of new packages are absent there:

, BUT native-deb is a little bit new here and CI don't build them IIRC, so I don't see a problem to add them.

Thank you!