From nobody@FreeBSD.org  Thu Aug 13 04:55:52 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 7182C1065673
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Aug 2009 04:55:52 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 608548FC3E
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Aug 2009 04:55:52 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n7D4tqKv086044
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Aug 2009 04:55:52 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n7D4tqer086043;
	Thu, 13 Aug 2009 04:55:52 GMT
	(envelope-from nobody)
Message-Id: <200908130455.n7D4tqer086043@www.freebsd.org>
Date: Thu, 13 Aug 2009 04:55:52 GMT
From: Fernan Aguero <fernan.aguero@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: portlint doesn't honor /etc/make.conf
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         137714
>Category:       ports
>Synopsis:       ports-mgmt/portlint doesn't honor /etc/make.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    marcus
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 13 05:00:15 UTC 2009
>Closed-Date:    Sat Dec 19 21:12:09 UTC 2009
>Last-Modified:  Sat Dec 19 21:12:09 UTC 2009
>Originator:     Fernan Aguero
>Release:        FreeBSD-6.4
>Organization:
IIB-UNSAM
>Environment:
>Description:
I'm testing ports using a development ports tree under /freebsd/ports-dev
I'm setting PORTSDIR in /etc/make.conf accordingly.

When testing ports, make(1) does not complain about missing dependency ports, but portlint does. However all the error messages say that I'm missing a port directory in /usr/ports!

When looking at the sources, it's clear that portlint honors PORTSDIR if set in the environment, however it never reads /etc/make.conf


>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->marcus 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Aug 13 05:33:04 UTC 2009 
Responsible-Changed-Why:  
Fix synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=137714 
State-Changed-From-To: open->closed 
State-Changed-By: marcus 
State-Changed-When: Sat Dec 19 21:10:19 UTC 2009 
State-Changed-Why:  
No, it doesn't.  Reading make.conf would be non-trivial, and that is why the 
-M option exists for portlint.  For example, you could do: 

portlint -M PORTSDIR=/freebsd/ports-dev ... 

http://www.freebsd.org/cgi/query-pr.cgi?pr=137714 
>Unformatted:
