🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #778

Bug#1031878: --fail-on warnings fails overrides even though --fail-on overrides is not specified

#778
From: Noah Meyerhans
Date: Tue, 13 Oct 2026 19:30
59 lines
4669 bytes
Control: tags -1 + patch

On Thu, Aug 17, 2023 at 01:13:05PM +0200, Philipp Huebner wrote:
> What was strange though: some packages hit this bug, others did not.
> 
> Turns out it is related to "automatic" overrides being present or not.
> A python package of mine had automatic overrides for
> "package-contains-documentation-outside-usr-share-doc
> [usr/lib/python3/dist-packages/PackageName-Version.egg-info*]"
> 
> The --show-overrides option (hitting #1019690 here) said:
> "N: masked by screen python/egg/metadata"
> 
> After adding explicit overrides in the package the --fail-on function worked
> correctly again and I got exit code 0 instead of 2.

So the issue is that these "automatic" overrides aren't actually
overrides internally, but "masks".  Lintian's default EWI output treats
masked and overridden tags similarly, in terms of display priority, but
does not treat them the same when it comes to the fail-on parameter.

The following patch changes lintian to treat masks like overrides when
counting reported tags.  With this patch applied, tags that are masked
internally no longer count as reported, so they don't trigger "fail-on"
for different severities.  Note that it specifically does *not* trigger
'--fail-on override'.  That would be easy to implement, but I don't
think it's the right thing to do, as a masked tag is not really under a
package maintainer's control and doesn't indicate anything that they've
specifically enabled in their package.

This is a slight change in behavior, but I think it's a reasonable one.
The existence of this bug highlights how confusing the current behavior
can be.

From dca99e1438ef25518bbb440ceb2e7c540f5a14b1 Mon Sep 17 00:00:00 2001
From: Noah Meyerhans <noahm@debian.org>
Date: Tue, 13 Oct 2026 14:35:48 -0400
Subject: [PATCH] don't count masked tags as reported

Closes: #1031878
---
 lib/Lintian/Pool.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Lintian/Pool.pm b/lib/Lintian/Pool.pm
index db153f989..f7c0157b7 100644
--- a/lib/Lintian/Pool.pm
+++ b/lib/Lintian/Pool.pm
@@ -191,7 +191,7 @@ sub process{
                 next
                   unless $PROFILE->display_level_for_tag($hint->tag_name);
 
-                if (!defined $hint->override) {
+                if (!defined $hint->override && !@{$hint->masks}) {
 
                     ++$reported_count{$tag->visibility}
                       if !$tag->experimental;
-- 
2.47.3
Technical Details
Message-ID: <NNQmd-5jYd-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <G2IXD-8cp6-5@gated-at.bofh.it> <G2IXD-8cp6-5@gated-at.bofh.it> <G2IXD-8cp6-5@gated-at.bofh.it> <H3Jmq-2u59-5@gated-at.bofh.it> <G2IXD-8cp6-5@gated-at.bofh.it> <H3Jmq-2u59-5@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Noah Meyerhans <noahm@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1031878: --fail-on warnings fails overrides even though --fail-on overrides is not specified
Date: Tue, 13 Oct 2026 21:30:01 +0200
Message-ID: <NNQmd-5jYd-1@gated-at.bofh.it>
References: <G2IXD-8cp6-5@gated-at.bofh.it> <G2IXD-8cp6-5@gated-at.bofh.it> <G2IXD-8cp6-5@gated-at.bofh.it> <H3Jmq-2u59-5@gated-at.bofh.it> <G2IXD-8cp6-5@gated-at.bofh.it> <H3Jmq-2u59-5@gated-at.bofh.it>
X-Original-To: Philipp Huebner <debalance@debian.org>, 1031878@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Tue Oct 13 19:25:46 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Noah Meyerhans <noahm@debian.org>, 1031878@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: lintian-maint@debian.org
X-Debian-Pr-Message: followup 1031878
X-Debian-Pr-Package: lintian
X-Debian-Pr-Keywords: confirmed
X-Debian-Pr-Source: lintian
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Debian-User: noahm
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1996674
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 59
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Tue, 13 Oct 2026 15:06:50 -0400
X-Original-Message-ID: <as6BSsBWRfRPCBWp@doom.morgul.net>
X-Original-References: <4145f3c1-bc94-0ffa-df88-bae2b8be6dbe@rocksolidsolutions.org> <4145f3c1-bc94-0ffa-df88-bae2b8be6dbe@rocksolidsolutions.org> <4145f3c1-bc94-0ffa-df88-bae2b8be6dbe@rocksolidsolutions.org> <e8c07ffd-a01b-aa7d-1843-3a2e5de610b3@debian.org> <4145f3c1-bc94-0ffa-df88-bae2b8be6dbe@rocksolidsolutions.org> <e8c07ffd-a01b-aa7d-1843-3a2e5de610b3@debian.org>