diff --git a/nasm.changes b/nasm.changes index 1136ddf..fcfeb4c 100644 --- a/nasm.changes +++ b/nasm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 16 12:36:14 UTC 2022 - Dirk Müller + +- add reproducible.patch to avoid use of __DATE__ + ------------------------------------------------------------------- Wed Oct 21 14:02:04 UTC 2020 - Dominique Leuenberger diff --git a/nasm.spec b/nasm.spec index 66c86e3..61f82b9 100644 --- a/nasm.spec +++ b/nasm.spec @@ -1,7 +1,7 @@ # # spec file for package nasm # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -23,7 +23,8 @@ Summary: Netwide Assembler (An x86 Assembler) License: BSD-2-Clause Group: Development/Languages/Other URL: https://www.nasm.us/ -Source: http://www.nasm.us/pub/nasm/releasebuilds/%{version}/%{name}-%{version}.tar.xz +Source: https://www.nasm.us/pub/nasm/releasebuilds/%{version}/%{name}-%{version}.tar.xz +Patch0: reproducible.patch BuildRequires: fdupes %description @@ -31,7 +32,7 @@ NASM is a prototype general-purpose x86 assembler. It can currently output several binary formats, including ELF, a.out, Win32, and OS/2. %prep -%autosetup +%autosetup -p0 %build %configure \ diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..3dc05cc --- /dev/null +++ b/reproducible.patch @@ -0,0 +1,54 @@ +Index: disasm/ndisasm.c +=================================================================== +--- disasm/ndisasm.c.orig ++++ 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) +Index: include/ver.h +=================================================================== +--- include/ver.h.orig ++++ 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; +Index: nasmlib/ver.c +=================================================================== +--- nasmlib/ver.c.orig ++++ 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" +Index: asm/nasm.c +=================================================================== +--- asm/nasm.c.orig ++++ 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 compiled on %s\n", ++ nasm_version, nasm_compile_options); + exit(0); + } +