Date: Thu, 9 Nov 2017 21:48:58 +0000 (UTC) From: Joseph Mingrone <jrm@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r453873 - head/Mk Message-ID: <201711092148.vA9Lmwa6005957@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jrm Date: Thu Nov 9 21:48:58 2017 New Revision: 453873 URL: https://svnweb.freebsd.org/changeset/ports/453873 Log: Ensure .CURDIR contains an absolute path without a trailing slash. Problems can occur when PORTSDIR is a symbolic link, or e.g., make -C /usr/ports/ search key='!*' See also: r450002 https://lists.freebsd.org/pipermail/freebsd-current/2017-November/067386.html Submitted by: rum1cro@yandex.ru Reported by: sergey.dyatko@gmail.com Approved by: portmgr (bdrewery) Differential Revision: https://reviews.freebsd.org/D13019 Modified: head/Mk/bsd.port.subdir.mk Modified: head/Mk/bsd.port.subdir.mk ============================================================================== --- head/Mk/bsd.port.subdir.mk Thu Nov 9 21:33:21 2017 (r453872) +++ head/Mk/bsd.port.subdir.mk Thu Nov 9 21:48:58 2017 (r453873) @@ -47,6 +47,11 @@ README= ${TEMPLATES}/README.category MOVEDDIR?= ${PORTSDIR} MOVEDFILE?= MOVED +# Ensure .CURDIR contains an absolute path without a trailing slash. Failed +# builds can occur when PORTSDIR is a symbolic link, or with something like +# make -C /usr/ports/category/port/. +.CURDIR:= ${.CURDIR:tA} + .include "${PORTSDIR}/Mk/bsd.commands.mk" .MAIN: all
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711092148.vA9Lmwa6005957>