Description of problem: During the unit tests, I get a failure: Can't locate CGI.pm in @INC (@INC contains: t /builddir/build/BUILD/Test-WWW-Mechanize-1.28/blib/lib /builddir/build/BUILD/Test-WWW-Mechanize-1.28/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/share/perl5/HTTP/Server/Simple/CGI.pm line 12, <DATA> line 16. See this scratch build for example: http://koji.fedoraproject.org/koji/taskinfo?taskID=3198087 Adding the following makes the package build again: BuildRequires: perl(CGI) Note that this had been fixed in Fedora 15 already: https://bugzilla.redhat.com/show_bug.cgi?id=661092 http://pkgs.fedoraproject.org/gitweb/?p=perl-Test-WWW-Mechanize.git;a=blobdiff;f=perl-Test-WWW-Mechanize.spec;h=6a82efa462b8f74a707fe3ab0be39e31d4ceb53b;hp=2359a1bfa1152842a469afba3d8e22a203ff8227;hb=c4031d52cbe628fd9b81bf6deb768c8565a47376;hpb=be3d11fe77483b6a60cba699ae1c6e15f147699e
I just pushed a fix for this issue in the el6 branch of the Fedora dist-git. However, it's not worth pushing an update just for this, so this will really be fixed in EPEL the next time the package will be rebuilt for other reasons. (this will be perl-Test-WWW-Mechanize >= 1.28-2) In the meantime, if you need to rebuild this package, don't do it from the source RPM available in the repositories, do it with fedpkg: $ fedpkg clone --branch el6 perl-Test-WWW-Mechanize (add the --anonymous option if you are not a Fedora packager) $ cd perl-Test-WWW-Mechanize $ fedpkg mockbuild