Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
genkernel does not have the python 13 tag
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
dalu
Guru
Guru


Joined: 20 Jan 2003
Posts: 535

PostPosted: Tue Apr 01, 2025 11:25 am    Post subject: genkernel does not have the python 13 tag Reply with quote

We're supposed to upgrade to Python 13, set it default, but genkernel doesn't have the Python 13 tag, blocking it all.
Not only is the half yearly upgrade super annoying and time and resource consuming,
when an essential package like genkernel isn't upgraded despite the news already being sent out..
it adds even more annoyance.

I see that https://bugs.gentoo.org/952740 exists.

Chop chop?
Back to top
View user's profile Send private message
eeckwrk99
Apprentice
Apprentice


Joined: 14 Mar 2021
Posts: 254
Location: Gentoo forums

PostPosted: Tue Apr 01, 2025 1:03 pm    Post subject: Reply with quote

Python 13 will become the default on 2025-05-01.
There's no need to force the switch right now. As you found out, genkernel isn't compatible with Python 3.13 so a bug was opened. Packages will eventually get the 3.13 target at some point around 2025-05-01 so you can just wait until then.

Plus, genkernel is unmaintained (also this). If you were using it just to generate an initramfs, you should switch to sys-kernel/ugrd or sys-kernel/dracut.

If you were using it to compile a kernel, the alternative is basically the dist kernel or manual compilation, as mentioned on the Wiki.


Last edited by eeckwrk99 on Tue Apr 01, 2025 4:03 pm; edited 2 times in total
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23330

PostPosted: Tue Apr 01, 2025 1:43 pm    Post subject: Re: genkernel does not have the python 13 tag Reply with quote

dalu wrote:
We're supposed to upgrade to Python 13, set it default, but genkernel doesn't have the Python 13 tag, blocking it all.
Not quite. The upgrade is coming, and you have the option of doing it early, if your installed packages are compatible. I don't use genkernel, so I could do the upgrade today.
dalu wrote:
Not only is the half yearly upgrade super annoying and time and resource consuming,
Yes, which is why we discourage people waiting that long between upgrades.
dalu wrote:
when an essential package like genkernel isn't upgraded despite the news already being sent out..
Genkernel is not essential.
dalu wrote:
I see that https://bugs.gentoo.org/952740 exists.
That says someone knows about the need.
dalu wrote:
Chop chop?
I do not speak for the treecleaners, but yes, this might be what gets genkernel chopped from the tree, if no one updates it. However, this upgrade might be as simple as adjusting the PYTHON_COMPAT to advertise support for the new version.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4733
Location: Germany

PostPosted: Wed Apr 02, 2025 12:52 pm    Post subject: Reply with quote

/etc/portage/package.use/python:
*/* PYTHON_TARGETS: -* python3_13
*/* PYTHON_SINGLE_TARGET: -* python3_13

sys-kernel/genkernel PYTHON_SINGLE_TARGET: -* python3_12
Code:
# emerge -avuDU @world genkernel

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 13.88 s (backtrack: 1/20).

[ebuild  N     ] sys-kernel/genkernel-4.3.16-r3::gentoo  USE="firmware systemd (-ibm)" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11" 181,509 KiB

Total: 1 package (1 new), Size of downloads: 181,509 KiB

Would you like to merge these packages? [Yes/No]
should work.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2110

PostPosted: Wed Apr 02, 2025 1:39 pm    Post subject: Reply with quote

The sad part is that genkernel is 99.9% bash.
Just one call is Python based because of Bug 412321 that expands paths. This is an os.path call (core to Python) and unlikely to change version to version. So, yes, it should be as simple as changing a number.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20605

PostPosted: Wed Apr 02, 2025 4:07 pm    Post subject: Reply with quote

grknight wrote:
The sad part is that genkernel is 99.9% bash.
Just one call is Python based because of Bug 412321 that expands paths. This is an os.path call (core to Python) and unlikely to change version to version. So, yes, it should be as simple as changing a number.
It seems to work. ebuild ... compile was successful (4.3.16-r2). I don't use it, so can't otherwise test it.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum