@@ -84,7 +84,7 @@ $(1)_download_path_fixed=$(subst :,\:,$$($(1)_download_path))
84
84
# default commands
85
85
# The default behavior for tar will try to set ownership when running as uid 0 and may not succeed, --no-same-owner disables this behavior
86
86
$(1 ) _fetch_cmds ?= $(call fetch_file,$(1 ) ,$(subst \:,:,$$($(1 ) _download_path_fixed) ) ,$$($(1 ) _download_file) ,$($(1 ) _file_name) ,$($(1 ) _sha256_hash) )
87
- $(1 ) _extract_cmds ?= mkdir -p $$($(1 ) _extract_dir) && echo "$$($(1 ) _sha256_hash) $$($(1 ) _source) " > $$($(1 ) _extract_dir) /.$$($(1 ) _file_name) .hash && $(build_SHA256SUM ) -c $$($(1 ) _extract_dir) /.$$($(1 ) _file_name) .hash && tar --no-same-owner --strip-components=1 -xf $$($(1 ) _source)
87
+ $(1 ) _extract_cmds ?= mkdir -p $$($(1 ) _extract_dir) && echo "$$($(1 ) _sha256_hash) $$($(1 ) _source) " > $$($(1 ) _extract_dir) /.$$($(1 ) _file_name) .hash && $(build_SHA256SUM ) -c $$($(1 ) _extract_dir) /.$$($(1 ) _file_name) .hash && $( build_TAR ) --no-same-owner --strip-components=1 -xf $$($(1 ) _source)
88
88
$(1 ) _preprocess_cmds ?=
89
89
$(1 ) _build_cmds ?=
90
90
$(1 ) _config_cmds ?=
@@ -207,7 +207,7 @@ $($(1)_preprocessed): | $($(1)_extracted)
207
207
touch $$@
208
208
$($(1 ) _configured) : | $($(1 ) _dependencies) $($(1 ) _preprocessed)
209
209
echo Configuring $(1 ) ...
210
- rm -rf $(host_prefix ) ; mkdir -p $(host_prefix ) /lib; cd $(host_prefix ) ; $(foreach package,$($(1 ) _all_dependencies) , tar --no-same-owner -xf $($(package ) _cached) ; )
210
+ rm -rf $(host_prefix ) ; mkdir -p $(host_prefix ) /lib; cd $(host_prefix ) ; $(foreach package,$($(1 ) _all_dependencies) , $( build_TAR ) --no-same-owner -xf $($(package ) _cached) ; )
211
211
mkdir -p $$(@D )
212
212
+cd $$(@D ) ; $($(1 ) _config_env) $(call $(1 ) _config_cmds, $(1 ) )
213
213
touch $$@
@@ -228,7 +228,7 @@ $($(1)_postprocessed): | $($(1)_staged)
228
228
touch $$@
229
229
$($(1 ) _cached) : | $($(1 ) _dependencies) $($(1 ) _postprocessed)
230
230
echo Caching $(1 ) ...
231
- cd $$($(1 ) _staging_dir) /$(host_prefix ) ; find . | sort | tar --no-recursion -czf $$($(1 ) _staging_dir) /$$(@F ) -T -
231
+ cd $$($(1 ) _staging_dir) /$(host_prefix ) ; find . | sort | $( build_TAR ) --no-recursion -czf $$($(1 ) _staging_dir) /$$(@F ) -T -
232
232
mkdir -p $$(@D )
233
233
rm -rf $$(@D ) && mkdir -p $$(@D )
234
234
mv $$($(1 ) _staging_dir) /$$(@F ) $$(@ )
0 commit comments