View previous topic :: View next topic |
Author |
Message |
setan Tux's lil' helper
Joined: 21 Feb 2024 Posts: 86
|
Posted: Tue May 28, 2024 8:01 am Post subject: Versions of dependencies in ebuilds |
|
|
Hello,
I am writing an ebuild for new Nicotine+ version.
I have searched the release notes and checked the minimal versions of dependencies and a pair of questions arose:
1. If minimal python version is 6, then should PYTHON_COMPAT be 6..12, or is it some gentoo policy to keep just three versions?
2. what is [introspection] version here?
x11-libs/gtk+:3[introspection]
I have found the version that newest release needs. Should I replace introspection with it? |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2418
|
Posted: Tue May 28, 2024 10:40 am Post subject: Re: Versions of dependencies in ebuilds |
|
|
setan wrote: | Hello,
I am writing an ebuild for new Nicotine+ version.
I have searched the release notes and checked the minimal versions of dependencies and a pair of questions arose:
1. If minimal python version is 6, then should PYTHON_COMPAT be 6..12, or is it some gentoo policy to keep just three versions? |
Minimum python version is 3.6, not 6, you're cover here, 3.12 is already available for Gentoo. There's no python 6. Also, there already is a nicotine+ ebuild available in the main tree. You should be able to just copy and version bump it in your local repo. Version bump means you just rename the file to contain the new version.
EDIT: just tested it, it compiled fine.
setan wrote: | 2. what is [introspection] version here?
x11-libs/gtk+:3[introspection]
I have found the version that newest release needs. Should I replace introspection with it? |
That means gtk+ needs to have introspection use flag enabled.
Best Regards,
Georgi |
|
Back to top |
|
|
setan Tux's lil' helper
Joined: 21 Feb 2024 Posts: 86
|
Posted: Tue May 28, 2024 12:09 pm Post subject: |
|
|
Georgi,
let me start by clarifying that I am writing an ebuild based on what is already available.
The ebuild in the repo is old and I want to upgrade it.
You are right about the Python version, I spelled it wrong.
What I wanted to ask about Python is if for the new ebuild I should stick to the current 10..13 versions, or to go with upstream's 6..13.
Do you know if we have a policy on it? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54577 Location: 56N 3W
|
Posted: Tue May 28, 2024 1:42 pm Post subject: |
|
|
setan,
Stable python is :3.10. Older versions are masked or removed, so there is no useful purpose in permitting python 3.9 and older.
If you permit python 3.13 you may hit bugs due to python 3.13 being immature. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2418
|
Posted: Tue May 28, 2024 1:54 pm Post subject: |
|
|
setan wrote: |
Do you know if we have a policy on it? |
I don't know. Objectively speaking, the earliest we have in tree is 3.8 and it doesn't seem to be masked or anything. I would go with it, it's covered by the minimum requirements, in the same time there aren't many people who still run older versions of python an a well maintained installation, if any at all. Also you're doing it for personal use so it doesn't matter really, for as long as it works.
Best Regards,
Georgi |
|
Back to top |
|
|
eschwartz Developer
Joined: 29 Oct 2023 Posts: 220
|
Posted: Thu Jun 06, 2024 3:32 pm Post subject: |
|
|
Specifying versions older than 3.10 in your PYTHON_COMPAT is ignored by the python eclass. You can list it if you want but it does nothing.
This is actually a good thing since Gentoo doesn't support dependencies for 3.6 either, so if you actually did support 3.6 in your ebuild then it wouldn't be able to resolve dependencies for 3.6
Older python versions are kept around and freely available for use as an *interpreter*, not as a target for building other packages with. This is helpful e.g. to python developers that want to use python 3.8 with virtualenvs and in tox or other testing tools for their own projects that still support Ubuntu Bionic.
I'm one of those python developers so it's very nice that Gentoo does this. |
|
Back to top |
|
|
|