From d6d2ba8a3e0793c1e7ea87d732803a1d3efc1052 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 22 Apr 2023 13:58:59 +0300 Subject: [PATCH] aedi: patch for nasm build date determinism --- aedi/target/tool_tier1.py | 3 ++- patch/nasm-deterministic-date.diff | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 patch/nasm-deterministic-date.diff diff --git a/aedi/target/tool_tier1.py b/aedi/target/tool_tier1.py index 7a3bae6d..f3eea82c 100644 --- a/aedi/target/tool_tier1.py +++ b/aedi/target/tool_tier1.py @@ -124,7 +124,8 @@ class NasmTarget(base.ConfigureMakeDependencyTarget): def prepare_source(self, state: BuildState): state.download_source( 'https://www.nasm.us/pub/nasm/releasebuilds/2.16.01/nasm-2.16.01.tar.xz', - 'c77745f4802375efeee2ec5c0ad6b7f037ea9c87c92b149a9637ff099f162558') + 'c77745f4802375efeee2ec5c0ad6b7f037ea9c87c92b149a9637ff099f162558', + patches='nasm-deterministic-date') def detect(self, state: BuildState) -> bool: return state.has_source_file('nasm.txt') diff --git a/patch/nasm-deterministic-date.diff b/patch/nasm-deterministic-date.diff new file mode 100644 index 00000000..94408c5e --- /dev/null +++ b/patch/nasm-deterministic-date.diff @@ -0,0 +1,11 @@ +--- a/nasmlib/ver.c ++++ b/nasmlib/ver.c +@@ -36,7 +36,7 @@ + + /* This is printed when entering nasm -v */ + const char nasm_version[] = NASM_VER; +-const char nasm_date[] = __DATE__; ++const char nasm_date[] = "Dec 21 2022"; + const char nasm_compile_options[] = "" + #ifdef DEBUG + " with -DDEBUG"