mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
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
This commit is contained in:
parent
67ac62827c
commit
d2abf95cc9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=453873
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user