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

Bug#697004: [lintian] False positive for gfdl



Package: lintian
Version: 2.5.10.2
Severity: normal
control: tags -1 + patch

autogen trip the gfdl check because the author use some with to the standard text:
with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
instead of :
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover

Fix it 
From 87015ea2d36dd5a9ed0246ef7ace16f7901f0ad4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bastien=20ROUCARI=C3=88S?= <roucaries.bastien@gmail.com>
Date: Sun, 30 Dec 2012 19:14:05 +0100
Subject: [PATCH] Add more variant for good text

autogen is known to use the following good formulation:
"with no Invariant Sections, with no Front-Cover Texts,
and with no Back-Cover Texts"
Allow it and avoid a false positive
---
 checks/cruft |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/checks/cruft b/checks/cruft
index 5dd0153..be04906 100644
--- a/checks/cruft
+++ b/checks/cruft
@@ -452,8 +452,8 @@ sub find_cruft {
                     # GFDL license, assume it is bad unless it
                     # explicitly states it has no "bad sections".
                     unless ($1 =~m/with \s+ no \s+ Invariant \s+ Sections,?
-                                       \s+ no \s+ Front-Cover \s+ Texts,? \s+ and
-                                       \s+ no \s+ Back-Cover \s+ Texts/xis) {
+                                       \s+ (?:with\s+)? no \s+ Front-Cover \s+ Texts,? \s+ and
+                                       \s+ (?:with\s+)? no \s+ Back-Cover \s+ Texts/xis) {
                         tag 'license-problem-gfdl-invariants', $name;
                         $licenseproblemhash{'gfdl-invariants'} = 1;
                     }
-- 
1.7.10.4


Reply to: