From owner-freebsd-ports@FreeBSD.ORG Sat Feb 11 00:13:34 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id 00520106566C; Sat, 11 Feb 2012 00:13:33 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 172-17-150-251.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 418C41515C1; Sat, 11 Feb 2012 00:13:33 +0000 (UTC) Message-ID: <4F35B2AC.7030501@FreeBSD.org> Date: Fri, 10 Feb 2012 16:13:32 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:10.0) Gecko/20120201 Thunderbird/10.0 MIME-Version: 1.0 To: Scot Hetzel References: <4F31EBE1.8040000@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.3.5 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: marcus@FreeBSD.org, FreeBSD ports list Subject: Re: What use is WWWDIR_REL? 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: Sat, 11 Feb 2012 00:13:34 -0000 On 02/08/2012 20:18, Scot Hetzel wrote: > On Tue, Feb 7, 2012 at 9:28 PM, Doug Barton wrote: >> Following up to my previous post about "Why isn't WWWDIR_REL in the >> default PLIST_SUB I broke open bsd.port.mk and found this: >> >> PLIST_SUB+= DOCSDIR="${DOCSDIR_REL}" \ >> EXAMPLESDIR="${EXAMPLESDIR_REL}" \ >> DATADIR="${DATADIR_REL}" \ >> WWWDIR="${WWWDIR_REL}" \ *******!!!!????!!!**** >> ETCDIR="${ETCDIR_REL}" >> >> So this leads me to many questions, the first and most obvious of which >> is, what the heck good is WWWDIR_REL in the first place? I searched the >> ports tree and found 1,063 uses of it (outside of bpm itself). 1,035 of >> them are literals in a pkg-plist, which at this point looks completely >> useless. Of the 28 others 13 of them are PLIST_SUB related, which >> apparently can also be removed. Most of the other 15 look like mistakes, >> and all of them look like they can be fixed with little difficulty. >> > Those 1035 ports that are using WWWDIR_REL in their pkg-plist are > wrong and should be changed to use WWWDIR. Since PLIST_SUB will > automatically replace %%WWWDIR%% with ${WWWDIR_REL} in the pkg-plist. Ok, glad we're in agreement on that. >> So I'd like to propose the attached, not to be included until the >> existing uses of WWWDIR_REL are updated of course. Can anyone tell me >> why this would be a bad idea? I think being able to just use %%WWWDIR%% >> in the plist would be a lot less confusing. >> > I believe the original purpose of the *_REL variables in bsd.port.mk > was to make maintaining bsd.port.mk easier. Clearly I'm missing something then, because I don't see how they accomplish anything useful. Perhaps you can enlighten me? There is nothing in the CVS log that even mentions them, never mind why they were added (bad portmgr, no cookie!). Doug -- It's always a long day; 86400 doesn't fit into a short. Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/