Home » PEAR » PEAR » Bug #1870
pear makerpm dependancies
Details
| Submitted | 2004-07-14 11:32 UTC |
|---|---|
| From | wtatam at premierit dot com |
| Assigned | cellog |
| Status | Closed |
| Package | PEAR |
| PHP Version | 4.3.7 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2004-07-14 11:32 UTC] wtatam at premierit dot com
Description:
------------
pear makerpm package.tar.gz does nto create any Require statments in the spec file and so the rpms will install but then your scripts will fail with messages like "Failed opening required 'XML/Util.php'" even though the relevent package.xml files contain blocks like
<deps>
<dep type="pkg" rel="ge" version="0.4.2" optional="no">XML_Util</dep>
<dep type="pkg" rel="ge" version="1.1.0" optional="no">XML_Parser</dep>
<dep type="pkg" rel="has" optional="no">PEAR</dep>
</deps>
[2004-10-22 09:09 UTC] wtatam at premierit dot com
We know exactly what the other rpms are called as all rpms build of pear modules are called PEAR::$module_name so the spec file simply need to have "Requires: PEAR::$module_name >= $version"
[2005-02-01 10:56 UTC] wtatam at premierit dot com
All that is required is a spec file with the following lines within the header
Requires: PEAR::$dependant_module_name >= $version
Requires: PEAR::$some_otherdependant_module_name >= $version
Given this script builds all the pear rpms we know the exact name of what the rpm on which this one is dependant is called. e.g XML::Parser becomes PEAR::XML_Parser
[2005-11-21 15:36 UTC] bugs at timj dot co dot uk
A patch which applies against older PEAR versions is at https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=173814
See also https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=173806 and
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=173804 for some discussion of generating RPM deps for declared dependency types other than "package" (e.g. "ext").