Fix unzip timestamps

ninja: Missing `restat`? An output file is older than the most recent input:
 output: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata_intermediates/activity_actions.txt
  input: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata.zip
ninja: Missing `restat`? An output file is older than the most recent input:
 output: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata_intermediates/broadcast_actions.txt
  input: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata.zip
ninja: Missing `restat`? An output file is older than the most recent input:
 output: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata_intermediates/categories.txt
  input: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata.zip
ninja: Missing `restat`? An output file is older than the most recent input:
 output: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata_intermediates/features.txt
  input: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata.zip
ninja: Missing `restat`? An output file is older than the most recent input:
 output: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata_intermediates/service_actions.txt
  input: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata.zip
ninja: Missing `restat`? An output file is older than the most recent input:
 output: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata_intermediates/widgets.txt
  input: out/target/common/obj/PACKAGING/framework-doc-stubs-metadata.zip

Which was caused by unzip setting the timestamps of the output files to 2008.

Test: m out/target/common/obj/PACKAGING/framework-doc-stubs-metadata_intermediates/activity_actions.txt
Change-Id: Ie62b0f52eb9aae11db7899c363780daf7d2c0e95
This commit is contained in:
Dan Willemsen 2020-04-28 01:00:44 -07:00
parent b9c89bb3fa
commit e8727501ca

View File

@ -60,7 +60,7 @@ $(SDK_METADATA): .KATI_IMPLICIT_OUTPUTS := $(filter-out $(SDK_METADATA),$(SDK_ME
$(SDK_METADATA): $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/framework-doc-stubs-metadata.zip
rm -rf $(SDK_METADATA_DIR)
mkdir -p $(SDK_METADATA_DIR)
unzip -qo $< -d $(SDK_METADATA_DIR)
unzip -DDqo $< -d $(SDK_METADATA_DIR)
.PHONY: framework-doc-stubs
framework-doc-stubs: $(SDK_METADATA)