Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5547 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40363 invoked by uid 1010); 19 Nov 2003 11:49:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 40326 invoked from network); 19 Nov 2003 11:49:05 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by pb1.pair.com with SMTP; 19 Nov 2003 11:49:05 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id hAJBn5H23713 for ; Wed, 19 Nov 2003 06:49:05 -0500 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id hAJBn4w16815 for ; Wed, 19 Nov 2003 06:49:04 -0500 Received: from radish.cambridge.redhat.com (radish.cambridge.redhat.com [172.16.18.90]) by lacrosse.corp.redhat.com (8.11.6/8.11.6) with ESMTP id hAJBn0O19628 for ; Wed, 19 Nov 2003 06:49:01 -0500 Received: from radish.cambridge.redhat.com (localhost.localdomain [127.0.0.1]) by radish.cambridge.redhat.com (8.12.10/8.12.7) with ESMTP id hAJBmung005269 for ; Wed, 19 Nov 2003 11:48:57 GMT Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.12.10/8.12.10/Submit) id hAJBmsi4005268 for internals@lists.php.net; Wed, 19 Nov 2003 11:48:54 GMT Date: Wed, 19 Nov 2003 11:48:54 +0000 To: PHP-DEV List Message-ID: <20031119114854.GA4733@redhat.com> Mail-Followup-To: PHP-DEV List References: <7FE65F30-160B-11D8-93AA-00039398D64A@php.net> <87ABEC02-16AD-11D8-9DD7-00039398D64A@php.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87ABEC02-16AD-11D8-9DD7-00039398D64A@php.net> User-Agent: Mutt/1.4.1i Subject: Re: [PHP-DEV] minor install issue (apache 1 sapi) From: jorton@redhat.com (Joe Orton) On Fri, Nov 14, 2003 at 06:19:16AM -0800, terry chay wrote: > Jani, > > Yes, this happens when I create an RPM, however this is still a bug. > Here is RPM's build process: > 1) read spec file and look in /usr/src/redhat/SOURCES for files > necessary to build RPM > 2) configure and compile with settings targeted at "/" > 3) make install into a temporary directory targetted at a temporary > directory > 4) if this succeeds, bundle sources and spec file into a source RPM > 5) bundle temporary directory and spec file into binary RPM > > First, it is perfectly valid that I create a php package against my > installed apache. In fact, this is how Red Hat does it themselves and > the only valid way to safely replace an RPM with a non-distribution one > (this is why you should normally compile into /opt or /usr/local). The > reason Fedora hasn't found this bug has to do with the fact that the > later versions of Red Hat (since 9.0?) link against Apache 2 which > doesn't have this bug. This does affect the SAPIs for 2.0 too - we've historically patched that out the unsubtle way, e.g.: - if test -z `$APXS -q SYSCONFDIR`; then + if true; then INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ ... > P.S. The Fedora PHP RPM is an absolute mess. It applies 12 patches and > separately compiles the cgi/sapi modules even though PHP has long since > built out both when you compile the SAPI. I don't know if there is > anything interesting in there, but you can download it from them and > apply "rpm2cpio | cpio -ivmud" and rummage around at > the patches. You can also see many of the patches by checking the archives for this list, and the cvs archives where they get checked in :) Regards, joe