From owner-freebsd-apache@FreeBSD.ORG Sun Dec 2 18:47:41 2007 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 850C316A420; Sun, 2 Dec 2007 18:47:41 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from vegeta.p6m7g8.net (static-71-166-166-68.washdc.east.verizon.net [71.166.166.68]) by mx1.freebsd.org (Postfix) with ESMTP id 1247B13C4D9; Sun, 2 Dec 2007 18:47:35 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from vegeta.p6m7g8.net (vegeta.p6m7g8.net [71.166.166.68]) by vegeta.p6m7g8.net (8.13.8/8.13.1) with ESMTP id lB2IApfE024809; Sun, 2 Dec 2007 13:10:51 -0500 Date: Sun, 2 Dec 2007 13:10:51 -0500 (EST) From: "Philip M. Gollucci" X-X-Sender: pgollucci@vegeta.p6m7g8.net To: Anton Berezin In-Reply-To: <20071127093916.GE83618@heechee.tobez.org> Message-ID: References: <20071127093916.GE83618@heechee.tobez.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: ClamAV version 0.90.2, clamav-milter version 0.90.2 on vegeta.p6m7g8.net X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on vegeta.p6m7g8.net Cc: clement@freebsd.org, freebsd-apache@freebsd.org Subject: Re: bsd.apache.mk strangeness X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Dec 2007 18:47:41 -0000 On Tue, 27 Nov 2007, Anton Berezin wrote: > Hi, > > I'd like you to pay a little bit of attention to the following thread: > > http://www.freebsd.org/cgi/mid.cgi?id=474B2313.2090409%40verysmall.org&db=mid > > It looks like if a user puts "USE_APACHE" into /etc/make.conf, then during > portupgrade of perl, everything bombs out because bsd.apache.mk tries to > invoke apxs (which is present) while perl is not installed. Since apxs is a > perl script, the results are not pretty. Definetely wrong, its APACHE_PORT=www/apacheXX I'm guessing you are looking for something similiar to: .ifdef USE_MYSQL .error You have `USE_MYSQL' variable defined either in environment or in make(1) arguments. Please undefine and try again. .endif > Maybe try and execute perl first, and bail out with something meaningful > ("you either have USE_APACHE in /etc/make.conf or your environment or you > are trying to build an apache-related port without perl installed")? It might be more complicated than that since we ship with an executable that merely prints out a message to go install perl. We'd actually have to parse the output -- ------------------------------------------------------------------------ Philip M. Gollucci (philip@ridecharge.com) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.