Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110097694
D37500.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1012 B
Referenced Files
None
Subscribers
None
D37500.diff
View Options
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1058,6 +1058,11 @@
# make -C /usr/ports/category/port/.
.CURDIR:= ${.CURDIR:tA}
+# Ensure .CURDIR doesn't contain a colon, which breaks makefile targets
+.if ${.CURDIR:S/:/\:/g} != ${.CURDIR}
+.error The current directory path contains ':', this is not supported
+.endif
+
# make sure bmake treats -V as expected
.MAKE.EXPAND_VARIABLES= yes
diff --git a/Mk/bsd.port.subdir.mk b/Mk/bsd.port.subdir.mk
--- a/Mk/bsd.port.subdir.mk
+++ b/Mk/bsd.port.subdir.mk
@@ -51,6 +51,11 @@
# make -C /usr/ports/category/port/.
.CURDIR:= ${.CURDIR:tA}
+# Ensure .CURDIR doesn't contain a colon, which breaks makefile targets
+.if ${.CURDIR:S/:/\:/g} != ${.CURDIR}
+.error The current directory path contains ':', this is not supported
+.endif
+
.include "${PORTSDIR}/Mk/bsd.commands.mk"
.MAIN: all
@@ -505,7 +510,7 @@
} \
}' ${MOVEDDIR}/${MOVEDFILE}; \
fi \
- fi
+ fi
search:
@${_PORTSEARCH}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 14, 2:20 PM (20 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16643638
Default Alt Text
D37500.diff (1012 B)
Attached To
Mode
D37500: Add check to detect colon in .CURDIR
Attached
Detach File
Event Timeline
Log In to Comment