Bug 810370 - Circular build dependency in perl-DBI-1.618-2.fc18
Circular build dependency in perl-DBI-1.618-2.fc18
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: perl-DBI (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Marcela Mašláňová
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-05 15:07 EDT by Paul Howarth
Modified: 2012-04-06 08:47 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-04-06 08:47:22 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Paul Howarth 2012-04-05 15:07:00 EDT
perl-DBI has a buildreq of perl(SQL::Statement) >= 1.28, which is used in the test suite if available. However, SQL::Statement itself requires DBI, so this creates a circular build dependency, which will be a problem when we come to build everything for perl 5.16. Suggested fix is to not buildrequire SQL::Statement when bootstrapping:

diff --git a/perl-DBI.spec b/perl-DBI.spec
index 0dc2f0c..3039553 100644
--- a/perl-DBI.spec
+++ b/perl-DBI.spec
@@ -38,8 +38,10 @@ BuildRequires:  perl(RPC::PlClient) >= 0.2000
 # RPC::PlServer is optional
 BuildRequires:  perl(RPC::PlServer)
 BuildRequires:  perl(Scalar::Util)
-# SQL::Statement is optional
+# SQL::Statement is optional, and it requires DBI
+%if 0%{!?perl_bootstrap:1}
 BuildRequires:  perl(SQL::Statement) >= 1.28
+%endif
 BuildRequires:  perl(Storable)
 BuildRequires:  perl(Symbol)
 BuildRequires:  perl(threads)

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