From fa2786a2764e451c6bde9784d470868633b7c896e0833fc53b016309602086d7 Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Tue, 3 Feb 2015 22:29:11 +0000 Subject: [PATCH] Accepting request 283860 from home:elvigia:branches:devel:tools:compiler - yasm-re2c-nogendate.patch: Do not add date and time to files generated with builtin old/different implementation of re2c. [BNC#915937] OBS-URL: https://build.opensuse.org/request/show/283860 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/yasm?expand=0&rev=23 --- yasm-re2c-nogendate.patch | 15 +++++++++++++++ yasm.changes | 7 +++++++ yasm.spec | 5 +++-- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 yasm-re2c-nogendate.patch diff --git a/yasm-re2c-nogendate.patch b/yasm-re2c-nogendate.patch new file mode 100644 index 0000000..8cca6b0 --- /dev/null +++ b/yasm-re2c-nogendate.patch @@ -0,0 +1,15 @@ +--- yasm-1.3.0.orig/tools/re2c/parser.c ++++ yasm-1.3.0/tools/re2c/parser.c +@@ -232,9 +232,9 @@ void parse(FILE *i, FILE *o){ + + peektok = NONE; + +- fputs("/* Generated by re2c 0.9.1-C on ", o); +- fprintf(o, "%-24s", ctime(&now)); +- fputs(" */\n", o); oline+=2; ++ //fputs("/* Generated by re2c 0.9.1-C on ", o); ++ //fprintf(o, "%-24s", ctime(&now)); ++ //fputs(" */\n", o); oline+=2; + + in = Scanner_new(i); + diff --git a/yasm.changes b/yasm.changes index f8111c6..3c0b752 100644 --- a/yasm.changes +++ b/yasm.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Feb 3 11:45:57 UTC 2015 - crrodriguez@opensuse.org + +- yasm-re2c-nogendate.patch: Do not add date and time + to files generated with builtin old/different implementation + of re2c. [BNC#915937] + ------------------------------------------------------------------- Fri Oct 17 11:42:03 UTC 2014 - idonmez@suse.com diff --git a/yasm.spec b/yasm.spec index 2ff7273..1e65660 100644 --- a/yasm.spec +++ b/yasm.spec @@ -1,7 +1,7 @@ # # spec file for package yasm # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,6 +26,7 @@ Url: http://www.tortall.net/projects/yasm/ Source: http://www.tortall.net/projects/yasm/releases/yasm-%{version}.tar.gz Patch0: %{name}-no-build-date.patch Patch1: %{name}-no-rpm-opt-flags.patch +Patch2: yasm-re2c-nogendate.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-base BuildRequires: xmlto @@ -50,7 +51,7 @@ libyasm. %setup -q -n %{name}-%{version} %patch0 -p1 %patch1 - +%patch2 -p1 %build export CFLAGS="%{optflags}" %configure \