mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 11:32:46 +01:00
merge bitcoin#29598: don't use -h with touch on OpenBSD
This commit is contained in:
parent
ebf8ff2a34
commit
af7090c68e
@ -5,13 +5,14 @@ default_build_TAR = tar
|
|||||||
default_build_RANLIB = ranlib
|
default_build_RANLIB = ranlib
|
||||||
default_build_STRIP = strip
|
default_build_STRIP = strip
|
||||||
default_build_NM = nm
|
default_build_NM = nm
|
||||||
|
default_build_TOUCH = touch -h -m -t 200001011200
|
||||||
|
|
||||||
define add_build_tool_func
|
define add_build_tool_func
|
||||||
build_$(build_os)_$1 ?= $$(default_build_$1)
|
build_$(build_os)_$1 ?= $$(default_build_$1)
|
||||||
build_$(build_arch)_$(build_os)_$1 ?= $$(build_$(build_os)_$1)
|
build_$(build_arch)_$(build_os)_$1 ?= $$(build_$(build_os)_$1)
|
||||||
build_$1=$$(build_$(build_arch)_$(build_os)_$1)
|
build_$1=$$(build_$(build_arch)_$(build_os)_$1)
|
||||||
endef
|
endef
|
||||||
$(foreach var,CC CXX AR TAR RANLIB NM STRIP SHA256SUM DOWNLOAD OTOOL INSTALL_NAME_TOOL,$(eval $(call add_build_tool_func,$(var))))
|
$(foreach var,CC CXX AR TAR RANLIB NM STRIP SHA256SUM DOWNLOAD OTOOL INSTALL_NAME_TOOL TOUCH,$(eval $(call add_build_tool_func,$(var))))
|
||||||
define add_build_flags_func
|
define add_build_flags_func
|
||||||
build_$(build_arch)_$(build_os)_$1 += $(build_$(build_os)_$1)
|
build_$(build_arch)_$(build_os)_$1 += $(build_$(build_os)_$1)
|
||||||
build_$1=$$(build_$(build_arch)_$(build_os)_$1)
|
build_$1=$$(build_$(build_arch)_$(build_os)_$1)
|
||||||
|
@ -5,3 +5,5 @@ build_openbsd_SHA256SUM = sha256
|
|||||||
build_openbsd_DOWNLOAD = curl --location --fail --connect-timeout $(DOWNLOAD_CONNECT_TIMEOUT) --retry $(DOWNLOAD_RETRIES) -o
|
build_openbsd_DOWNLOAD = curl --location --fail --connect-timeout $(DOWNLOAD_CONNECT_TIMEOUT) --retry $(DOWNLOAD_RETRIES) -o
|
||||||
|
|
||||||
build_openbsd_TAR = gtar
|
build_openbsd_TAR = gtar
|
||||||
|
# openBSD touch doesn't understand -h
|
||||||
|
build_openbsd_TOUCH = touch -m -t 200001011200
|
||||||
|
@ -245,7 +245,7 @@ $($(1)_postprocessed): | $($(1)_staged)
|
|||||||
$($(1)_cached): | $($(1)_dependencies) $($(1)_postprocessed)
|
$($(1)_cached): | $($(1)_dependencies) $($(1)_postprocessed)
|
||||||
echo Caching $(1)...
|
echo Caching $(1)...
|
||||||
cd $$($(1)_staging_dir)/$(host_prefix); \
|
cd $$($(1)_staging_dir)/$(host_prefix); \
|
||||||
find . ! -name '.stamp_postprocessed' -print0 | TZ=UTC xargs -0r touch -h -m -t 200001011200; \
|
find . ! -name '.stamp_postprocessed' -print0 | TZ=UTC xargs -0r $(build_TOUCH); \
|
||||||
find . ! -name '.stamp_postprocessed' | LC_ALL=C sort | $(build_TAR) --numeric-owner --no-recursion -czf $$($(1)_staging_dir)/$$(@F) -T -
|
find . ! -name '.stamp_postprocessed' | LC_ALL=C sort | $(build_TAR) --numeric-owner --no-recursion -czf $$($(1)_staging_dir)/$$(@F) -T -
|
||||||
mkdir -p $$(@D)
|
mkdir -p $$(@D)
|
||||||
rm -rf $$(@D) && mkdir -p $$(@D)
|
rm -rf $$(@D) && mkdir -p $$(@D)
|
||||||
|
Loading…
Reference in New Issue
Block a user