[users] perl-PDF-API2
Dries Verachtert
dries at ulyssis.org
Mon Dec 3 14:13:01 CET 2007
On Sunday December 2 2007, Kenneth Porter wrote:
> --On Sunday, December 02, 2007 12:35 AM +0100 Dries Verachtert
>
> <dries at ulyssis.org> wrote:
> >> Have you tried looking what files int hat package makes rpm believe it
> >> needs per(the) ?
> >
> > Michael: you can check which file requires this dependency with:
> > rpm -q --filerequire -p perl-PDF-API2*.rpm | grep the
> > I've added a small fix to the spec file.
>
> Here's the offender. But I don't yet see what's triggering it.
>
> /usr/lib/rpm/perl.req ./lib/PDF/API2/Resource/XObject/Image/PNM.pm
Rpm uses the perl.req script to search for used modules. It uses some kind of
regular expression and it matches on the string 'use the' on line 393. This
is in the middle of some pod documentation, so this requirement should not be
added to the rpm. There are some possibilities to fix such situations (there
might be other/better solutions besides the following):
* Delete the file. You can do this for some submodule like 'Win32.pm' but i
guess this is not an acceptable solution for PNM.pm.
* remove the executable bit from the file and add it again in the %files
section with %attr. This way perl wont check for requirements on this file
(because it's not executable) but it will be installed correctly.
Disadvantage for this module: also the other (correct) requirements of this
file PNM.pm aren't added to the rpm.
* disable automatic requirements checking and add some 'Requires: foo' lines.
* Change the text so it's not added as a requirement. I added a perl oneliner
which changes 'use' to 'Use', see:
http://svn.rpmforge.net/svn/trunk/rpms/perl-PDF-API2/perl-PDF-API2.spec
kind regards,
Dries
--
http://dries.eu/
More information about the users
mailing list