Package: debhelper Version: 9.20120608 Severity: wishlist At the moment debian/compat allows to specify a single level, which debhelper takes as the compatibility level and enables(/disables?) some features accordingly.
But often dh-based packaging itself is simple/generic enough to work fine even with previous releases of debhelper still "in production" in Debian stable or its derivatives (e.g. ubuntu 10.04 LTS carries 7.4.15ubuntu1). This hardcoded single compat leve unnecessarily complicates backporting requiring to patch debian/compat and debian/control for versioned build-depends on debhelper. What if debian/compat contained e.g. '17-19' with build-depend on debhelper (>> 17~), instructing debhelper that the highest compatibility level dh should use (if supported) is 19, so that younger ones >= 17 could built just fine as well? NB alternative usable right away solution is to add debian/max_compat but I would hate having 1 more 1 line file under debian/ unfortunately such a solution would not be usable right away on older releases since older debhelpers would not be aware of such syntax and would still require debian/compat patching for backports, but eventually (in 2-3 years) it could help with backporting. as for a current state-of-art solution I see only generation of debian/compat in debian/rules upon configure (apparently lintian is not happy about DH_COMPAT variable in debian/rules being anything but a number). but even that one makes lintian unhappy a bit: W: glew source: debhelper-compat-file-is-missing W: glew source: package-uses-deprecated-debhelper-compat-version 1 or am I missing some other more elegant solution? thanks in advance for sharing your wisdom, Joey ;) P.S. as a side issue -- there seems to be no way to discover current max compatibility level of dh (i.e. $max_compat) or just the compatibility level without parsing debhelper package version string... may be there could be dh_compat script to spit it out? ;) -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (900, 'testing'), (600, 'unstable'), (300, 'experimental'), (100, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages debhelper depends on: ii binutils 2.22-6.1 ii dpkg 1.16.9 ii dpkg-dev 1.16.9 ii file 5.11-2 ii html2text 1.3.2a-15 ii man-db 2.6.2-1 ii perl 5.14.2-12 ii po-debconf 1.0.16+nmu2 debhelper recommends no packages. Versions of packages debhelper suggests: ii dh-make 0.60 -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org