@@ -84,7 +84,7 @@ $(1)_download_path_fixed=$(subst :,\:,$$($(1)_download_path))
8484# default commands
8585# 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
8686$(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)
8888$(1 ) _preprocess_cmds ?=
8989$(1 ) _build_cmds ?=
9090$(1 ) _config_cmds ?=
@@ -207,7 +207,7 @@ $($(1)_preprocessed): | $($(1)_extracted)
207207 touch $$@
208208$($(1 ) _configured) : | $($(1 ) _dependencies) $($(1 ) _preprocessed)
209209 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) ; )
211211 mkdir -p $$(@D )
212212 +cd $$(@D ) ; $($(1 ) _config_env) $(call $(1 ) _config_cmds, $(1 ) )
213213 touch $$@
@@ -228,7 +228,7 @@ $($(1)_postprocessed): | $($(1)_staged)
228228 touch $$@
229229$($(1 ) _cached) : | $($(1 ) _dependencies) $($(1 ) _postprocessed)
230230 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 -
232232 mkdir -p $$(@D )
233233 rm -rf $$(@D ) && mkdir -p $$(@D )
234234 mv $$($(1 ) _staging_dir) /$$(@F ) $$(@ )
0 commit comments