From owner-freebsd-apache@FreeBSD.ORG Wed Sep 27 09:42:44 2006 Return-Path: X-Original-To: apache@freebsd.org Delivered-To: freebsd-apache@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEAF016A40F for ; Wed, 27 Sep 2006 09:42:44 +0000 (UTC) (envelope-from steve@Watt.COM) Received: from wattres.watt.com (wattres.watt.com [66.93.133.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5017443D49 for ; Wed, 27 Sep 2006 09:42:44 +0000 (GMT) (envelope-from steve@Watt.COM) Received: from wattres.watt.com (localhost.watt.com [127.0.0.1]) by wattres.watt.com (8.13.8/8.13.6) with ESMTP id k8R9gijK011770 for ; Wed, 27 Sep 2006 02:42:44 -0700 (PDT) (envelope-from steve@wattres.watt.com) Received: (from steve@localhost) by wattres.watt.com (8.13.8/8.13.8/Submit) id k8R9ghoq011769 for apache@freebsd.org; Wed, 27 Sep 2006 02:42:43 -0700 (PDT) (envelope-from steve) Message-Id: <200609270942.k8R9ghoq011769@wattres.watt.com> From: steve@Watt.COM (Steve Watt) Date: Wed, 27 Sep 2006 02:42:43 -0700 X-Mailer: Mail User's Shell (7.2.6 beta(5) 10/07/98) To: apache@freebsd.org X-Archived: 1159350164.049552401@wattres.Watt.COM Cc: Subject: Fwd: p5-Apache-DBI 'make package' dependency 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: Wed, 27 Sep 2006 09:42:44 -0000 A few hours ago, I tripped across a strange problem trying to build a package for p5-Apache-DBI on a 6-STABLE box when I have Apache 2.2 and mod_perl2 installed. I couldn't figure out the magic to get the package not to have silly dependencies (like apache20 or apache13). I asked over on -ports, and Philip G. pointed me at the important magic bit, setting APACHE_PORT variable to www/apache22. So, two questions: From looking around in bsd.apache.mk, I would've guessed (and did guess) that setting APACHE_VERSION to 22 should have done the correct thing. Instead I wound up with the make package stuck in some kind of recursion. My Makefile-fu is admittedly rusty, but I think that setting APACHE_PORT to www/apache22 should be equivalent to setting APACHE_VERSION to 22. Oh, and is there a place that one might accidentaly stumble across some documentation for the APACHE_PORT make variable? I certainly didn't spot any hints before I knew the name. Now that I know it, it's easy to find. :P The last message in the thread on -ports, for those who didn't see it: - - - 8< - - - Date: Wed, 27 Sep 2006 00:07:49 -0700 From: "Philip M. Gollucci" Organization: P6M7G8 Inc. To: Steve Watt CC: freebsd-ports@freebsd.org Subject: Re: p5-Apache-DBI 'make package' dependency strangeness Steve Watt wrote: > Gotta love versionitis. After I sent the e-mail it dawned on me it might be that. Its just been so long since I've not had it since 20 is the default and I'm an ASF Member/mod_perl PMC I almost never use 2.0.x anymore unless someone bugs it. > I know there's magic that almost gets it right, because it was finding > my apache-2.2.3 dependency before (when I didn't specify APACHE_PORT), > but was trying to add an apache20 or apache13 dependency as well. > > Speaking of APACHE_PORT... Is it documented somewhere that that's the > variable needed for this stuff? It's not in the hints in > /usr/ports/Mk/bsd.apache.mk, and what I do see implies that > setting APACHE_VERSION to 22 should DTRT. Beats the hell out of me. I forget how I figured that out -- I either read it on ports@, html docs, or did a grep out of something in the ports tree. clement@ would know though. I'll leave it to you to follow up with him, or just e-mail apache@ which he, I, and others read. --- End of forwarded message from "Philip M. Gollucci" -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.5" / 37N 20' 15.3" Internet: steve @ Watt.COM Whois: SW32-ARIN Free time? There's no such thing. It just comes in varying prices...