Open nthykier opened 3 years ago
So now it's recommended to use the Build-Depends: debhelper-compat (= X)
instead of the compact file, right?
I removed the compact file and debuild returned an error:
dh: error: Please specify the compatibility level in debian/compat or via Build-Depends: debhelper-compat (= X)
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
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.