Re: Rawhide python-rpm-generators news: small speedup + %python_provide not needed in most cases

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07. 04. 20 12:27, Miro Hrončok wrote:
When you use %python_provide and when you build the package with the new generator, the provides are listed twice:

$ rpm -qp --provides python3-double-provides-0-0.fc33.noarch.rpm
python-double-provides = 0-0.fc33
python-double-provides = 0-0.fc33
python3-double-provides = 0-0.fc33
python38-double-provides = 0-0.fc33
python38-double-provides = 0-0.fc33

$ rpmlint python3-double-provides-0-0.fc33.noarch.rpm
...
python3-double-provides.noarch: E: useless-provides python-double-provides
python3-double-provides.noarch: E: useless-provides python38-double-provides
...

I've reported that as a bug in RPM:

https://github.com/rpm-software-management/rpm/issues/1166

Apparently, there is a good reason to not have those merged. People are notified of the uselessness of the manual one. I'll take that into account when amending the guidelines.

I recommend to remove the manual %python_provide calls for package names on rawhide+.

It is "safe" to keep them for "single-spec" experience: The problem does no harm, createrepo_c merges those provides at the end.

If you like to have a single spec and don't want the rpmlint error, you can wrap the call in %{?!__pythonname_provides: }.

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux