From 7f2b3258d5bbf354c340b898c1f53155091c9199 Mon Sep 17 00:00:00 2001 From: Ondrej Vasik Date: Jun 11 2009 08:26:29 +0000 Subject: temporarily workaround probable kernel issue with TCSADRAIN(#504798) --- diff --git a/coreutils-7.4-sttytcsadrain.patch b/coreutils-7.4-sttytcsadrain.patch new file mode 100644 index 0000000..af25979 --- /dev/null +++ b/coreutils-7.4-sttytcsadrain.patch @@ -0,0 +1,12 @@ +diff -urNp coreutils-7.4-orig/src/stty.c coreutils-7.4/src/stty.c +--- coreutils-7.4-orig/src/stty.c 2009-04-24 14:41:19.000000000 +0200 ++++ coreutils-7.4/src/stty.c 2009-06-11 10:15:41.000000000 +0200 +@@ -1001,7 +1001,7 @@ main (int argc, char **argv) + spurious difference in an uninitialized portion of the structure. */ + DECLARE_ZEROED_AGGREGATE (struct termios, new_mode); + +- if (tcsetattr (STDIN_FILENO, TCSADRAIN, &mode)) ++ if (tcsetattr (STDIN_FILENO, TCSANOW, &mode)) + error (EXIT_FAILURE, errno, "%s", device_name); + + /* POSIX (according to Zlotnick's book) tcsetattr returns zero if diff --git a/coreutils.spec b/coreutils.spec index 88254a5..e61e4d4 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: 7.4 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3+ Group: System Environment/Base Url: http://www.gnu.org/software/coreutils/ @@ -23,6 +23,7 @@ Source203: coreutils-runuser-l.pamd # Our patches Patch100: coreutils-6.10-configuration.patch Patch101: coreutils-6.10-manpages.patch +Patch102: coreutils-7.4-sttytcsadrain.patch # sh-utils Patch703: sh-utils-2.0.11-dateman.patch @@ -102,6 +103,7 @@ the old GNU fileutils, sh-utils, and textutils packages. # Our patches %patch100 -p1 -b .configure %patch101 -p1 -b .manpages +%patch102 -p1 -b .tcsadrain # sh-utils %patch703 -p1 -b .dateman @@ -306,6 +308,10 @@ fi /sbin/runuser %changelog +* Thu Jun 16 2009 Ondrej Vasik 7.4-2 +- temporarily workaround probable kernel issue with + TCSADRAIN(#504798) + * Mon May 25 2009 Ondrej Vasik 7.4-1 - new upstream release 7.4, removed applied patches