Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148734172
D21283.id60863.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D21283.id60863.diff
View Options
Index: share/mk/bsd.files.mk
===================================================================
--- share/mk/bsd.files.mk
+++ share/mk/bsd.files.mk
@@ -97,11 +97,16 @@
.else
${group}NAME_${file}?= ${file:T}
.endif # defined(${group}NAME)
-STAGE_AS_SETS+= ${file}
STAGE_AS_${file}= ${${group}NAME_${file}}
-# XXX {group}OWN,GRP,MODE
-STAGE_DIR.${file}= ${STAGE_OBJTOP}${${_${group}DIR_${file}}}
-stage_as.${file}: ${file}
+# we cannot use file safely as a set name
+# since we cannot? apply :T
+# but we can use the ${group}DIR_${file}
+# as a set - meta.stage.mk will :O:u for us
+# we need to expand ${group}DIR_${file} and replace
+# all '/' and '*' with '_' to make a safe target name.
+STAGE_AS_SETS+= ${${_${group}DIR_${file}}:C,[/*],_,g}
+STAGE_DIR.${${_${group}DIR_${file}}:C,[/*],_,g}= ${STAGE_OBJTOP}${${group}DIR_${file}}
+stage_as.${${_${group}DIR_${file}}:C,[/*],_,g}: ${file}
installfiles-${group}: _${group}INS1_${file}
_${group}INS1_${file}: installdirs-${_${group}DIR_${file}} _${group}INS_${file}
@@ -118,12 +123,16 @@
.ORDER: beforeinstall installfiles
.if ${MK_STAGING} != "no"
+.if ${FILESGROUPS:@g@${$g}@} != ""
.if !empty(STAGE_SETS)
buildfiles: stage_files
STAGE_TARGETS+= stage_files
+stage_files:
.if !empty(STAGE_AS_SETS)
buildfiles: stage_as
STAGE_TARGETS+= stage_as
+stage_as:
+.endif
.endif
.endif
.endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 20, 10:53 PM (12 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30041325
Default Alt Text
D21283.id60863.diff (1 KB)
Attached To
Mode
D21283: Use file destdir for stage_as sets
Attached
Detach File
Event Timeline
Log In to Comment