aedi: patch for nasm build date determinism

This commit is contained in:
alexey.lysiuk 2023-04-22 13:58:59 +03:00
parent a2b57a5bca
commit d6d2ba8a3e
2 changed files with 13 additions and 1 deletions

View file

@ -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')

View file

@ -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"