-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Libalternatives support #115
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have any demo packages where this works?
flavor.in
Outdated
print(rpm.expand("%ghost %{_datadir}/libalternatives/" .. name .. "/%python_version_nodots.conf\\\n")) \ | ||
print(rpm.expand("%ghost %{_datadir}/libalternatives/" .. name .. "/10%python_version_nodots.conf\\\n")) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not look right. It's either one or the other, but not both files for any flavor. Have a look at the prio
variable in python_install_alternative
.
Also, the Python 3.10 flavor, once it is primary (not that soon I guess), it will have a prio of 1310, not 10310.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least it is not really nice :-) I have fixed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally I don't see any serious problems, aside from what Ben noticed.
If you want I can continue with the other packages and after I have converted and tested them we are quite sure that it is working and can merge the PR after it. |
I have changed and tested all mentioned packages without a problem. Could we please finish this PR in order to submit all these packages ? |
Where is the obs repo demonstrating it? home:schubi2 does not have your modified python-rpm-macros and none of the above packages' specfiles look like they already fully use the macros. |
I have pushed all my changes to home:schubi2. |
Okay, I see. The service file and the version 20210929.eccf3f2 are not correct, you modified the files manually. Still not in the state of the current PR. You could adjust your _service to fetch from your PR branch.
rpmlint is not happy:
same
Why does the 15.3 build fail? It does not fail in d:l:p. |
You have to either adjust rpmlint or not install any update-alternatives call into |
@schubi2 Thank you very much and please submit the request to Factory from the current master. |
Thank you ! But I will also have a look to the rpm-lint. Perhaps we can make it nicer there :-) |
Please have a look to the README.md how the patch supports the new libalternatives too.