Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953558 - dev-python/wxpython-4.2.3: merges extensions from previous Python implementations into subsequent builds
Summary: dev-python/wxpython-4.2.3: merges extensions from previous Python implementat...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-11 19:29 UTC by Michał Górny
Modified: 2025-04-16 00:54 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2025-04-11 19:29:13 UTC
/usr/lib/python3.13/site-packages/wx/svg/_nanosvg.cpython-313-x86_64-linux-gnu.so
/usr/lib/python3.13/site-packages/wx/svg/_nanosvg.cpython-312-x86_64-linux-gnu.so
/usr/lib/python3.13/site-packages/wx/svg/_nanosvg.cpython-311-x86_64-linux-gnu.so
/usr/lib/python3.13/site-packages/wx/svg/_nanosvg.cpython-310-x86_64-linux-gnu.so

and so on.  We probably should add a QA check for that too.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-04-11 21:00:36 UTC
Maybe a regression from the PEP517 port:

commit 15b4e232d105a18c46a4f394b603ce491652bb06
Author: Quincy Fleming <quincyf467@protonmail.com>
Date:   Wed Feb 26 18:01:05 2025 +0000

    dev-python/wxpython: add 4.2.2

    Bug: https://bugs.gentoo.org/923418
    Bug: https://bugs.gentoo.org/924057
    Closes: https://bugs.gentoo.org/909973
    Signed-off-by: Quincy Fleming <quincyf467@protonmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/39465
    Signed-off-by: Sam James <sam@gentoo.org>

Or is this only in 4.2.3?
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2025-04-13 14:29:53 UTC
Okay, so this is hopeless.  Upstream is calling waf to build the extensions, then copy them back to source tree, so that setuptools would pick them up.
Comment 3 Larry the Git Cow gentoo-dev 2025-04-13 15:22:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56081f6227c4e7642dfd3d1448a3f1c663d18db5

commit 56081f6227c4e7642dfd3d1448a3f1c663d18db5
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2025-04-13 14:31:37 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2025-04-13 15:21:59 +0000

    dev-python/wxpython: Clean extensions between implementations
    
    Clean extensions after installing each wheel to avoid them leaking
    into the subsequent builds.
    
    Closes: https://bugs.gentoo.org/953558
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 .../wxpython/{wxpython-4.2.3.ebuild => wxpython-4.2.3-r1.ebuild}  | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
Comment 4 Larry the Git Cow gentoo-dev 2025-04-16 00:54:40 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f91d60f3961bc3a5f69dd629db9c299d5429f9ce

commit f91d60f3961bc3a5f69dd629db9c299d5429f9ce
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2025-04-13 14:24:21 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2025-04-16 00:54:30 +0000

    metadata/install-qa-check.d: Check for Python exts for wrong impl
    
    Add a QA check for Python extensions that were compiled for the wrong
    implementation.  This is particularly a case when build is not properly
    isolated and extensions built for earlier Python versions end up
    being included in the subsequent installs.
    
    Bug: https://bugs.gentoo.org/953558
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 metadata/install-qa-check.d/60python-site | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)