From e8727501ca24faa99af449915cc101d2dda5dae4 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Tue, 28 Apr 2020 01:00:44 -0700 Subject: [PATCH] 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 --- Android.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Android.mk b/Android.mk index d3627e118ae33..d8532489a7865 100644 --- a/Android.mk +++ b/Android.mk @@ -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)