Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8727501 authored by Dan Willemsen's avatar Dan Willemsen
Browse files

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
parent b9c89bb3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)