From 597ca50e664855e76f933d15f907997b0d415c888295e436dbaa0b012d972aed Mon Sep 17 00:00:00 2001
From: OBS User buildservice-autocommit <null@suse.de>
Date: Thu, 14 Oct 2010 13:06:17 +0000
Subject: [PATCH] Updating link to change in openSUSE:Factory/bash revision 64

OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=e87262c330fd3c958759eea1aca04a8a
---
 bash-4.1-array.dif                             | 18 ------------------
 bash-4.1-patches.tar.bz2                       |  4 ++--
 ...grestart.patch => bash-4.1-sigrestart.patch | 15 +++++++--------
 bash.changes                                   | 14 +++++++++++++-
 bash.spec                                      | 16 ++++++++--------
 5 files changed, 30 insertions(+), 37 deletions(-)
 rename bash-3.2-sigrestart.patch => bash-4.1-sigrestart.patch (72%)

diff --git a/bash-4.1-array.dif b/bash-4.1-array.dif
index 3f9f734..6268da6 100644
--- a/bash-4.1-array.dif
+++ b/bash-4.1-array.dif
@@ -1,21 +1,3 @@
-Andreas Schwab <schwab@linux-m68k.org> writes:
-
-> $ declare -A a=b; unset a
-> *** glibc detected *** /bin/bash: free(): invalid pointer: 0x10091644 ***
-
-And the obvious patch:
-
---- builtins/declare.def
-+++ builtins/declare.def	2010-04-09 17:20:51.000000000 +0000
-@@ -512,7 +512,7 @@ declare_internal (list, local_var)
- 	    {
- 	      /* let bind_{array,assoc}_variable take care of this. */
- 	      if (assoc_p (var))
--		bind_assoc_variable (var, name, "0", value, aflags);
-+		bind_assoc_variable (var, name, savestring ("0"), value, aflags);
- 	      else
- 		bind_array_variable (name, 0, value, aflags);
- 	    }
 Roman Rakus <rrakus@redhat.com> writes:
 > Repeated in the bash-4.0.38 and bash-4.1.7 by the script;
 > #!/bin/bash
diff --git a/bash-4.1-patches.tar.bz2 b/bash-4.1-patches.tar.bz2
index eefced3..0801910 100644
--- a/bash-4.1-patches.tar.bz2
+++ b/bash-4.1-patches.tar.bz2
@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:c09d82089a275831e34dd2a885d50f733265d4929e62c0fce5a5ae623e8d8a0b
-size 3633
+oid sha256:863d13c4739d3ce674f9d4f2d25e65eb1bd6dabe1e7d46be1b41ff053dbc9a1e
+size 4268
diff --git a/bash-3.2-sigrestart.patch b/bash-4.1-sigrestart.patch
similarity index 72%
rename from bash-3.2-sigrestart.patch
rename to bash-4.1-sigrestart.patch
index cce4b18..71a8a30 100644
--- a/bash-3.2-sigrestart.patch
+++ b/bash-4.1-sigrestart.patch
@@ -1,6 +1,6 @@
 --- jobs.c
-+++ jobs.c	2008-01-08 18:10:15.575513000 +0000
-@@ -2417,7 +2417,11 @@ wait_for (pid)
++++ jobs.c	2008-01-08 18:10:16.000000000 +0000
+@@ -2426,7 +2426,11 @@ wait_for (pid)
  	  act.sa_handler = SIG_DFL;
  	  sigemptyset (&act.sa_mask);
  	  sigemptyset (&oact.sa_mask);
@@ -13,12 +13,11 @@
  #  endif
  	  queue_sigchld = 1;
 --- sig.c
-+++ sig.c	2008-04-02 10:42:23.742406622 +0000
-@@ -654,6 +654,17 @@ set_signal_handler (sig, handler)
-     act.sa_flags |= SA_INTERRUPT;	/* XXX */
-   else
-     act.sa_flags |= SA_RESTART;		/* XXX */
-+#else
++++ sig.c	2010-10-14 12:28:48.004425767 +0000
+@@ -658,6 +658,16 @@ set_signal_handler (sig, handler)
+ #else
+   if (sig == SIGCHLD)
+     act.sa_flags |= SA_RESTART;
 +# if !defined(MUST_REINSTALL_SIGHANDLERS)
 +  if (sig != SIGALRM)
 +    act.sa_flags |= SA_RESTART;		/* XXX */
