🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.rc
Article #2796

Bug#1153574: python3-fastchunking: Installs generic module 'lib' in shared namespace

#2796
From: Stuart Prescott
Date: Tue, 10 Nov 2026 07:10
50 lines
3869 bytes
Package: python3-fastchunking
Version: 0.0.3-5
Severity: serious
Justification: Breaks unrelated software
X-Debbugs-Cc: stuart@debian.org

Dear Maintainer,

The installation location for Python modules is a shared namespace
across all modules; everything ends up in /usr/lib/python3/dist-packages

Python modules should normally try to contain all their files within a
top-level namespace directory and need to not take generic names that
are likely to clash with other packages.

fastchunking ships the following files:

python3-fastchunking: /usr/lib/python3/dist-packages/fastchunking-0.0.3.egg-info/PKG-INFO
python3-fastchunking: /usr/lib/python3/dist-packages/fastchunking-0.0.3.egg-info/dependency_links.txt
python3-fastchunking: /usr/lib/python3/dist-packages/fastchunking-0.0.3.egg-info/requires.txt
python3-fastchunking: /usr/lib/python3/dist-packages/fastchunking-0.0.3.egg-info/top_level.txt
python3-fastchunking: /usr/lib/python3/dist-packages/fastchunking/__init__.py
python3-fastchunking: /usr/lib/python3/dist-packages/fastchunking/_rabinkarprh.cpython-314-x86_64-linux-gnu.so
python3-fastchunking: /usr/lib/python3/dist-packages/fastchunking/_rabinkarprh.cpython-315-x86_64-linux-gnu.so
python3-fastchunking: /usr/lib/python3/dist-packages/fastchunking/benchmark.py
python3-fastchunking: /usr/lib/python3/dist-packages/fastchunking/test.py

python3-fastchunking: /usr/lib/python3/dist-packages/lib/__init__.py
python3-fastchunking: /usr/lib/python3/dist-packages/lib/rabinkarp_gen.py

The first group is all good and sensible. The 'lib' module is not
acceptable in the shared namespace of dist-packages.

Looking at the contents of this directory, it appears to be the source
code and build machinery for the .so that is shipped by the module. In
that case, I suspect that it should not be included in the binary
package and it is mistakenly included into the Python distributable by
the following line in setup.py

    packages=['fastchunking', 'lib'],

Removing 'lib' from that list wouuld be enough to fix this.

By fixing it in setup.py (rather than trying to remove the directory
from d/rules after the build), the egg metadata in top_level.txt will
also only carry 'fastchunking' rather than also including 'lib' as it
currently does.

regards
Stuart
Technical Details
Message-ID: <NXO9r-aYb3-13@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Stuart Prescott <stuart@debian.org>
Newsgroups: linux.debian.bugs.rc
Subject: Bug#1153574: python3-fastchunking: Installs generic module 'lib' in shared namespace
Date: Tue, 10 Nov 2026 08:10:01 +0100
Message-ID: <NXO9r-aYb3-13@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org  Tue Nov 10 07:01:10 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.9
Reply-To: Stuart Prescott <stuart@debian.org>, 1153574@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: stuart@debian.org, team+python@tracker.debian.org
X-Debian-Pr-Message: report 1153574
X-Debian-Pr-Package: python3-fastchunking
X-Debian-Pr-Source: fastchunking
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-rc@lists.debian.org> archive/latest/837763
List-ID: <debian-bugs-rc.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-rc/>
Approved: robomod@news.nic.it
Lines: 50
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Tue, 10 Nov 2026 18:00:00 +1100
X-Original-Message-ID: <179429400081.1028383.13260741036253409294.reportbug@trochilus.nanonanonano.net>