From owner-freebsd-ports@FreeBSD.ORG Mon Jul 19 22:23:35 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 042B91065680 for ; Mon, 19 Jul 2010 22:23:35 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from cell.p6m7g8.net (static-71-178-236-107.washdc.fios.verizon.net [71.178.236.107]) by mx1.freebsd.org (Postfix) with ESMTP id 9C6308FC0A for ; Mon, 19 Jul 2010 22:23:34 +0000 (UTC) Received: from philip.hq.rws (wsip-174-79-184-239.dc.dc.cox.net [174.79.184.239]) (authenticated bits=0) by cell.p6m7g8.net (8.14.4/8.14.3) with ESMTP id o6JMNQl6024462 (version=TLSv1/SSLv3 cipher=DHE-DSS-CAMELLIA256-SHA bits=256 verify=NO); Mon, 19 Jul 2010 22:23:26 GMT (envelope-from pgollucci@p6m7g8.com) Message-ID: <4C44D05E.4010400@p6m7g8.com> Date: Mon, 19 Jul 2010 22:23:26 +0000 From: "Philip M. Gollucci" Organization: P6M7G8 Inc. User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.9) Gecko/20100607 Thunderbird/3.0.4 MIME-Version: 1.0 To: Anonymous References: <4C44A05B.6040308@cam.ac.uk> <86sk3f5jb3.fsf@gmail.com> In-Reply-To: <86sk3f5jb3.fsf@gmail.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,RDNS_DYNAMIC autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on cell.p6m7g8.net Cc: freebsd-ports@freebsd.org, Christopher Key Subject: Re: OPTIONS and dynamic PKGNAMPREFIX, e.g. {APACHE, PYTHON, ETC}_PKGNAMEPREFIX (Was: ports/148637 ...) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2010 22:23:35 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 07/19/10 20:05, Anonymous wrote: > Christopher Key writes: > >> A crude survey shows several ports with this problem, listed below. >> There appear to be three different solutions used in other ports: >> explicitly setting OPTIONSFILE, explicitly setting UNIQUENAME, and >> explicitly setting LATEST_LINK. If you can suggest which is the >> preferred solution, I'll put together a patch. > > They all are workarounds. OPTIONSFILE should be defined *after* > including bsd.{apache,python,etc}.mk so that user can have different > options for different versions of apache/python/etc[1]. Same is true for > UNIQUENAME but it has users under Mk/ directory > (bsd.{databases,tcl}.mk), so it should be defined before them. > > I don't know what workaround is preferred but I'd suggest > UNIQUENAME. It's easier to type and has same dependency on > PKGNAMEPREFIX. > > [1] For www/mod_musicindex it would be > /var/db/ports/ap20-mod_musicindex/options > /var/db/ports/ap22-mod_musicindex/options > > You can't install into same PREFIX because its DATADIR is not apache > version dependant. But many python ports work fine with same PREFIX. In the distant future versioned ports will version the DATADIR correctly for apache related anyway. - -- - ------------------------------------------------------------------------ 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C Philip M. Gollucci (pgollucci@p6m7g8.com) c: 703.336.9354 VP Apache Infrastructure; Member, Apache Software Foundation Committer, FreeBSD Foundation Consultant, P6M7G8 Inc. Sr. System Admin, Ridecharge Inc. Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iD8DBQFMRNBedbiP+9ubjBwRAujrAJ9vOzkjbGH3WRrIMNHqBin9vf9NmACeLdFo dUVG0AyBih6bBJRMvANRn5w= =vGkB -----END PGP SIGNATURE-----