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

Bug#874121: lintian: Please add more packagename to section mappings



Hi!

On Mon, 2017-09-04 at 22:27:03 +0100, Chris Lamb wrote:
> Thanks for the patch.
> 
>   ^lib.*\d[ad]?$                          => lib
>                                              ^^^
> 
> Shouldn't this be "libs" … ?

Indeed, attached a revised version with some other corrections
included.

Thanks,
Guillem
From c6e65a85c0dc08d251bccb103e0cef0c014bcbf9 Mon Sep 17 00:00:00 2001
From: Guillem Jover <guillem@debian.org>
Date: Sun, 3 Sep 2017 15:42:26 +0200
Subject: [PATCH] data/fields/name_section_mappings: Add more mappings

Signed-off-by: Guillem Jover <guillem@debian.org>
---
 data/fields/name_section_mappings | 32 +++++++++++++++++++++++++++++---
 1 file changed, 29 insertions(+), 3 deletions(-)

diff --git a/data/fields/name_section_mappings b/data/fields/name_section_mappings
index 116fa3885..12e9bb89b 100644
--- a/data/fields/name_section_mappings
+++ b/data/fields/name_section_mappings
@@ -2,18 +2,44 @@
 # this list is tried from top to bottom
 -docs?$                      => doc
 -dbg(?:sym)?$                => debug
+# application or framework specific
+^lib(?:apache2|nginx)-mod-              => httpd
+^lighttpd-mod                           => httpd
+\.(?:framework|tool|app)(?:-common)?$   => gnustep
+^gnustep-                               => gnustep
+^moblin-                                => embedded
+# language-specific
 ^node-                       => javascript
 ^(?:python-)?zope            => zope
 ^python3?-                   => python
 ^r-(?:cran|bioc|other)-      => gnu-r
+^(?:cl|elpa)-                           => lisp
+-elisp(?:-.*)$                          => lisp
+^lib.*-guile$                           => lisp
+^guile-                                 => lisp
 ^lib.*-perl$                 => perl
 lib.*-cil(?:-dev)?$          => cli-mono
-^lib.*-(?:java|gcj)$         => java
-^(?:lib)php-                 => php
+^lib.*-(?:java|gcj|jni)$                => java
+^(?:lib)?php(?:\d(?:\.\d)?)?-           => php
+^lib-.*-php$                            => php
+^haskell-                               => haskell
 ^lib(?:hugs|ghc6?)-          => haskell
 ^lib.*-ruby(?:1\.\d)?$       => ruby
+^ruby-                                  => ruby
+^lib.*-rust-dev$                        => rust
+^rust-                                  => rust
 ^lib.*-(?:ocaml|camlp4)-dev$ => ocaml
 ^libjs-                      => javascript
+^lib.*-(tcl|lua|gst)                    => interpreters
+# data files
 ^gir\d+\.\d+-.*-\d+\.\d+$    => introspection
+^(?:x?fonts|ttf)-                       => fonts
+^(?:aspell|hunspell|myspell|mythes)-    => localization
+^hyphen-[a-z]{2}(?:-[a-z]{2})?$         => localization
+^dict-freedict-                         => localization
+^gcompris-sound-                        => localization
+-l10n(?:-.*)?$                          => localization
+-(dkms|firmware)$                       => kernel
 # catch remaining should be after specific lib
-^lib.*-dev$                  => libdevel
+^lib.*-(dev|headers)$                   => libdevel
+^lib.*\d[ad]?$                          => libs
-- 
2.14.1


Reply to: