mirror of
https://github.com/oasislinux/oasis.git
synced 2026-09-28 10:10:01 +02:00
71 lines
2.0 KiB
Diff
71 lines
2.0 KiB
Diff
From b6860ea26851edb599bfe0e2d08d212c6a7aaeec Mon Sep 17 00:00:00 2001
|
|
From: Val Lorentz <progval@progval.net>
|
|
Date: Sun, 29 Jan 2017 17:39:54 -0800
|
|
Subject: [PATCH] Remove date from version info to make build reproducible
|
|
|
|
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
|
|
---
|
|
asm/nasm.c | 4 ++--
|
|
disasm/ndisasm.c | 4 ++--
|
|
include/ver.h | 1 -
|
|
nasmlib/ver.c | 1 -
|
|
4 files changed, 4 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/asm/nasm.c b/asm/nasm.c
|
|
index e5ae89af..70024db5 100644
|
|
--- a/asm/nasm.c
|
|
+++ b/asm/nasm.c
|
|
@@ -977,8 +977,8 @@ static const struct textargs textopts[] = {
|
|
|
|
static void show_version(void)
|
|
{
|
|
- printf("NASM version %s compiled on %s%s\n",
|
|
- nasm_version, nasm_date, nasm_compile_options);
|
|
+ printf("NASM version %s%s\n",
|
|
+ nasm_version, nasm_compile_options);
|
|
exit(0);
|
|
}
|
|
|
|
diff --git a/disasm/ndisasm.c b/disasm/ndisasm.c
|
|
index 01e0c557..7424b282 100644
|
|
--- a/disasm/ndisasm.c
|
|
+++ b/disasm/ndisasm.c
|
|
@@ -120,8 +120,8 @@ int main(int argc, char **argv)
|
|
case 'r':
|
|
case 'v':
|
|
fprintf(stderr,
|
|
- "NDISASM version %s compiled on %s\n",
|
|
- nasm_version, nasm_date);
|
|
+ "NDISASM version %s\n",
|
|
+ nasm_version);
|
|
return 0;
|
|
case 'u': /* -u for -b 32, -uu for -b 64 */
|
|
if (bits < 64)
|
|
diff --git a/include/ver.h b/include/ver.h
|
|
index a5bbf384..7a6ce42a 100644
|
|
--- a/include/ver.h
|
|
+++ b/include/ver.h
|
|
@@ -41,7 +41,6 @@
|
|
#include "compiler.h"
|
|
|
|
extern const char nasm_version[];
|
|
-extern const char nasm_date[];
|
|
extern const char nasm_compile_options[];
|
|
|
|
extern bool reproducible;
|
|
diff --git a/nasmlib/ver.c b/nasmlib/ver.c
|
|
index 96260b6c..8f02eaca 100644
|
|
--- a/nasmlib/ver.c
|
|
+++ b/nasmlib/ver.c
|
|
@@ -36,7 +36,6 @@
|
|
|
|
/* This is printed when entering nasm -v */
|
|
const char nasm_version[] = NASM_VER;
|
|
-const char nasm_date[] = __DATE__;
|
|
const char nasm_compile_options[] = ""
|
|
#ifdef DEBUG
|
|
" with -DDEBUG"
|
|
--
|
|
2.28.0
|
|
|