From 9938e5be66cf27189192878fbc940b326abb2b1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Va=C5=A1=C3=ADk?= Date: Thu, 18 Aug 2011 17:58:14 +0200 Subject: [PATCH] variable u should be static in uname processor type patch --- coreutils-8.2-uname-processortype.patch | 4 ++-- coreutils.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/coreutils-8.2-uname-processortype.patch b/coreutils-8.2-uname-processortype.patch index 166520d..4c83df8 100644 --- a/coreutils-8.2-uname-processortype.patch +++ b/coreutils-8.2-uname-processortype.patch @@ -16,7 +16,7 @@ diff -urNp coreutils-8.2-orig/src/uname.c coreutils-8.2/src/uname.c } +#else + { -+ struct utsname u; ++ static struct utsname u; + uname(&u); + element = u.machine; + } @@ -38,7 +38,7 @@ diff -urNp coreutils-8.2-orig/src/uname.c coreutils-8.2/src/uname.c } +#else + { -+ struct utsname u; ++ static struct utsname u; + uname(&u); + element = u.machine; + if(strlen(element)==4 && element[0]=='i' && element[2]=='8' && element[3]=='6') diff --git a/coreutils.spec b/coreutils.spec index f69eb9a..6ae3334 100644 --- a/coreutils.spec +++ b/coreutils.spec @@ -1,7 +1,7 @@ Summary: A set of basic GNU tools commonly used in shell scripts Name: coreutils Version: 8.12 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv3+ Group: System Environment/Base Url: http://www.gnu.org/software/coreutils/ @@ -335,6 +335,9 @@ fi %{_libdir}/coreutils %changelog +* Thu Aug 18 2011 Ondrej Vasik - 8.12-5 +- variable "u" should be static in uname processor type patch + * Thu Aug 11 2011 Ondrej Vasik - 8.12-4 - deprecate non-upstream cp -Z/--context (install should be used instead of it), make it working if destination exists