Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Apr 2013 17:01:33 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r316249 - head/Mk
Message-ID:  <201304221701.r3MH1XXj025128@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Mon Apr 22 17:01:33 2013
New Revision: 316249
URL: http://svnweb.freebsd.org/changeset/ports/316249

Log:
  Use simple glob matching instead of a regex to test if PREFIX defined as an absolute patch

Modified:
  head/Mk/bsd.port.mk

Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk	Mon Apr 22 16:33:38 2013	(r316248)
+++ head/Mk/bsd.port.mk	Mon Apr 22 17:01:33 2013	(r316249)
@@ -1525,7 +1525,7 @@ ${_f}_ARGS:=	${f:C/^[^\:]*\://g}
 
 # You can force skipping these test by defining IGNORE_PATH_CHECKS
 .if !defined(IGNORE_PATH_CHECKS)
-.if (${PREFIX:C,(^.).*,\1,} != "/")
+.if ! ${PREFIX:M/*}
 .BEGIN:
 	@${ECHO_MSG} "PREFIX must be defined as an absolute path so that when 'make'"
 	@${ECHO_MSG} "is invoked in the work area PREFIX points to the right place."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304221701.r3MH1XXj025128>