From owner-freebsd-ports@FreeBSD.ORG Thu Jul 21 00:44:43 2011 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 464A81065676 for ; Thu, 21 Jul 2011 00:44:43 +0000 (UTC) (envelope-from marcus@freebsd.org) Received: from av-tac-rtp.cisco.com (hen.cisco.com [64.102.19.198]) by mx1.freebsd.org (Postfix) with ESMTP id E9A708FC18 for ; Thu, 21 Jul 2011 00:44:42 +0000 (UTC) X-TACSUNS: Virus Scanned Received: from rooster.cisco.com (localhost.cisco.com [127.0.0.1]) by av-tac-rtp.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id p6L0Vj8a018221; Wed, 20 Jul 2011 20:31:45 -0400 (EDT) Received: from fruit-rollup.marcuscom.com (jclarke-pc.cisco.com [172.18.254.236]) by rooster.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id p6L0VjGh003716; Wed, 20 Jul 2011 20:31:45 -0400 (EDT) Message-ID: <4E277370.8080206@freebsd.org> Date: Wed, 20 Jul 2011 20:31:44 -0400 From: Joe Marcus Clarke Organization: FreeBSD, Inc. User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Stephen Montgomery-Smith References: <4E273D4C.6060105@missouri.edu> In-Reply-To: <4E273D4C.6060105@missouri.edu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Ports Subject: Re: portlint: DATADIR and NOEXAMPLEDOCS 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: Thu, 21 Jul 2011 00:44:43 -0000 On 7/20/11 4:40 PM, Stephen Montgomery-Smith wrote: > I have a couple of questions. > > 1) Why does portlint complain if a port is not DATADIR compliant? The warning is very conditional. It tries to provide information so one can make an informed decision as to whether or not they want to be DATADIR-safe. > > What was the rationale behind making ports DATADIR compliant, so that if > one types "make install DATADIR=/somewhere_else" then what would be > stored in /usr/local/share/port_name will now be in /somewhere_else. > > If there are one hundred ports depending upon port x/y, and those ports > use the x/y DATADIR, then each of those hundred ports will have to include: > DATADIR!= cd ${.CURDIR}/../../x/y && make -V DATADIR This doesn't make sense for all ports. That's why the warning is soft. > > This will really slow down makeindex. > > It seems to me that you cannot use: > DATADIR= `cd ${.CURDIR}/../../x/y && make -V DATADIR` > because this won't properly set PLIST_SUB. > > 2) Why does portlint NOT complain if a port is not NOPORTEXAMPLES > compliant? No one asked for it. > > This would seem a natural extension of portlint complaining if a port is > not NOPORTDOCS compliant. I agree. Patches welcome. Joe > > Stephen > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > -- Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome