From e7c6017bf55eb4e29e01aa85556733988b94d273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Wed, 28 Aug 2024 08:32:06 +0200 Subject: [PATCH] compile-scheme: Honor SOURCE_DATE_EPOCH (#16) This allows the generated vst files to become reproducible as they otherwise differ by the build date: -INSERT INTO metadata VALUES('scheme-compiled-date','2024-08-26 19:46:00 +0000'); +INSERT INTO metadata VALUES('scheme-compiled-date','2024-08-26 19:56:08 +0000'); See https://reproducible-builds.org/docs/source-date-epoch/ for details --- compile-scheme.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile-scheme.rb b/compile-scheme.rb index f4c56b0..bf2127e 100755 --- a/compile-scheme.rb +++ b/compile-scheme.rb @@ -192,7 +192,7 @@ def set_scheme_details() d[:langCode] = FFI::MemoryPointer.from_string($scheme_details[:langCode]) d[:displayName] = FFI::MemoryPointer.from_string($scheme_details[:displayName]) d[:author] = FFI::MemoryPointer.from_string($scheme_details[:author]) - d[:compiledDate] = FFI::MemoryPointer.from_string(Time.now.to_s) + d[:compiledDate] = FFI::MemoryPointer.from_string(ENV['SOURCE_DATE_EPOCH'] || Time.now.to_s) if $scheme_details[:isStable].nil? d[:isStable] = 0 else