Bug 657153
Summary: | Circular Dependency between perl-Readonly and perl-Readonly-XS | ||
---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | Andrew McNaughton <amcnaughton> |
Component: | perl-Readonly | Assignee: | Chris Weyl <cweyl> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | el5 | CC: | cweyl, paul, perl-devel |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-11-29 07:51:39 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Andrew McNaughton
2010-11-25 05:10:28 UTC
Whilst it's true that the packages have runtime dependencies on each other (resulting in all users getting the performance benefits of the XS code), neither of them have build-time dependencies on each other so it should be possible to build each of them without requiring the other at build time. What error message are you getting when trying to build them? (In reply to comment #1) > Whilst it's true that the packages have runtime dependencies on each other > (resulting in all users getting the performance benefits of the XS code), > neither of them have build-time dependencies on each other so it should be > possible to build each of them without requiring the other at build time. > > What error message are you getting when trying to build them? Errors like so: [root]:/home/build/rpms/RPMS/centos/5# rpm -i /home/build/rpms/RPMS/centos/5/x86_64/perl-Readonly-XS-1.04-7.1-squiz.x86_64.rpm error: Failed dependencies: perl(Readonly) >= 1.02 is needed by perl-Readonly-XS-1.04-7.1.x86_64 [root]:/home/build/rpms/RPMS/centos/5# rpm -i /home/build/rpms/RPMS/centos/5/x86_64/perl-Readonly-1.03-6-squiz.noarch.rpm error: Failed dependencies: perl(Readonly::XS) is needed by perl-Readonly-1.03-6.noarch hmm. actually maybe that was just after building from spec file so, can build, but can't install. You need to install them in the same rpm transaction, which is what would happen if you were using yum. # rpm -i \ perl-Readonly-XS-1.04-7.1-squiz.x86_64.rpm \ perl-Readonly-1.03-6-squiz.noarch.rpm Why aren't you installing these from EPEL using yum by the way? I'm adding another module to a company's in-house repository which depends on perl-Readonly. It's basically duplication of work in epel, but only quite a limited set of the epel material is added, plus a few things from elsewhere. OK. I trust you got the modules installed OK via the repository when they get installed together (or manually)? I sorted it our for my own purposes by removing one of the dependencies in the spec file. using rpm to install both at once is better though, and I'll go back and do that. RPM doesn't offer optional dependencies, therefore Perl modules with cyclic dependencies exist quite often. The dependency on Readonly::XS was added to support all features, which can Readonly offer. It's not the best solution, but that's how we handle modules in RPM. The correct installation of dependent modules is, as was said before, rpm -i perl-Readonly perl-Readonly-XS. |