Bug 5099

Summary: imap source is unnecessarily include on php
Product: [Retired] Red Hat Raw Hide Reporter: carenas
Component: mod_php3Assignee: Preston Brown <pbrown>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
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: 2000-01-14 02:10:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description carenas 1999-09-13 06:57:21 UTC
full imap source is included on php source for imap support,
all what is really needed is c-client.a and the include
files for c-client.  Both could be on a -devel package from
imap (bug 5098)

when this imap-devel package is used, the imap source could
be taked out, and will be replaced with the following

from the php-3.0.12-4's spec (the lines that had changed are
 listed below)

#Source2: imap-4.5.tar.Z
#Patch1:    imap-4.4-vfs.patch
#Patch2:    imap-4.5-linux.patch
#Patch3:    imap-4.5-redhat.patch

%package imap
BuildPrereq: imap-devel

%prep
%setup -q -n php-%{version}

%build
#cd imap-4.5
#make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" lnp
#cd ..

# IMAP module
perl -pi -e 's/HAVE_IMAP 0/HAVE_IMAP 1/g' config.h
gcc -shared -fPIC -DCOMPILE_DL=1 -I. -I/usr/include/apache \
        -I/usr/include/imap -o imap.so ./functions/imap.c \
        /usr/lib/c-client.a -lc

Comment 1 Preston Brown 2000-01-14 02:10:59 UTC
changed for next release.