Good afternoon, I am trying to adapt lintian to Ubuntu specific requirements. The only modification I made is disabling NMU checks by default. I added -D and --debian command-line switches to enable them again (debdiff attached). I have been advised by an Ubuntu developper to make sure that these changes will not collide with future lintian developments. If you have any recommandations about these modifications I would be glad to follow them. This particular issue is tracked on Launchpad bug #36505 [1]. Regards, -- Jérémie Corbier [1] https://launchpad.net/distros/ubuntu/+source/lintian/+bug/36505
diff -Nru /tmp/KEnp6CGcQz/lintian-1.23.14ubuntu1/debian/changelog /tmp/KXh4vD1xp6/lintian-1.23.14ubuntu2/debian/changelog
--- /tmp/KEnp6CGcQz/lintian-1.23.14ubuntu1/debian/changelog 2005-12-28 11:51:36.000000000 +0100
+++ /tmp/KXh4vD1xp6/lintian-1.23.14ubuntu2/debian/changelog 2006-03-25 01:12:00.000000000 +0100
@@ -1,3 +1,10 @@
+lintian (1.23.14ubuntu2) dapper; urgency=low
+
+ * Add a patch to disable NMU checks for Ubuntu. It can be enabled again
+ using -D or --debian switches on the commandline.
+
+ -- Jeremie Corbier <jeremie.corbier@resel.enst-bretagne.fr> Sat, 25 Mar 2006 01:08:54 +0100
+
lintian (1.23.14ubuntu1) dapper; urgency=low
* Resynchronise with Debian.
diff -Nru /tmp/KEnp6CGcQz/lintian-1.23.14ubuntu1/frontend/lintian /tmp/KXh4vD1xp6/lintian-1.23.14ubuntu2/frontend/lintian
--- /tmp/KEnp6CGcQz/lintian-1.23.14ubuntu1/frontend/lintian 2005-12-19 13:49:12.000000000 +0100
+++ /tmp/KXh4vD1xp6/lintian-1.23.14ubuntu2/frontend/lintian 2006-03-25 01:08:10.000000000 +0100
@@ -36,6 +36,9 @@
#increased whenever incompatible
#changes are done to the lab
#so that all packages are re-unpacked
+# Debian specific checks which should be avoided if -D or --debian is not set
+# via the commandline. Format is (check1|check2|check3).
+my $deb_specific_checks = 'nmu';
# Variables used to record commandline options
# Commented out variables have "defined" checks somewhere to determine if
@@ -47,6 +50,7 @@
our $debug = 0; #flag for -d|--debug switch
my @debug;
my $check_everything = 0; #flag for -a|--all switch
+my $debian_behaviour = 0; #flag for -D|--debian switch
my $lintian_info = 0; #flag for -i|--info switch
our $display_infotags = 0; #flag for -I|--display-info switch
my $unpack_level = undef; #flag for -l|--unpack-level switch
@@ -137,6 +141,7 @@
-d, --debug turn Lintian\'s debug messages ON
--print-version print unadorned version number and exit
Behaviour options:
+ -D, --debian turn Lintian\'s Debian specific checks on
-i, --info give detailed info about tags
-I, --display-info display "I:" tags (normally suppressed)
-l X, --unpack-level X set default unpack level to X
@@ -252,6 +257,7 @@
"debug|d" => \@debug, # Count the -d flags
# ------------------ behaviour options
+ "debian|D" => \$debian_behaviour,
"info|i" => \$lintian_info,
"display-info|I" => \$display_infotags,
"unpack-level|l=i" => \$unpack_level,
@@ -903,6 +909,7 @@
or fail("cannot read directory $LINTIAN_ROOT/checks");
for my $f (readdir CHECKDIR) {
+ next if ($f =~ /^$deb_specific_checks\.desc$/ and !$debian_behaviour);
next unless $f =~ /\.desc$/;
print "N: Reading checker description file $f ...\n" if $debug >= 2;
Attachment:
signature.asc
Description: OpenPGP digital signature