[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#675358: lintian: [checks/fields] wrongly classifies -cil-dev packages under libdevel



Package: lintian
Version: 2.5.6ubuntu0.1
Severity: normal
Tags: patch

Dear Maintainer,

When running lintian on -cil-dev packages that have Section correctly set to
cli-mono, lintian spits out the following warning, which is wrong and
misleading.

W: libnewtonsoft-json-cil-dev: wrong-section-according-to-package-name libnewtonsoft-json-cil-dev => libdevel

Lintian should accept -cil-dev packages in the cli-mono section, and not in
libdevel.

-- System Information:
Debian Release: wheezy/sid
  APT prefers precise-updates
  APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 'precise'), (400, 'precise-proposed'), (100, 'precise-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 3.4.0-hyper1 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_SG.utf8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lintian depends on:
ii  binutils                       2.22-6ubuntu1
ii  bzip2                          1.0.6-1
ii  diffstat                       1.54-1
ii  file                           5.09-2
ii  gettext                        0.18.1.1-5ubuntu3
ii  intltool-debian                0.35.0+20060710.1
ii  libapt-pkg-perl                0.1.25build2
ii  libc-bin                       2.15-0ubuntu10
ii  libclass-accessor-perl         0.34-1
ii  libclone-perl                  0.31-1build3
ii  libdpkg-perl                   1.16.1.2ubuntu7
ii  libemail-valid-perl            0.185-1
ii  libipc-run-perl                0.90-1
ii  libparse-debianchangelog-perl  1.2.0-1ubuntu1
ii  libtimedate-perl               1.2000-1
ii  liburi-perl                    1.59-1
ii  locales                        2.13+git20120306-3
ii  man-db                         2.6.1-2
ii  patchutils                     0.3.2-1.1
ii  perl [libdigest-sha-perl]      5.14.2-6ubuntu2
ii  unzip                          6.0-4ubuntu1

lintian recommends no packages.

Versions of packages lintian suggests:
ii  binutils-multiarch     <none>
ii  dpkg-dev               1.16.1.2ubuntu7
ii  libhtml-parser-perl    3.69-1build1
ii  libtext-template-perl  1.45-2
ii  man-db                 2.6.1-2
ii  xz-utils               5.1.1alpha+20110809-3

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/share/lintian/checks/fields (from lintian package)
>From 46a691792bf20a748e347d8bb00959cbec1608e3 Mon Sep 17 00:00:00 2001
From: Chow Loong Jin <hyperair@debian.org>
Date: Thu, 31 May 2012 21:48:01 +0800
Subject: [PATCH] c/fields: Group -cil-dev packages under cli-mono

This fixes the following false positive warning:
W: libnewtonsoft-json-cil-dev: wrong-section-according-to-package-name
libnewtonsoft-json-cil-dev => libdevel

Signed-off-by: Chow Loong Jin <hyperair@debian.org>
---
 checks/fields |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/checks/fields b/checks/fields
index da3561c..38548e2 100644
--- a/checks/fields
+++ b/checks/fields
@@ -94,7 +94,7 @@ my @NAME_SECTION_MAPPINGS = (
     [ qr/^python-/                     => 'python'   ],
     [ qr/^r-cran-/                     => 'gnu-r'    ],
     [ qr/^lib.*-perl$/                 => 'perl'     ],
-    [ qr/^lib.*-cil$/                  => 'cli-mono' ],
+    [ qr/^lib.*-cil(?:-dev)?$/         => 'cli-mono' ],
     [ qr/^lib.*-(?:java|gcj)$/         => 'java'     ],
     [ qr/^(?:lib)php-/                 => 'php'      ],
     [ qr/^lib(?:hugs|ghc6?)-/          => 'haskell'  ],
-- 
1.7.9.5


Reply to: