Path: csiph.com!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Soren Stoutner Newsgroups: linux.debian.maint.python Subject: Question regarding binaries in /usr/lib/python3/dist-packages/ Date: Thu, 23 Apr 2026 20:30:01 +0200 Message-ID: X-Original-To: Debian Python X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Apr 23 18:22:46 2026 Old-Return-Path: X-Amavis-Spam-Status: No, score=-114.41 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_MED=-2.3, UNPARSEABLE_RELAY=0.001, USER_IN_DKIM_WELCOMELIST=-0.01, USER_IN_DKIM_WHITELIST=-100] autolearn=ham autolearn_force=no Organization: Debian Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEWIg4F7bGiws7ReTkyy kYoXFRrd6/4yMA0PAAACaklEQVQ4y22TwXabMBBFJaPuNZGSNZZp1uhM6BpkJeu4VFk3bsL/f0Lf CHC6qHyOgbl68zTDoIwaVfh3tUopTUGpbFToDiFnY9IY2oMAZYMiS4R9SfbSXepSS5EcFAa/muIU aRj8mkoUqrEraFzhYegBmqig0LyCIyM8DAwPlpBqmJVYaD2UeWZ3abVjsqKIojg+hY4omsyIcNSi qIBM6jJWOveS6kvBeVvHJ+VYzJUW88RmA12UiBx3HEcUMRuzIZI6tBQovTrPclNB3AuUXoXvs0XY C3B2baJpW4Dn2ZpVMInCirkxoyhM1qpK5nFrO65QvCrCqql2DyPgvm94iMQz5/PmISuEotxQGMD5 M5G1N9CjXJ5HQH96BZG2xx6AzejYZccxT4Re3Zr4bPKkCcGcz5Or3dVEABkAUY/znnVcQVVkrXVU vomoEJFe7x4nQuaZmZELL6qnXZGIB5YV/Q2IogtSmyNybEcBX2+QCLOAQYm+gmoORUrYzV7dc6R2 T1WPm45oVEQqsjtoIovHyTmcyxMhVVxTqapomZyLlAmTKC9AmjgamXXGZo+epNrXO3wGGiPRHbKL FnMy2RRgRb1gzFXXGjhICp8wqaTtdtyQH6nWTfkatJvJJoUCbOjSC7wR9/naEVognxrOFdLh7Ugx QpA/0QT4pRV0+u2dqsXD5y9EBDjVAJS3ZZLxmZblgmsU8x7mBeCKg48Py7WU2IiH1epbEbC8K9Ms y0cpcySVUcdQVrBY+rEsv+XpYgFKXT8B3v2yATxv8fKK2EfC358tsIMLYqfD401xA0j1EY4P/wWf IbhlOWyBv4OQsywBM8MAAAAAAElFTkSuQmCC MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart149914994.Wml5K2mHLk"; micalg="pgp-sha512"; protocol="application/pgp-signature" X-Debian-User: soren X-Mailing-List: archive/latest/23748 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/6743094.KJgs85P2H9@soren-desktop Approved: robomod@news.nic.it Lines: 94 Sender: robomod@news.nic.it X-Original-Date: Thu, 23 Apr 2026 11:09:57 -0700 X-Original-Message-ID: <6743094.KJgs85P2H9@soren-desktop> Xref: csiph.com linux.debian.maint.python:17471 --nextPart149914994.Wml5K2mHLk Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Soren Stoutner To: Debian Python Date: Thu, 23 Apr 2026 11:09:57 -0700 Message-ID: <6743094.KJgs85P2H9@soren-desktop> Organization: Debian MIME-Version: 1.0 Pyinstaller ships two executables in /usr/lib/python3/dist-packages/. There is an experimental tag that suggests these should be moved to /usr/libexec/. X: python3-pyinstaller: executable-in-usr-lib [usr/lib/python3/dist-packages/ PyInstaller/bootloader/Linux-64bit-intel/run] N: N: The package ships an executable file in /usr/lib. N: N: Please move the file to /usr/libexec. N: N: With policy revision 4.1.5, Debian adopted the Filesystem Hierarchy Specification (FHS) version 3.0. N: N: The FHS 3.0 describes /usr/libexec. Please use that location for executables. N: N: Please refer to File System Structure (Section 9.1.1) in the Debian Policy Manual, filesystem-hierarchy, https://refspecs.linuxfoundation.org/ FHS_3.0/fhs/ch04s07.html, and Bug#954149 for details. N: N: Visibility: pedantic N: Show-Always: no N: Check: files/permissions/usr-lib N: This tag is experimental. N: N: Screen: emacs/elpa/scripts N: Advocates: "David Bremner" N: Reason: The emacsen-common package places installation and removal scripts, which for ELPA packages are executable, in the folder /usr/lib/ emacsen-common/packages. N: N: About four hundred installation packages are affected. All of them declare emacsen-common as an installation prerequisite. N: N: Read more in Bug#974175 and Bug#954149. N: N: Screen: web/cgi/scripts N: Advocates: "Andrius Merkys" N: Reason: The folder /usr/lib/cgi-bin/ is designated for scripts in the Common Gateway Interface (CGI). They require the executable bit so the server can run them. N: N: Read more in https://en.wikipedia.org/wiki/ Common_Gateway_Interface, https://datatracker.ietf.org/doc/html/rfc3875.html, and Bug#1003941. N: N: X: python3-pyinstaller: executable-in-usr-lib [usr/lib/python3/dist-packages/ PyInstaller/bootloader/Linux-64bit-intel/run_d] I do not know how easy it would be to relocate these files. Before reaching out to the Pyinstaller upstream to see of what it would take to relocate these files, I wanted to ask the Debian Python Team how this is generally handled with Python packages. Are executables typically relocated to /usr/libexec/? If so, does this require much modification of the upstream code to locate them? Or is it generally considered wiser to just leave the executables in / usr/lib/ and ignore these lintian tags? -- Soren Stoutner soren@debian.org --nextPart149914994.Wml5K2mHLk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEJKVN2yNUZnlcqOI+wufLJ66wtgMFAmnqYHYACgkQwufLJ66w tgPMQRAAhxExbwl+kTOlPw7bypD4xiVShNjMSt7zlaZyitnEaVoDt72Y5iOQDYbS AnwCmhZ9498LYpPl3MM0rAW61A2iHh5zvMREpjlwFIjR8RV/UxHBXWolCBuD2u1R le95n5ARHWhA52/jJSYBTz3PXcsLXn/uruwHbSkdtosRztQ+qIv568QOZu7DvhVZ l6REtvSu9lRlcR2yNWcGqvXAkwWsq9deFVywUjmpNy1jmzKsIaYpbSXjVhpopR8o eogrRMIFfSayQfoYmTHZ7YNSMy/9WndYBeP5EplTMIhGt53xCTeOK5+G+PUBGpgY Bne2Kndro3gpM2SOQY5zy5qxWVvuuSU8hTDmHglblXnyYv6/4QO4F3iZdpGdSSBt ilPP2Lig4LxotB5uLuSD6g2bgQ6SV0YXuMqWPLTUxEOt2iSpAr+ptJx7+uaZEe6n HE7b9wAOt9jbQFeuMxvHu6JheiDqa00j/nBilndqengq8JVK4vIaQJy9b2oXGIqp TgqJOvCNgh/CHy/b8bIkNjuVyyp3hXTJPYY9V0boxtK84tVdlNs+DydZOHrTpHa4 SxLa/cBODF94f1wSqHWCjz2JbYF3HS67v58w738MrUKriYx73PqueCEJQnJ4EXw8 lbQiNyRzCFmQhf8CimVJF5yudb4F5uq90uFxL9gX9bcXweWA3ts= =U67L -----END PGP SIGNATURE----- --nextPart149914994.Wml5K2mHLk--