* Finalized v9 mode, which is the new recommended default.
(But continuing to use v8 is also fine.)
* It is now deprecated for a package to not specify a compatability
level in debian/compat. Debhelper now warns if this is not done,
and packages without a debian/compat will eventually FTBFS.
&is_make_jobserver_unavailable &clean_jobserver_makeflags
&cross_command &set_buildflags &get_buildoption);
-my $max_compat=9;
+my $max_compat=10;
sub init {
my %params=@_;
if (! defined $c) {
$c=1;
- if (defined $ENV{DH_COMPAT}) {
- $c=$ENV{DH_COMPAT};
- }
- elsif (-e 'debian/compat') {
- # Try the file..
+ if (-e 'debian/compat') {
open (COMPAT_IN, "debian/compat") || error "debian/compat: $!";
my $l=<COMPAT_IN>;
close COMPAT_IN;
if (! defined $l || ! length $l) {
- warning("debian/compat is empty, assuming level $c");
+ warning("debian/compat is empty, assuming level $c")
+ unless defined $ENV{DH_COMPAT};
}
else {
chomp $l;
$c=$l;
}
}
+ else {
+ warning("No compatability level specified in debian/compat");
+ warning("This package will soon FTBFS; time to fix it!");
+ }
+
+ if (defined $ENV{DH_COMPAT}) {
+ $c=$ENV{DH_COMPAT};
+ }
}
if ($c <= 4 && ! $warned_compat && ! $nowarn) {
- warning("Compatibility levels before 5 are deprecated.");
+ warning("Compatibility levels before 5 are deprecated (level $c in use)");
$warned_compat=1;
}
it modifies its behavior in various ways.
Tell debhelper what compatibility level to use by writing a number to
-F<debian/compat>. For example, to turn on v8 mode:
+F<debian/compat>. For example, to turn on v9 mode:
- % echo 8 > debian/compat
+ % echo 9 > debian/compat
Unless otherwise indicated, all debhelper documentation assumes that you
are using the most recent compatibility level, and in most cases does not
=item v8
-This is the recommended mode of operation.
-
Changes from v7 are:
=over 8
=item v9
-This compatibility level is still open for development; use with caution.
+This is the recommended mode of operation.
Changes from v8 are:
=back
+=item v10
+
+This compatibility level is still open for development; use with caution.
+
+Changes from v9 are:
+
+=over 8
+
+=item -
+
+None yet..
+
+=back
+
=back
=head1 NOTES
-debhelper (8.9.15) UNRELEASED; urgency=low
+debhelper (9.20120115) unstable; urgency=low
+ * Finalized v9 mode, which is the new recommended default.
+ (But continuing to use v8 is also fine.)
+ * It is now deprecated for a package to not specify a compatability
+ level in debian/compat. Debhelper now warns if this is not done,
+ and packages without a debian/compat will eventually FTBFS.
* Updated German man page translation. Closes: #653360
- -- Joey Hess <joeyh@debian.org> Tue, 03 Jan 2012 16:48:54 -0400
+ -- Joey Hess <joeyh@debian.org> Sun, 15 Jan 2012 13:59:49 -0400
debhelper (8.9.14) unstable; urgency=low
-v9:
+v10:
* escaping in config files (for whitespace)?
* dh_installinit --restart-after-upgrade as default?
Deprecated:
+* make a missing debian/compat an error. (started printing warning messages
+ in 20120115)
* DH_COMPAT 1, 2, 3, 4. Can be removed once all packages are seen to be using
a newer version. I won't hold my breath. (2 and 3 are getting close though.)
* dh_suidregister. Once nothing in the archive uses it.