rpms/coreutils/devel coreutils-7.4-sttytcsadrain.patch, NONE, 1.1 coreutils.spec, 1.260, 1.261

Ondrej Vasik ovasik at fedoraproject.org
Thu Jun 11 08:26:59 UTC 2009


Author: ovasik

Update of /cvs/extras/rpms/coreutils/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv31814

Modified Files:
	coreutils.spec 
Added Files:
	coreutils-7.4-sttytcsadrain.patch 
Log Message:
temporarily workaround probable kernel issue with TCSADRAIN(#504798)

coreutils-7.4-sttytcsadrain.patch:

--- NEW FILE coreutils-7.4-sttytcsadrain.patch ---
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


Index: coreutils.spec
===================================================================
RCS file: /cvs/extras/rpms/coreutils/devel/coreutils.spec,v
retrieving revision 1.260
retrieving revision 1.261
diff -u -p -r1.260 -r1.261
--- coreutils.spec	25 May 2009 12:11:34 -0000	1.260
+++ coreutils.spec	11 Jun 2009 08:26:29 -0000	1.261
@@ -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 tex
 # 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 <ovasik at redhat.com> 7.4-2
+- temporarily workaround probable kernel issue with
+  TCSADRAIN(#504798)
+
 * Mon May 25 2009 Ondrej Vasik <ovasik at redhat.com> 7.4-1
 - new upstream release 7.4, removed applied patches
 




More information about the fedora-extras-commits mailing list