Bug 131054

Summary: Rebuilding of php dies if file package is too old
Product: [Fedora] Fedora Reporter: Robert Scheck <redhat-bugzilla>
Component: phpAssignee: Joe Orton <jorton>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideKeywords: EasyFix
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 4.3.8-10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-08-27 14:20:31 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
Log file of failed php rebuild for further details none

Description Robert Scheck 2004-08-26 23:07:58 UTC
Description of problem:
Rebuilding of the php package dies, if the file package is too old: 

--- snipp ---
#endif
#ifdef __cplusplus
extern "C" void std::exit (int) throw (); using std::exit;

configure: exit 1
+ make
make: *** No targets specified and no makefile found.  Stop.
error: Bad exit status from /var/tmp/rpm-tmp.36452 (%build)
--- snapp ---

It's a strange error and you don't think first, that it is caused by 
a missing magic.mime.

Version-Release number of selected component (if applicable):
php-4.3.8-7

How reproducible:
Everytime, see below.

Steps to Reproduce:
1. Install file < 4.0
2. Try to rebuild php
3. Die with an strange error
  
Actual results:
--- snipp ---
--- php.spec       2004-08-26 16:49:54.000000000 +0200
+++ php.spec.rsc   2004-08-27 01:06:39.000000000 +0200
@@ -47,11 +47,11 @@
 BuildRequires: httpd-devel >= 2.0.46-1, libjpeg-devel, libpng-devel, pam-devel
 BuildRequires: libstdc++-devel, openssl-devel
 BuildRequires: zlib-devel, pcre-devel, smtpdaemon
-BuildRequires: bzip2, fileutils, file, perl, libtool >= 1.4.3
+BuildRequires: bzip2, fileutils, file >= 4.0, perl, libtool >= 1.4.3
 Obsoletes: php-dbg, mod_php, php3, phpfi, stronghold-php, php-openssl
 # Enforce Apache module ABI compatibility
 Requires: httpd-mmn = %(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)
-Requires: php-pear, file
+Requires: php-pear, file >= 4.0

 %description
 PHP is an HTML-embedded scripting language. PHP attempts to make it
--- snapp ---

This diff maybe differs a few lines up or down, because I've got 
some modifications in my spec file that never will be included to 
Fedora ;-)

Expected results:
Requirement to file >= 4.0 - I think, it's enough to commit this 
fix to the internal build system and do a rebuild together with 
other fixes and changes, because this is absolutely a minor issue 
in my eyes.

Comment 1 Robert Scheck 2004-08-26 23:11:48 UTC
Created attachment 103146 [details]
Log file of failed php rebuild for further details

Oh...I forgot to thank you, Marco/katerX, for discovering this issue ;-)

Comment 2 Joe Orton 2004-08-27 09:20:56 UTC
Thanks, your patch will be included in the next build.