svn commit: r316249 - head/Mk

Baptiste Daroussin bapt at FreeBSD.org
Mon Apr 22 17:01:33 UTC 2013


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."


More information about the svn-ports-head mailing list