Skip to content

Commit

Permalink
Add missing dependencies to Debian custom packages instructions
Browse files Browse the repository at this point in the history
`gdebi-core` is needed and without `dh-dkms` installed I get this error:

```
ago@ares:~/src/zfs$ make native-deb-utils
cp contrib/debian/control debian/control; \
dpkg-buildpackage -b -rfakeroot -us -uc;
dpkg-buildpackage: info: source package openzfs-linux
dpkg-buildpackage: info: source version 2.1.99-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Umer Saleem <[email protected]>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build .
 debian/rules clean
make[1]: Entering directory '/home/ago/src/zfs'
dh clean --with autoreconf,dkms,python3,sphinxdoc
dh: error: unable to load addon dkms: Can't locate Debian/Debhelper/Sequence/dkms.pm in @inc (you may need to install the Debian::Debhelper::Sequence::dkms module) (@inc contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at (eval 13) line 1.
BEGIN failed--compilation aborted at (eval 13) line 1.

make[1]: *** [debian/rules:28: clean] Error 255
make[1]: Leaving directory '/home/ago/src/zfs'
dpkg-buildpackage: error: debian/rules clean subprocess returned exit status 2
make: *** [Makefile:14320: native-deb-utils] Error 2
```
  • Loading branch information
EchterAgo committed Oct 14, 2023
1 parent 483ff1c commit 41c25d3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/Developer Resources/Custom Packages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Make sure that the required packages are installed:

.. code:: sh
sudo apt install build-essential autoconf automake libtool gawk alien fakeroot dkms libblkid-dev uuid-dev libudev-dev libssl-dev zlib1g-dev libaio-dev libattr1-dev libelf-dev linux-headers-generic python3 python3-dev python3-setuptools python3-cffi libffi-dev python3-packaging debhelper-compat dh-python po-debconf python3-all-dev python3-sphinx
sudo apt install build-essential autoconf automake libtool gawk alien fakeroot dkms dh-dkms libblkid-dev uuid-dev libudev-dev libssl-dev zlib1g-dev libaio-dev libattr1-dev libelf-dev linux-headers-generic python3 python3-dev python3-setuptools python3-cffi libffi-dev python3-packaging debhelper-compat dh-python po-debconf python3-all-dev python3-sphinx gdebi-core
`Get the source code <#get-the-source-code>`__.

Expand Down Expand Up @@ -196,7 +196,6 @@ follows:

.. code:: sh
$ sudo apt-get install dkms
$ cd zfs
$ ./configure --enable-systemd
$ make -j1 deb-utils deb-dkms
Expand All @@ -207,7 +206,6 @@ packages can be built as follows:

.. code:: sh
$ sudo apt-get install dkms
$ cd zfs
$ ./configure
$ make native-deb-utils
Expand Down

0 comments on commit 41c25d3

Please sign in to comment.