Red Hat Bugzilla – Bug 1306593
Missing dependency on perl(Test::More)
Last modified: 2016-02-11 10:17:49 EST
Perl Gtk2 packages like perl-Gtk2-TryIcon or perl-Gtk2-Sexy fail to build because perl-Gtk2 does not run-require perl(Test::More):
Can't locate Test/More.pm in @INC (you may need to install the Test::More module) (@INC contains: /builddir/build/BUILD/Gtk2-TrayIcon-0.06/blib/lib /builddir/build/BUILD/Gtk2-TrayIcon-0.06/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/lib64/perl5/vendor_perl/Gtk2/TestHelper.pm line 8.
This is because perl-Gtk2 explicitly filters Test and Glib from requires:
%global __requires_exclude perl\\(Glib\\)|perl\\(Test::
The filter must be removed.
If the motivation is that any Perl Gtk2 application would pull in Test::More, then the solution is to move the Gtk2::TestHelper into a subpackage.
If you don't object I can do it.
Tested with perl-Gtk2-1.2498-1.fc24.x86_64.
I've removed the filter in rawhide (perl-Gtk2-1.2498-2.fc24). Let me know if we need to push this change out to stable branches.