Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 37369 invoked from network); 11 Oct 2005 10:29:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Oct 2005 10:29:36 -0000 Received: (qmail 40844 invoked by uid 500); 11 Oct 2005 10:29:28 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 40827 invoked by uid 500); 11 Oct 2005 10:29:28 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 40816 invoked by uid 99); 11 Oct 2005 10:29:28 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2005 03:29:28 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of lucp@skopos.be designates 213.177.131.235 as permitted sender) Received: from [213.177.131.235] (HELO smtp.skopos.be) (213.177.131.235) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2005 03:29:29 -0700 Received: from skopos.be (dmz-mavro [192.168.1.1]) by smtp.skopos.be (Postfix) with ESMTP id EDB2E1F3 for ; Tue, 11 Oct 2005 12:29:11 +0200 (CEST) Message-ID: <434B93F5.3F6EABCE@skopos.be> Date: Tue, 11 Oct 2005 12:29:10 +0200 From: Luc Pardon Reply-To: lucp@skopos.be Organization: Skopos Consulting, Belgium X-Mailer: Mozilla 4.61 [en] (OS/2; U) X-Accept-Language: en,el MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: [pre-release] rpm spec file (was: Re: [pre-release] 2.0.55 *candidate* available for testing) References: <4349F143.5040701@apache.org> <200510101208.50836.oeriksson@mandriva.com> <434A7A46.8030407@rowe-clan.net> <434AC271.49C57E48@skopos.be> <434AC94B.4000303@rowe-clan.net> <434B759B.885C86DE@skopos.be> <18291.196.8.104.31.1129021434.squirrel@www.sharp.fm> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Graham Leggett wrote: > > Luc Pardon said: > > > In that case the 2.0 httpd.spec files should either a) not require > > pre-installed apr packages and build apr as part of the httpd rpm, > > A definite -1 on this. If this were so, httpd could not coexist cleanly > with other packages that depended on APR. Definitely. I missed the fact that apr 0.9 and 1.x can coexist. > > > or b) > > build the bundled apr stuff into separate rpm packages itself. > > APR is already available as an RPM, both for the 0.9 and 1.x trees, and > 0.9 and 1.x can be installed simultaneously. > > See the binaries/rpm directory in the download section for APR. > Yes, but what got me confused is that the httpd tarball comes with the APR source (hence the docs don't talk about it as being a prerequisite) whereas the current spec file requires you to go elsewhere and get something that is already there. It seem to me that this kind of defeats the purposo of bundling APR. > > I'm only really familiar with rpm-ing on RedHat platforms, but AFAIK > > the rpm specs differ in details, so you'd probably have to populate the > > rpm subdir with working spec files for various platforms (collected > > after the fact ). Or add platform-specific subdirs under rpm/. > > Different spec files for different platforms should be avoided as much as > possible. Each distro will release an httpd version + their custom patches > for the purposes of that distro anyway, Apache isn't a distro, so can > release a clean httpd as is without any patches. Agreed on both counts. That (no patches) is one of the reasons why I'm building my own. But I think there are sometimes other differencies than just patches, no ? For example, installing into platform-dependent dirs or other variations in configure options ? Or init script stuff ? Note that I'm not arguing, just wondering. Of course, having multiple spec files (for different platforms) will break rpmbuild -tb big time. > > > "The httpd.spec file, as included in the tarball, requires apr and > > apr-util and the corresponding devel packages to be installed as > > separate rpm's. Although the APR source code is present in the httpd > > tarball, there are currently no APR spec files. You can't build the APR > > rpm's from the httpd.spec file either. In other words, if you want to > > build httpd from the included spec file, you'll first have to go and > > find the APR rpm's in the usual places and install them." > > There are APR spec files in the APR and APR-util archives. > > They are removed from the apr tree in the httpd build, as rpm gets > confused is there is more than one spec file in a tarball (in other words, > rpmbuild -tb is not possible otherwise). > I see. But couldn't you leave them sitting in srclib/apr, where rpmbuild -tb won't see them ? Or better, merge them into httpd.spec, so that rpmbuild -tb will produce apr packages from the bundled code in one go ? Would there be any objections against the latter ? After all, httpd.spec already produces the httpd, httpd-devel, httpd-manual and mod_ssl rpm's. Why not apr, apr-util, apr-devel and apr-util-devel as well ? Nobody obliges you to install the whole set. > > If you leave it in, changing the dependencies to properly require > > 0.9.7 (or newer?) is a trivial change to build/rpm/httpd.spec.in. So > > trivial in fact that I'm willing to provide a patch . > > Please do :) > From a later message of yours, it seems it's too late already . As an aside, is there no configure macro somewhere (something like APR_VERSION) that would avoid having to hard-code it in httpd.spec.in ? Luc