🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1153794: lintian: warn that pure-python modules should normally be arch:all (not arch:any)

#4214
From: Stuart Prescott
Date: Thu, 12 Nov 2026 03:20
36 lines
2960 bytes
Package: lintian
Version: 2.143.0
Severity: wishlist
X-Debbugs-Cc: stuart@debian.org

Dear Maintainer,

I've spotted a reasonable number of Python module packages that are
specifying Architecture: any when they are pure Python modules i.e.
they do not contain any compiled extensions, such as
/usr/lib/python3/dist-packages/MODULE/SOMETHING.cpython-XYY-x86_64-linux-gnu.so

There is a small number of packages where the module includes something
about the host architecure in a config file or the package contains
other files that vary across architectures. The majority of pure Python
modules should be arch:all, regardless of any libraries that they use.

I filed a couple of bugs against individual packages for this the other
day... and then realised that this is widespread enough to (a) scope the
problem more and (b) have lintian systematically look for the problem.

The simplest heuristic for this would be:

- if there are no .so files in the package (anywhere) then it should
  be an arch:all package

  lintian's existing checks for arch-dependent files (such as used to
  evaluate /usr/share vs /usr/lib splits) could also be used to broaden
  the check.

(This information is unambiguously in the dist-info/WHEEL file in modern
packaging, but we are unfortunately stripping the WHEEL file and its
metadata from the .deb with dh-python)

Thanks!
Stuart
Technical Details
Message-ID: <NYtvX-blKt-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Stuart Prescott <stuart@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1153794: lintian: warn that pure-python modules should normally be arch:all (not arch:any)
Date: Thu, 12 Nov 2026 04:20:01 +0100
Message-ID: <NYtvX-blKt-1@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Thu Nov 12 03:19:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.9
Reply-To: Stuart Prescott <stuart@debian.org>, 1153794@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: stuart@debian.org, lintian-maint@debian.org
X-Debian-Pr-Message: report 1153794
X-Debian-Pr-Package: lintian
X-Debian-Pr-Source: lintian
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Mailer: reportbug 13.2.0
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002150
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 36
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 12 Nov 2026 14:17:57 +1100
X-Original-Message-ID: <179445347764.1450317.9501816546772604563.reportbug@trochilus.nanonanonano.net>