Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 173806 - php-pear package does not have Provides for the packages it includes
Summary: php-pear package does not have Provides for the packages it includes
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: php
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Joe Orton
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-11-21 14:32 UTC by Tim Jackson
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-12-01 22:23:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tim Jackson 2005-11-21 14:32:51 UTC
Description of problem:
The php-pear package does not have Provides: for the bundled packages (including
DB, HTML_Template_IT, XML_RPC, XML_Parser etc.)

It also does not have a Provides: for the core package itself (i.e. PEAR, which
is in itself a PEAR package), other than the php-pear package name which is
versioned according to the PHP version rather than the actual PEAR version.

Based on the convention adopted by default when using "pear makerpm" (that is,
PEAR::Package_Name), the php-pear package should include the following Provides: 

PEAR::XML_RPC = 1.4.0
PEAR::XML_Parser = 1.2.6
PEAR::PEAR = 1.3.5
etc.

Version-Release number of selected component (if applicable):
php-pear-5.0.4-10.5

How reproducible: Always

Steps to Reproduce:
1. rpm -q --provides php-pear
  
Actual results:
php-pear = 5.0.4-10.5

Expected results:
php-pear = 5.0.4-10.5
PEAR::PEAR = 1.3.5
PEAR::XML_RPC = 1.4.0
PEAR::XML_Parser = 1.2.6
etc.

Comment 1 Tim Jackson 2005-11-21 16:02:09 UTC
There is of course the related issue of whether PEAR::Package_Name is a good
naming convention in accordance with FC packaging generall. Other obvious
alternatives include:

- php-Package_Name (this emulates the CPAN/pear-Foo_Bar convention)
- php-pear-Package_name

Personally I would choose php-Package_Name to make PHP/PEAR match Perl/CPAN.
Either way, it's worth bearing in mind that the choice may impact on the patch
in on bug #173814, and indeed may require a FC-specific patch to newer PEAR
versions to match the chosen convention, when newer upstream versions that
include RPM dep generation are pulled in.

Comment 2 Joe Orton 2005-12-01 17:26:18 UTC
I'm going with this style:

Provides: php-pear(Archive_Tar) = 1.3.1
Provides: php-pear(Console_Getopt) = 1.2


Comment 3 Joe Orton 2005-12-01 22:23:39 UTC
Done in php-pear-1.4.5-2.  If anyone has strong objections to this syntax please
pipe up.


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