Red Hat Bugzilla – Bug 502402
RFE: please deliver (and use!) filtering macros
Last modified: 2009-10-06 06:07:02 EDT
Created attachment 345264 [details]
arch-specific perl-* packages often have library provides picked up and exposed vi rpm's autoprov system, where it shouldn't; that is, these provides are useless, not in the system lib path, and will never be used for proper perl dependency resolution. e.g. perl-YAML-Syck.i386 provides Syck.so(), mod_perl provides a slew of them, etc.
These macros will allow us to sensibly filter useless provides out:
The core perl package should deliver /etc/rpm/macros.perl, as above, and employ them to clean up its errant provides. I've attached a patch that does that, as well as the additional %SOURCEs needed; a scratch build of the modifications has been run.
Created attachment 345265 [details]
macro file for /etc/rpm
Created attachment 345266 [details]
localized macros; %included by perl.spec
Looks like the FPC and FESCo just approved
https://fedoraproject.org/wiki/PackagingDrafts/AutoProvidesAndRequiresFiltering, so we can start thinking about delivering a Perl-specific one under /etc/rpm/macros.perl:
It's just a sensible default for perl-* packages, preventing private solib provides from showing up, as well as anything that may crop up under %_docdir. Implemented as a single macro like this will enable us to use it as:
...which will help prevent srpm breakage on other releases/distros that may not have these macros present. Note that the %perl_default_filter is defined such that if the filtering macros aren't present on the system, the build will not fail.
perl-5.10.0-82.fc11 has been submitted as an update for Fedora 11.
perl-5.10.0-82.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.