Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 957140 - sys-apps/apparmor-utils-4.0.3 need patch using python 3.13 to fix: ModuleNotFoundError: No module named 'cgitb'
Summary: sys-apps/apparmor-utils-4.0.3 need patch using python 3.13 to fix: ModuleNotF...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: The Gentoo Linux Hardened Team
URL: https://gitlab.com/apparmor/apparmor/...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2025-06-04 19:42 UTC by grm1
Modified: 2025-06-08 23:00 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 grm1 2025-06-04 19:42:46 UTC
Running any of apparmor-utils: aa-logprof or aa-genprof output error:
ModuleNotFoundError: No module named 'cgitb'

Patch fix upstream: GITLAB (i'm unable to POST URLS) upstream apparmor/apparmor/-/merge_requests/1439/diffs?commit_id=434e34bb510b4cab04e64cd5b21d635c6be8c8ea



Reproducible: Always




The patch is needed to be running any of apparmor-utils applications on gentoo right now.
Comment 1 grm1 2025-06-04 19:45:07 UTC
url of patch is https : // gitlab . com /apparmor/apparmor/-/merge_requests/1439/diffs?commit_id=434e34bb510b4cab04e64cd5b21d635c6be8c8ea
Comment 2 gen2dev 2025-06-06 17:04:23 UTC
Yeah, apparmor 4.0.3 still doesn't work with python 3.13 but the ebuild says it does. 4.1 is the first upstream release with the fix.

I reported that in the existing apparmor porting bug 952709 when the maintainer added the 3.13 compat to the ebuild but that bug was already closed and hasn't been reopened, so maybe a new bug is in order.
Comment 3 Larry the Git Cow gentoo-dev 2025-06-08 09:34:51 UTC
The bug has been closed via the following commit(s):

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

commit 0a8d6d0fd44c16e1bf46b35a9019ce6a3a3c17cb
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-06-08 09:33:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-06-08 09:34:21 +0000

    sys-apps/apparmor-utils: drop py3.13
    
    It doesn't work with <4.1.
    
    Bug: https://bugs.gentoo.org/952709
    Closes: https://bugs.gentoo.org/957140
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/apparmor-utils/apparmor-utils-3.1.4-r1.ebuild | 4 ++--
 sys-apps/apparmor-utils/apparmor-utils-4.0.3.ebuild    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

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

commit da122fd54debb9c00b323c1b1c22038921425e50
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-06-08 09:33:16 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-06-08 09:34:20 +0000

    sys-libs/libapparmor: drop py3.13
    
    It doesn't work with <4.1.
    
    Bug: https://bugs.gentoo.org/952709
    Closes: https://bugs.gentoo.org/957140
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-libs/libapparmor/libapparmor-3.1.4-r2.ebuild | 2 +-
 sys-libs/libapparmor/libapparmor-4.0.3.ebuild    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 4 Larry the Git Cow gentoo-dev 2025-06-08 10:28:30 UTC
The bug has been closed via the following commit(s):

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

commit 718e6b711ac1ed3e0d5c12e466d0c19364f108f2
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-06-08 10:27:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-06-08 10:27:59 +0000

    sys-apps/apparmor-utils: fix py3.13 compat
    
    Closes: https://bugs.gentoo.org/957140
    Bug: https://bugs.gentoo.org/952709
    Signed-off-by: Sam James <sam@gentoo.org>

 ...4.0.3.ebuild => apparmor-utils-4.0.3-r1.ebuild} |  1 +
 .../files/apparmor-utils-4.0.3-py3.13.patch        | 75 ++++++++++++++++++++++
 2 files changed, 76 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2025-06-08 23:00:28 UTC
The bug has been referenced in the following commit(s):

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

commit 9ec4f94a9ece73eef0839f4893ae99428b18e754
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-06-08 22:59:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-06-08 22:59:41 +0000

    sys-apps/apparmor-utils: enable py3.13
    
    I added the patch in 718e6b711ac1ed3e0d5c12e466d0c19364f108f2 but forgot
    to change PYTHON_COMPAT back again.
    
    Bug: https://bugs.gentoo.org/952709
    Bug: https://bugs.gentoo.org/957140
    Reported-by: thican
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/apparmor-utils/apparmor-utils-4.0.3-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)