1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
From: Val Lorentz <progval@progval.net>
Date: Sun, 29 Jan 2017 17:39:54 -0800
Subject: [PATCH] debian: debian/patches/04-reproducible-build.patch
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 49fa00e..3b12178 100644
--- a/asm/nasm.c
+++ b/asm/nasm.c
@@ -957,8 +957,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 c1bf9dc..0e2c494 100644
--- a/disasm/ndisasm.c
+++ b/disasm/ndisasm.c
@@ -95,8 +95,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 05888bd..e4fa626 100644
--- a/include/ver.h
+++ b/include/ver.h
@@ -11,7 +11,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 174b68e..3a41501 100644
--- a/nasmlib/ver.c
+++ b/nasmlib/ver.c
@@ -6,7 +6,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"
|