rawhide report: 20110219 changes - requires perl(Gtk2::
Daniel P. Berrange
berrange at redhat.com
Mon Feb 21 18:27:51 UTC 2011
On Mon, Feb 21, 2011 at 06:45:03PM +0100, Jan Kratochvil wrote:
> On Mon, 21 Feb 2011 15:22:48 +0100, Ralf Corsepius wrote:
> > On a second thought - May-be it would be more suitable for perl to parse
> > the *.pods, such XS-modules normally are accompanied with?
>
> As discussed in
> [Bug 679014] rpmbuild: Perl excessive auto-Requires
> https://bugzilla.redhat.com/show_bug.cgi?id=679014
>
> there is no need for autodetection. CPAN packages already provide their
> "requires" list:
> Gtk2-GladeXML-1.007/META.yml:
> requires:
> ExtUtils::Depends: 0.300
> ExtUtils::PkgConfig: 1.000
> Glib: 1.020
> Gtk2: 1.000
>
> which is IIRC generated from Makefile.PL, where one can also find the
> "provides" list using ExtUtils::MakeMaker. This should be resolved by perl
> maintainers.
This assume the upstream maintainers fill out the META.yml accurately
which is often not the case :( One of the tests in Module::CPANTS::Analyse
is to run the package through Module::ExtractUse and report all the things
that the maintainer forgot. Unfortunately the CPANTS website is offline
right now so I can't point to the stats showing how many Perl package
fail this test.
I've in fact got an open RFE against cpanspec[1] for it to use
Module::ExtractUse to fill in the BuildRequires properly because
its current scanning of Makefile.PL / META.yml is insufficient in
many cases.
Regards,
Daniel
[1] https://bugzilla.redhat.com/show_bug.cgi?id=461350
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the devel
mailing list