From d62833e747fd718ed3cd2dd601c41abbcb01a52a315368749db8370ee60d93b0 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 28 May 2012 08:19:57 +0000 Subject: [PATCH] - strim white space in check_gcc_output - this reduces the time to check an openSUSE-images log file (38M mostly whitespace due to zypper output) from several hours to some seconds OBS-URL: https://build.opensuse.org/package/show/Base:System/post-build-checks?expand=0&rev=62 --- post-build-checks.changes | 7 +++++++ post-build-checks.spec | 4 +++- strim-whitespace.diff | 12 ++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 strim-whitespace.diff diff --git a/post-build-checks.changes b/post-build-checks.changes index 6a92523..2eb4be4 100644 --- a/post-build-checks.changes +++ b/post-build-checks.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon May 28 08:18:18 UTC 2012 - coolo@suse.com + +- strim white space in check_gcc_output - this reduces the time + to check an openSUSE-images log file (38M mostly whitespace due + to zypper output) from several hours to some seconds + ------------------------------------------------------------------- Tue Dec 20 10:14:40 UTC 2011 - werner@suse.de diff --git a/post-build-checks.spec b/post-build-checks.spec index 44e7856..815d746 100644 --- a/post-build-checks.spec +++ b/post-build-checks.spec @@ -1,7 +1,7 @@ # # spec file for package post-build-checks # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -34,6 +34,7 @@ Url: http://gitorious.org/opensuse/post-build-checks # Source0: %{name}-%{version}.tar.bz2 Patch0: new.diff +Patch1: strim-whitespace.diff BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -51,6 +52,7 @@ it may not be a good idea to install this to a running system: %prep %setup -q %patch0 -p1 +%patch1 -p1 %build # nothing to do diff --git a/strim-whitespace.diff b/strim-whitespace.diff new file mode 100644 index 0000000..48ef99c --- /dev/null +++ b/strim-whitespace.diff @@ -0,0 +1,12 @@ +Index: post-build-checks-1.0/checks-data/check_gcc_output +=================================================================== +--- post-build-checks-1.0.orig/checks-data/check_gcc_output 2011-10-20 11:57:54.000000000 +0200 ++++ post-build-checks-1.0/checks-data/check_gcc_output 2012-05-28 10:17:58.937350253 +0200 +@@ -197,6 +197,7 @@ my $in_build_stage = 0; + + while (<>) { + chomp; ++ s, +, ,g; + next if (m,/usr/include/c\+\+/,); + + $in_build_stage = 1 if (/^Executing\(\%build/);