-
Notifications
You must be signed in to change notification settings - Fork 72
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
debian/compat can be replaced by debhelper-compat (= 9) with a "new enough" debhelper #8
Comments
So now it's recommended to use the |
I removed the compact file and debuild returned an error:
So it looks like this is a default and recommended way now. |
It would be really good to make the notice and mention the new preferred way in the Debain control files docs here https://www.debian.org/doc/manuals/maint-guide/dother.en.html#compat |
Thanks for flagging that being out of date. I have filed #1075842 to have it updated. :) |
While building the package, by using equivs-build and debian/control file, I got the following error: ``` root@a625b7a1de7c:/mpv-build# equivs-build --full debian/control dpkg-buildpackage: info: source package mpv dpkg-buildpackage: info: source version 1.0 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Kevin Mitchell <[email protected]> dpkg-buildpackage: info: host architecture amd64 dpkg-source --before-build . debian/rules clean dh clean dh: error: Please specify the compatibility level in debian/compat or via Build-Depends: debhelper-compat (= X) make: *** [debian/rules:3: clean] Error 255 dpkg-buildpackage: error: debian/rules clean subprocess returned exit status 2 Error in the build process: exit status 2 ``` Based on the error message, I replaced debian/compat with debhelper-compate (= 12) in debian/control file. The existing compat file didn't help to build the package. [Reference](FooBarWidget/debian-packaging-for-the-modern-developer#8 (comment)) Changes to be committed: deleted: compat modified: control
In recent versions of debhelper, it has become possible to remove the
debian/compat
file by replacing it with aBuild-Depends: debhelper-compat (= X)
, where X is the number you would have put indebian/compat
(requiresdebhelper >= 11.3
andX >= 9
). This makes packaging feel a bit more "DRY". :)The existing method still works and is still supported if you are stuck on older versions of debhelper or need older compat versions than 9.
The text was updated successfully, but these errors were encountered: