Accepting request 1043325 from home:dirkmueller:Factory
- add reproducible.patch to avoid use of __DATE__ OBS-URL: https://build.opensuse.org/request/show/1043325 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/nasm?expand=0&rev=51
This commit is contained in:
parent
fc46c210eb
commit
3442d51055
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 16 12:36:14 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- add reproducible.patch to avoid use of __DATE__
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 21 14:02:04 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
|
@ -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 \
|
||||
|
54
reproducible.patch
Normal file
54
reproducible.patch
Normal file
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user