Bug 131054 - Rebuilding of php dies if file package is too old
Summary: Rebuilding of php dies if file package is too old
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: php
Version: rawhide
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: 2004-08-26 23:07 UTC by Robert Scheck
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version: 4.3.8-10
Clone Of:
Environment:
Last Closed: 2004-08-27 14:20:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Log file of failed php rebuild for further details (27.93 KB, text/plain)
2004-08-26 23:11 UTC, Robert Scheck
no flags Details

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.


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