From 5e32c353de294df45dd6fd45e5605cf9548d5ed7 Mon Sep 17 00:00:00 2001 From: Roman Rakus Date: Jan 06 2011 17:10:59 +0000 Subject: Builtins like echo and printf won't report errors when output does not succeed due to EPIPE. Signed-off-by: Roman Rakus --- diff --git a/bash-4.1-broken_pipe.patch b/bash-4.1-broken_pipe.patch new file mode 100644 index 0000000..e083374 --- /dev/null +++ b/bash-4.1-broken_pipe.patch @@ -0,0 +1,12 @@ +diff -up bash-4.1/config-top.h.broken_pipe bash-4.1/config-top.h +--- bash-4.1/config-top.h.broken_pipe 2011-01-06 18:01:30.000000000 +0100 ++++ bash-4.1/config-top.h 2011-01-06 18:02:14.000000000 +0100 +@@ -51,7 +51,7 @@ + /* Define DONT_REPORT_BROKEN_PIPE_WRITE_ERRORS if you don't want builtins + like `echo' and `printf' to report errors when output does not succeed + due to EPIPE. */ +-/* #define DONT_REPORT_BROKEN_PIPE_WRITE_ERRORS */ ++#define DONT_REPORT_BROKEN_PIPE_WRITE_ERRORS + + /* The default value of the PATH variable. */ + #ifndef DEFAULT_PATH_VALUE diff --git a/bash.spec b/bash.spec index 0c39793..c544c73 100644 --- a/bash.spec +++ b/bash.spec @@ -6,7 +6,7 @@ Version: %{baseversion}%{patchleveltag} Name: bash Summary: The GNU Bourne Again shell -Release: 4%{?dist} +Release: 5%{?dist} Group: System Environment/Shells License: GPLv3+ Url: http://www.gnu.org/software/bash @@ -59,6 +59,10 @@ Patch124: bash-4.1-examples.patch # with bad array subsrcipt Patch125: bash-4.1-bind_int_variable.patch +# Builtins like echo and printf won't report errors +# when output does not succeed due to EPIPE +Patch126: bash-4.1-broken_pipe.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: texinfo bison @@ -117,6 +121,7 @@ This package contains documentation files for %{name}. %patch123 -p1 -b .nobits %patch124 -p1 -b .examples %patch125 -p1 -b .bind_int_variable +%patch126 -p1 -b .broken_pipe echo %{version} > _distribution echo %{release} > _patchlevel @@ -295,6 +300,10 @@ fi #%doc doc/*.ps doc/*.0 doc/*.html doc/article.txt %changelog +* Thu Jan 06 2011 Roman Rakus - 4.1.9-5 +- Builtins like echo and printf won't report errors + when output does not succeed due to EPIPE + * Thu Dec 16 2010 Roman Rakus - 4.1.9-4 - Drop doc/examples/loadables