From ba6e534af02e4ccfb4797595d8b404941db52064 Mon Sep 17 00:00:00 2001 From: Axel Gembe Date: Sat, 14 Oct 2023 14:36:40 +0700 Subject: [PATCH] Add missing dependencies to Debian custom packages instructions `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 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 ``` --- docs/Developer Resources/Custom Packages.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/Developer Resources/Custom Packages.rst b/docs/Developer Resources/Custom Packages.rst index e3f6fd22c..373963864 100644 --- a/docs/Developer Resources/Custom Packages.rst +++ b/docs/Developer Resources/Custom Packages.rst @@ -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 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>`__. @@ -196,7 +196,6 @@ follows: .. code:: sh - $ sudo apt-get install dkms $ cd zfs $ ./configure --enable-systemd $ make -j1 deb-utils deb-dkms @@ -207,7 +206,7 @@ packages can be built as follows: .. code:: sh - $ sudo apt-get install dkms + $ sudo apt-get install dh-dkms $ cd zfs $ ./configure $ make native-deb-utils