Bug 113189 - build fails with "--define 'oracle 1'"
Summary: build fails with "--define 'oracle 1'"
Status: CLOSED DUPLICATE of bug 110482
Alias: None
Product: Fedora
Classification: Fedora
Component: php
Version: 1
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Joe Orton
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2004-01-09 14:51 UTC by Nikola Vassilev
Modified: 2007-11-30 22:10 UTC (History)
0 users

Clone Of:
Last Closed: 2006-02-21 19:00:40 UTC

Attachments (Terms of Use)

Description Nikola Vassilev 2004-01-09 14:51:14 UTC
Description of problem:

When I try to compile php-4.3.4-1.1 with Oracle oci8 plugin, the 
build fails at the packaging step.

If I modify the spec file, at line 402 from:

for mod in pgsql mysql odbc imap ldap snmp domxml xmlrpc %{!?
oracle:oci8} %{!?mssql:mssql}; do

to this:

for mod in pgsql mysql odbc imap ldap snmp domxml xmlrpc oci8 %{!?
mssql:mssql}; do

Then the build finishes ok. I don't think that "fix" would be correct 
for builds without the oracle module. I am not sure how to fix this 

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

How reproducible: every time

Steps to Reproduce:
1. Instal Oracle client & libraries
2. Build php from srource rpm with oracle oci8 support

Actual results:
RPM build errors:
    Could not open %files file /usr/src/redhat/BUILD/php-
4.3.4/files.oci8: No such file or directory

Expected results:
With "fix" described above:

Wrote: /usr/src/redhat/RPMS/i386/php-4.3.4-1.1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/php-devel-4.3.4-1.1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/php-imap-4.3.4-1.1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/php-ldap-4.3.4-1.1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/php-mysql-4.3.4-1.1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/php-pgsql-4.3.4-1.1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/php-odbc-4.3.4-1.1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/php-oci8-4.3.4-1.1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/php-snmp-4.3.4-1.1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/php-domxml-4.3.4-1.1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/php-xmlrpc-4.3.4-1.1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/php-debuginfo-4.3.4-1.1.i386.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.45052
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd php-4.3.4
+ '[' /var/tmp/php-root '!=' / ']'
+ rm -rf /var/tmp/php-root
+ rm files.domxml files.imap files.ldap files.mysql files.oci8 
files.odbc files.pgsql files.snmp files.xmlrpc
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.45052
+ umask 022
+ cd /usr/src/redhat/BUILD
+ rm -rf php-4.3.4
+ exit 0

Comment 1 Joe Orton 2004-01-09 14:53:00 UTC
Please try 4.3.4-2 or later from Raw Hide.

*** This bug has been marked as a duplicate of 110482 ***

Comment 2 Red Hat Bugzilla 2006-02-21 19:00:40 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.

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