These group names may be used as a cookie, so replace any non-fs-safe characters.

One example is in cddl/usr.sbin/dtrace/tests/common/aggs.  It could be
fixed but other uses of this would break, especially in the
DIRDEPS_BUILD which uses the group names for stage cookies.

MFC after:	1 week
Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Bryan Drewery
2016-03-09 22:45:00 +00:00
parent 9593179053
commit 17e75d1cd2
3 changed files with 12 additions and 6 deletions
+4 -2
View File
@@ -8,8 +8,10 @@
INCSGROUPS?= INCS
_INCSGROUPS= ${INCSGROUPS:C,[/*],_,g}
.if !target(buildincludes)
.for group in ${INCSGROUPS}
.for group in ${_INCSGROUPS}
buildincludes: ${${group}}
.endfor
.endif
@@ -19,7 +21,7 @@ all: buildincludes
.endif
.if !target(installincludes)
.for group in ${INCSGROUPS}
.for group in ${_INCSGROUPS}
.if defined(${group}) && !empty(${group})
${group}OWN?= ${BINOWN}