AutoProvidesAndRequiresFiltering (was Re: rpm.org 4.16.x is coming to Th)

Neal Gompa ngompa13 at gmail.com
Mon Jan 11 18:41:23 CET 2021


On Mon, Jan 11, 2021 at 12:34 PM Elan Ruusamäe <glen at pld-linux.org> wrote:
>
>
> On 11.01.2021 17:10, Neal Gompa wrote:
> > On Mon, Jan 11, 2021 at 10:09 AM Elan Ruusamäe <glen at pld-linux.org> wrote:
> >>
> >> On 11.01.2021 10:38, Jan Rękorajski wrote:
> >>> If you think there is still something that is blocking the change please
> >>> speak*now*.
> >> are these pld introduced noauto* macros and files supported in 4.16 build?
> >>
> >>
> >> %define         _noautoprovfiles        %{_libdir}/%{name}
> > No, you need to use the standard filtering mechanism:
> > https://docs.fedoraproject.org/en-US/packaging-guidelines/AutoProvidesAndRequiresFiltering/
>
> I've always thought, why provide/require SONAME dependencies of files that are not in default dl.so search path?
>
> like, why this (or equivalent) can't be the default:
>
> %global __provides_exclude_from ^%{_libdir}/.+/.+\\.so$
> %global __requires_exclude_from ^%{_libdir}/.+/.+\\.so$
>
> to exclude everything not a direct file in %{_libdir}[*].
>
> [*] might also need to support lib32dir and libx32dir for multiarch.
>

The main reason is that it's difficult to *add* paths to dynamically
search sanely, but it's possible to do what you're saying by changing
the fileattr definitions for elf dependencies to include a file path
restriction.


-- 
真実はいつも一つ!/ Always, there's only one truth!


More information about the pld-devel-en mailing list