Hi! On Sun, 2017-09-03 at 16:23:45 +0200, Guillem Jover wrote: > Package: lintian > Version: 2.5.52 > Severity: wishlist > User: guardi...@namespace.hadrons.org > Usertags: sectionspace-violations
> Here's an untested update of the packagename to section mapping > including several other common patterns. Attached an updated, still untested, patch. Thanks, Guillem
From 822176e21a0cba9463d933b9831c80a5bea9ba80 Mon Sep 17 00:00:00 2001 From: Guillem Jover <guil...@debian.org> Date: Sun, 3 Sep 2017 15:42:26 +0200 Subject: [PATCH] data/fields/name_section_mappings: Add more mappings --- data/fields/name_section_mappings | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/data/fields/name_section_mappings b/data/fields/name_section_mappings index 116fa3885..98e934371 100644 --- a/data/fields/name_section_mappings +++ b/data/fields/name_section_mappings @@ -2,18 +2,42 @@ # 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.*-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|guile|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]?$ => lib -- 2.14.1