Bug 173996

Summary: php is missing a Requires: pcre (requirement prereq)
Product: [Fedora] Fedora Reporter: Tim Jackson <rpm>
Component: phpAssignee: Joe Orton <jorton>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-11-23 15:02:05 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:
Attachments:
Description Flags
trivial patch none

Description Tim Jackson 2005-11-23 15:00:00 UTC
Description of problem:
The main PHP package is dynamically linked to pcre, and indeed has a pcre-devel
BuildRequires, but does not have a corresponding Requires:. This means if you
install php without pcre installed, running "php" from the command line results
in errors.

Version-Release number of selected component (if applicable):
php-5.0.4-10.5
php-5.0.5-6 (rawhide) appears by visual inspection of the spec to have the same
problem

How reproducible: Always


Steps to Reproduce:
1. yum install php
2. rpm -e --nodeps pcre
3. "php"
 
Actual results:

php: error while loading shared libraries: libpcre.so.0: cannot open shared
object file: No such file or directory

Expected results:
no errors


Additional info:

Comment 1 Tim Jackson 2005-11-23 15:00:01 UTC
Created attachment 121398 [details]
trivial patch

Comment 2 Joe Orton 2005-11-23 15:02:05 UTC
The shared library dependency is picked up automatically as it should be.

$ rpm -q --requires php | grep pcre
libpcre.so.0


Comment 3 Tim Jackson 2005-11-23 15:12:27 UTC
You are, of course, right.  My bad, sorry!