Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 891975 - sys-apps/kmod has no python-3.11 support
Summary: sys-apps/kmod has no python-3.11 support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-01-24 21:19 UTC by Andrés Becerra Sandoval
Modified: 2023-02-03 19:12 UTC (History)
0 users

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 Andrés Becerra Sandoval 2023-01-24 21:19:11 UTC
sys-apps/kmod has no python-3.11 support
Comment 1 Klemen Mihevc 2023-02-03 13:44:40 UTC
Seems to be last package to not have it for me and prevents me from switching (and no i dont want to run multiple pythons) since samba got python 3.11 support, question is, is it actual compatibility issue or just "not officially supported". For testing purposes, there should really be some sort of easy python compatibility override flag from make.conf or portage bashrc "hack", so we can easily upgrade to new python version, without creating local ebuilds...
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-03 13:49:07 UTC
(In reply to Klemen Mihevc from comment #1)
> Seems to be last package to not have it for me and prevents me from
> switching (and no i dont want to run multiple pythons) since samba got
> python 3.11 support, question is, is it actual compatibility issue or just
> "not officially supported". For testing purposes, there should really be
> some sort of easy python compatibility override flag from make.conf or
> portage bashrc "hack", so we can easily upgrade to new python version,
> without creating local ebuilds...

There is: PYTHON_COMPAT_OVERRIDE.

For kmod, it's just because nobody's tested it yet.
Comment 3 Andrés Becerra Sandoval 2023-02-03 17:39:20 UTC
For testing, with python-3.11 I can do:

lsmod 
Module                  Size  Used by
btusb                  45056  0
btintel                32768  1 btusb
pkcs8_key_parser       16384  0


modinfo  pkcs8_key_parser
filename:       /lib/modules/6.1.9-gentoo-x86_64/kernel/crypto/asymmetric_keys/pkcs8_key_parser.ko
license:        GPL
description:    PKCS#8 certificate parser
depends:        
retpoline:      Y
intree:         Y
name:           pkcs8_key_parser
vermagic:       6.1.9-gentoo-x86_64 SMP preempt mod_unload modversions
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-03 17:48:32 UTC
If someone could figure out something that uses kmod's Python bindings and test that, it'd be great.
Comment 5 Andrés Becerra Sandoval 2023-02-03 18:40:39 UTC

(In reply to Sam James from comment #4)
> If someone could figure out something that uses kmod's Python bindings and
> test that, it'd be great.

Sam, from:
https://github.com/agrover/python-kmod
I do the following:
wget https://codeload.github.com/agrover/python-kmod/tar.gz/refs/tags/v0.9.1 -O python-kmod-0.9.1.tar.gz

tar zxvf python-kmod-0.9.1.tar.gz
cd python-kmod-0.9.1/
python setup.py build
cd build/
cd lib.linux-x86_64-cpython-311/
python

import kmod
>>> km = kmod.Kmod()
>>> [(m.name, m.size) for m in km.loaded()]
[('btusb', 45056), ('btintel', 32768), ('pkcs8_key_parser', 16384)]
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-03 19:12:23 UTC
Thank you! 

https://bugs.gentoo.org/408915#c4