diff --git a/bash.changes b/bash.changes
index 8e605aa..383dd6b 100644
--- a/bash.changes
+++ b/bash.changes
@@ -1,7 +1,19 @@
+-------------------------------------------------------------------
+Thu Oct 14 14:34:15 CEST 2010 - werner@suse.de
+
+- Update bash 4.1 to patch level 9
+  * When declaring an associative array and implicitly assigning a
+    value to element "0", bash does not correctly allocate memory,
+    leading to a segmentation violation when that element or the
+    array itself is unset.
+  * An arriving SIGCHLD will interrupt `slow' system calls such as
+    write(2) to or read(2) from a terminal.  This results in an
+    error message and truncated input or output.
+ 
 -------------------------------------------------------------------
 Fri Sep  3 20:55:30 UTC 2010 - cristian.rodriguez@opensuse.org
 
-- builtin "man2html"generates html manaul with a timestamp
+- builtin "man2html"generates html manual with a timestamp
   that causes the package to be published over and over again.
 
 -------------------------------------------------------------------
diff --git a/bash.spec b/bash.spec
index 158265e..3d97194 100644
--- a/bash.spec
+++ b/bash.spec
@@ -36,7 +36,7 @@ Suggests:       bash-doc = %bash_vers
 %endif
 AutoReqProv:    on
 Version:        4.1
-Release:        15
+Release:        16
 Summary:        The GNU Bourne-Again Shell
 Url:            http://www.gnu.org/software/bash/bash.html
 Source0:        ftp://ftp.gnu.org/gnu/bash/bash-%{bash_vers}.tar.bz2
@@ -60,7 +60,7 @@ Patch9:         bash-4.0-extended_quote.patch
 Patch10:        bash-3.2-printf.patch
 Patch11:        bash-4.0-loadables.dif
 Patch12:        bash-4.1-completion.dif
-Patch14:        bash-3.2-sigrestart.patch
+Patch14:        bash-4.1-sigrestart.patch
 Patch15:        bash-3.2-longjmp.dif
 Patch16:        bash-4.0-setlocale.dif
 Patch17:        bash-4.0-headers.dif
@@ -105,7 +105,7 @@ Group:          Documentation/Man
 Provides:       bash:%{_infodir}/bash.info.gz
 PreReq:         %install_info_prereq
 Version:        4.1
-Release:        15
+Release:        16
 AutoReqProv:    on
 %if %suse_version > 1120
 BuildArch:      noarch
@@ -141,7 +141,7 @@ License:        GPLv2+
 Summary:        Include Files mandatory for Development of bash loadable builtins
 Group:          Development/Languages/C and C++
 Version:        4.1
-Release:        15
+Release:        16
 AutoReqProv:    on
 
 %description -n bash-devel
@@ -161,7 +161,7 @@ License:        GPLv2+
 Summary:        Loadable bash builtins
 Group:          System/Shells
 Version:        4.1
-Release:        15
+Release:        16
 AutoReqProv:    on
 
 %description -n bash-loadables
@@ -230,7 +230,7 @@ Summary:        The Readline Library
 Group:          System/Libraries
 Provides:       bash:/%{_lib}/libreadline.so.%{rl_major}
 Version:        6.1
-Release:        15
+Release:        16
 %if %suse_version > 1020
 Recommends:     readline-doc = %{version}
 %endif
@@ -261,7 +261,7 @@ Summary:        Include Files and Libraries mandatory for Development
 Group:          Development/Libraries/C and C++
 Provides:       bash:%{_libdir}/libreadline.a
 Version:        6.1
-Release:        15
+Release:        16
 Requires:       libreadline6 = %{version}
 Requires:       ncurses-devel
 %if %suse_version > 1020
@@ -292,7 +292,7 @@ Group:          System/Libraries
 Provides:       readline:%{_infodir}/readline.info.gz
 PreReq:         %install_info_prereq
 Version:        6.1
-Release:        15
+Release:        16
 AutoReqProv:    on
 %if %suse_version > 1120
 BuildArch:      noarch