Bug 721257 - Fails to build in mock (%check)
Summary: Fails to build in mock (%check)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: perl-Test-WWW-Mechanize
Version: el6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mark Chappell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-14 07:14 UTC by Mathieu Bridon
Modified: 2016-08-02 12:04 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-02 12:04:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mathieu Bridon 2011-07-14 07:14:43 UTC
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

Comment 1 Mathieu Bridon 2011-07-15 04:15:35 UTC
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


Note You need to log in before you can comment on or make changes to this bug.