Bug 810724 - Circular build dependency in perl-Mail-Box-2.097-3.fc18
Summary: Circular build dependency in perl-Mail-Box-2.097-3.fc18
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Mail-Box
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-08 17:12 UTC by Paul Howarth
Modified: 2012-04-12 18:10 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-04-12 18:10:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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