Re: Packages needlessly use __provides_exclude_from on python sitearch

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

 



On 16. 07. 18 9:54, Miro Hrončok wrote:
On 16.7.2018 08:13, Mattias Ellert wrote:
tor 2018-07-12 klockan 18:34 +0200 skrev Miro Hrončok:
There are 56 packages that use something like this:

%global __provides_exclude_from ^(%{python_sitearch}/.*\\.so)$
%global __provides_exclude_from ^(%{python2_sitearch}/.*\\.so)$
%global __provides_exclude_from ^(%{python3_sitearch}/.*\\.so)$
%global __provides_exclude_from
^(%{python2_sitearch}|%{python3_sitearch})/.*\\.so$
...

and 68 like this:

%filter_provides_in %{python_sitearch}/whatnot/.*\.so$
%filter_provides_in %{python2_sitearch}/.*\.so$
%filter_provides_in %{python2_sitearch}/.*\.so$ %{python3_sitearch}/.*\.so$
...

The full list can be obtained by:

$ rg '(filter_provides_in|__provides_exclude_from).*python'

This is not needed in Fedora and EPEL7. It is needed in EPEL6 only, but
EPEL6 doesn't have __provides_exclude_from.

I intent to mass change the 56 packages to remove it.
I'll keep the %filter_provides_in ones, because people might have it for
el6 compatibility.

This is not strictly true. If the name of the .so file in sitearch
starts with "lib" auto provides are generated for it, and if this is
not intended it must be added to __provides_exclude_from.

This is the case for the "root" package on your list. This package on
purpose (and as stated in the comment in the spec file) filters out the
provides from one of the .so files in sitearch but not the other, in
order to only get provides for one of them.

Thank You! I'll investigate more before taking any action.


After couple years, I opened:

RFE: elfdeps: Filter Python subdirectories
https://github.com/rpm-software-management/rpm/issues/1227

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-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/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux