Re: private-shared-object-provides in python packages

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

 



On Sun, Sep 26, 2010 at 07:33:40PM +0530, Parag N(àààà) wrote:
>> Â ÂDo .so files installed in %{python_sitearch} MUST be filtered? I
>> see one reference at
>> https://fedoraproject.org/wiki/Common_Rpmlint_issues#private-shared-object-provides
>> but the filtering policy is not added to Python packaging guidelines.
>> Â ÂAlso, why rpmlint complains it as warning and not an error? e.g.
>> one case I see is
>> pyorbit.x86_64: W: private-shared-object-provides
>> /usr/lib64/python2.6/site-packages/ORBit.so ORBit.so()(64bit)
>> A shared object soname provides is provided by a file in a path from which
>> other packages should not directly load shared objects from. ÂSuch shared
>> objects should thus not be depended on and they should not result in provides
>> in the containing package. ÂGet rid of the provides if appropriate, for
>> example by filtering it out during build. ÂNote that in some cases this may
>> require disabling rpmbuild's internal dependency generator.
>>
I talked with spot and then went through old meeting logs and found that
this was approved. on July 28, 2009.  I've added the logs from that meeting
here:
https://fedoraproject.org/wiki/Packaging:Minutes/20090728

Here's the Guidelines page that resulted from that meeting:
https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering

Note that although we would like to filter out all of the unnecessary stuff,
there are some packages where we shouldn't because of rpm limitations:
https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering#Usage

The way to filter this out is probably something like this:
# we don't want to provide private python extension libs
%filter_provides_in %{python_sitearch}/.*\.so$ 
# actually set up the filtering
%filter_setup

I've linked that page to the Packaging:Python page and also to the rpmlint
page.

I also found that the Packaging:Perl page was recommending a different
recipe so I've put in a ticket to change those to the new macros:
  https://fedorahosted.org/fpc/ticket/16

-Toshio

Attachment: pgp1tXDGCGvFX.pgp
Description: PGP signature

--
packaging mailing list
packaging@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/packaging

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

  Powered by Linux