Skip to content
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

Add missing dependencies to Debian custom packages instructions #458

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

EchterAgo
Copy link
Contributor

@EchterAgo EchterAgo commented Oct 14, 2023

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

@EchterAgo EchterAgo changed the title Add missing dh-dkms dependency to Debian custom packages instructions Add missing dependencies to Debian custom packages instructions Oct 14, 2023
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
```

Also `gdebi` is not really, the same thing can be done using `apt-get`
like in the GitHub Actions script:

https://github.com/openzfs/zfs/blob/480d809703c55f54f2ea8b69d22ea36346cfd5e2/.github/workflows/scripts/setup-dependencies.sh#L42
Copy link
Member

@gmelikov gmelikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@gmelikov gmelikov merged commit 61e62da into openzfs:master Oct 16, 2023
1 check passed
@EchterAgo EchterAgo deleted the dh_dkms_dependency branch October 16, 2023 18:58
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.

2 participants