From owner-svn-ports-all@freebsd.org Thu Apr 28 12:06:28 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6650CB1D299; Thu, 28 Apr 2016 12:06:28 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 36C9C11B7; Thu, 28 Apr 2016 12:06:28 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3SC6R1O011309; Thu, 28 Apr 2016 12:06:27 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3SC6Rxo011308; Thu, 28 Apr 2016 12:06:27 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201604281206.u3SC6Rxo011308@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Thu, 28 Apr 2016 12:06:27 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r414167 - head/Mk X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2016 12:06:28 -0000 Author: mat Date: Thu Apr 28 12:06:27 2016 New Revision: 414167 URL: https://svnweb.freebsd.org/changeset/ports/414167 Log: Add a warning about using PORTSDIR in a *_DEPENDS line. Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D6075 Modified: head/Mk/bsd.port.mk (contents, props changed) Modified: head/Mk/bsd.port.mk ============================================================================== --- head/Mk/bsd.port.mk Thu Apr 28 09:36:32 2016 (r414166) +++ head/Mk/bsd.port.mk Thu Apr 28 12:06:27 2016 (r414167) @@ -4328,6 +4328,17 @@ ${deptype:tl}-depends: _UNIFIED_DEPENDS=${PKG_DEPENDS} ${EXTRACT_DEPENDS} ${PATCH_DEPENDS} ${FETCH_DEPENDS} ${BUILD_DEPENDS} ${LIB_DEPENDS} ${RUN_DEPENDS} ${TEST_DEPENDS} _DEPEND_SPECIALS= ${_UNIFIED_DEPENDS:M*\:*\:*:C,^[^:]*:([^:]*):.*$,\1,} +.for d in ${_UNIFIED_DEPENDS:M*\:/*} +# Fight .for variable interpolation differently for each version of make... +.if defined(.PARSEDIR) +_PORTSDIR_STR= $${PORTSDIR}/ +DEV_WARNING+= "It looks like the ${d} depends line has an absolute port origin, make sure to remove \$${_PORTSDIR_STR} from it." +.else +_PORTSDIR_STR= $$$${PORTSDIR}/ +DEV_WARNING+= "It looks like the ${d} depends line has an absolute port origin, make sure to remove \$${_PORTSDIR_STR} from it." +.endif +.endfor + all-depends-list: @${ALL-DEPENDS-LIST}