Bug 810724

Summary: Circular build dependency in perl-Mail-Box-2.097-3.fc18
Product: [Fedora] Fedora Reporter: Paul Howarth <paul>
Component: perl-Mail-BoxAssignee: Tom "spot" Callaway <tcallawa>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: perl-devel, tcallawa
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-12 18:10:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Paul Howarth 2012-04-08 17:12:06 UTC
perl-Mail-Box.spec buildrequires perl(Email::Abstract) as an optional test dependency.

However, perl-Email-Abstract buildrequires perl(Mail::Message), which is provided by perl-Mail-Box. In order to be able to bootstrap perl 5.16 cleanly, it would be good to break this cycle, e.g. by doing:

diff --git a/perl-Mail-Box.spec b/perl-Mail-Box.spec
index 41ccad2..c8a08e3 100644
--- a/perl-Mail-Box.spec
+++ b/perl-Mail-Box.spec
@@ -17,7 +17,11 @@ BuildRequires:  perl(Errno), perl(Object::Realize::Later), perl(Mail::Address),
 BuildRequires:  perl(Sys::Hostname), perl(Test::More), perl(Test::Harness), perl(MIME::Base64)
 BuildRequires:  perl(URI), perl(IO::Scalar), perl(Digest::HMAC_MD5), perl(User::Identity)
 BuildRequires:  perl(Time::Zone), perl(Email::Simple), perl(Text::Autoformat)
+BuildRequires:  perl(Test::Pod)
+# Email::Abstract requires Mail::Message from this package
+%if 0%{!?perl_bootstrap:1}
 BuildRequires:  perl(Email::Abstract)
+%endif
 # When perl(TAP::Harness) shows up, uncomment this, and re-enable the tests.
 BuildRequires:  perl(TAP::Harness)
 BuildArch:      noarch

(I added Test::Pod to fix the one test that was failing, though it wasn't breaking the build for some reason)

Comment 1 Tom "spot" Callaway 2012-04-12 18:10:19 UTC
Updated to 2.102 and applied your change in rawhide, thanks.