On Wed, 22 Oct 2008 23:28:19 +0100, Jonathan Underwood wrote:
> 2008/10/22 seth vidal <skvidal(a)fedoraproject.org>:
> > Here is a list of pkgs and their requirement that they also provide.
> >
> >
http://skvidal.fedorapeople.org/misc/provides-what-required-rawhide.txt
> >
> > Now, it would be handy if rpm filtered these out automagically at build
> > time, and that's something to think about. If you notice if any of your
> > packages do something like this manually, please stop it.
> >
> >
>
> Um, how to stop it? - most of those Provides are automatically
> generated by rpm. I know there is some messy instructions on how to
> filter those for perl packages in the guidelines, but it seems more
> widespread than perl packages...
Don't misunderstand Seth's list. The Provides are necessary and must not
be stripped, because external packages may require them. The Requires
in a pkg could be stripped if it's the same pkg that Provides the
needed things.
The "thunderbird" pkg contains a "find-external-requires" script
which
does the thing that's proposed here. It ought to be rpmbuild, though,
that does this for all pkgs.
Yes - if the pkg provides something it requires then the requires can be
removed.
A simple addition to the rpmbuild process to remove these items from the
requires wouldn't hurt.
-sv