F-15 Branched report: 20110310 changes

José Matos jamatos at fc.up.pt
Sat Mar 12 23:43:55 UTC 2011

On Friday 11 March 2011 01:25:50 Branched Report wrote:
> mhonarc-2.6.16-8.fc15.noarch requires perl(readmail.pl)

I have been trying to get rid of this problem and after more than six hours 
with no results it is time to quit and ask for help. :-)

The problem here is with the auto_requires filters.

The code that was there before was:

-# Filter out unwanted requires
-cat << EOF > %{name}-req
-%{__perl_requires} $* |\
-sed -e '/perl(.*\.pl)/d'
-%global __perl_requires %{_builddir}/MHonArc-%{version}/%{name}-req
-chmod +x %{__perl_requires}

The code did not work because the package requires:


These are bogus, or at least I think so. So I tried to prevent the 
auto_requires filter from adding them with:

%filter_from_provides /perl(.*\.pl)/d

Just as the wiki suggests.

Building the package locally I see:
Finding  Provides: /bin/sh -c " /bin/grep -v  '/usr/lib64/perl5/.*\.so$' | 
/bin/grep -v -P '/usr/lib64/perl5/(?!CORE/libperl).*\.so$' | /bin/grep -v  
'/usr/share/doc' | while read FILE; do /usr/lib/rpm/rpmdeps -P ${FILE}; done | 
/bin/sort -u  | /bin/sed -e '/perl(.*\.pl)/d' | /bin/sed -e 
'/perl(UNIVERSAL)/d; /perl(DB)/d'"

All is nice and dandy and yet:

$ rpm -qp --requires mhonarc-2.6.18-2.fc16.noarch.rpm | grep 'perl(.*\.pl)'

Argh... :-(

Any help is appreciated, thank you.
José Abílio

More information about the test mailing list