Hello community,
here is the log from the commit of package bash for openSUSE:Factory
checked in at Thu Oct 14 15:06:16 CEST 2010.
--------
--- bash/bash.changes 2010-09-03 22:57:34.000000000 +0200
+++ bash/bash.changes 2010-10-14 14:41:19.000000000 +0200
@@ -1,0 +2,12 @@
+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.
+
+-------------------------------------------------------------------
@@ -4 +16 @@
-- builtin "man2html"generates html manaul with a timestamp
+- builtin "man2html"generates html manual with a timestamp
calling whatdependson for head-i586
Old:
----
bash-3.2-sigrestart.patch
New:
----
bash-4.1-sigrestart.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ bash.spec ++++++
--- /var/tmp/diff_new_pack.CKx4uU/_old 2010-10-14 15:05:41.000000000 +0200
+++ /var/tmp/diff_new_pack.CKx4uU/_new 2010-10-14 15:05:41.000000000 +0200
@@ -36,7 +36,7 @@
%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 @@
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 @@
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 @@
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 @@
Summary: Loadable bash builtins
Group: System/Shells
Version: 4.1
-Release: 15
+Release: 16
AutoReqProv: on
%description -n bash-loadables
@@ -230,7 +230,7 @@
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 @@
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 @@
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
++++++ bash-4.1-array.dif ++++++
--- /var/tmp/diff_new_pack.CKx4uU/_old 2010-10-14 15:05:41.000000000 +0200
+++ /var/tmp/diff_new_pack.CKx4uU/_new 2010-10-14 15:05:41.000000000 +0200
@@ -1,21 +1,3 @@
-Andreas Schwab 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 writes:
Repeated in the bash-4.0.38 and bash-4.1.7 by the script;
#!/bin/bash
++++++ bash-4.1-patches.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.1-patches/bash41-008 new/bash-4.1-patches/bash41-008
--- old/bash-4.1-patches/bash41-008 1970-01-01 01:00:00.000000000 +0100
+++ new/bash-4.1-patches/bash41-008 2010-10-08 17:08:56.000000000 +0200
@@ -0,0 +1,49 @@
+ BASH PATCH REPORT
+ =================
+
+Bash-Release: 4.1
+Patch-ID: bash41-008
+
+Bug-Reported-by: Dennis van Dok
+Bug-Reference-ID: <4BBF2501.5050703@gmail.com>
+Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2010-04/msg00038.html
+
+Bug-Description:
+
+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.
+
+Patch (apply with `patch -p0'):
+
+*** ../bash-4.1-patched/builtins/declare.def 2009-11-25 19:42:00.000000000 -0500
+--- builtins/declare.def 2010-05-30 18:25:21.000000000 -0400
+***************
+*** 513,517 ****
+ /* let bind_{array,assoc}_variable take care of this. */
+ if (assoc_p (var))
+! bind_assoc_variable (var, name, "0", value, aflags);
+ else
+ bind_array_variable (name, 0, value, aflags);
+--- 519,523 ----
+ /* let bind_{array,assoc}_variable take care of this. */
+ if (assoc_p (var))
+! bind_assoc_variable (var, name, savestring ("0"), value, aflags);
+ else
+ bind_array_variable (name, 0, value, aflags);
+*** ../bash-4.1-patched/patchlevel.h 2009-10-01 16:39:22.000000000 -0400
+--- patchlevel.h 2010-01-14 09:38:08.000000000 -0500
+***************
+*** 26,30 ****
+ looks for to find the patch level (for the sccs version string). */
+
+! #define PATCHLEVEL 7
+
+ #endif /* _PATCHLEVEL_H_ */
+--- 26,30 ----
+ looks for to find the patch level (for the sccs version string). */
+
+! #define PATCHLEVEL 8
+
+ #endif /* _PATCHLEVEL_H_ */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.1-patches/bash41-009 new/bash-4.1-patches/bash41-009
--- old/bash-4.1-patches/bash41-009 1970-01-01 01:00:00.000000000 +0100
+++ new/bash-4.1-patches/bash41-009 2010-10-08 17:09:12.000000000 +0200
@@ -0,0 +1,48 @@
+ BASH PATCH REPORT
+ =================
+
+Bash-Release: 4.1
+Patch-ID: bash41-009
+
+Bug-Reported-by: Tomas Trnka
+Bug-Reference-ID: <201003242030.02166.tomastrnka@gmx.com>
+Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2010-03/msg00090.html
+
+Bug-Description:
+
+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.
+
+Patch (apply with `patch -p0'):
+
+*** ../bash-4.1-patched/sig.c Fri Aug 14 16:31:52 2009
+--- sig.c Fri Mar 26 22:34:11 2010
+***************
+*** 655,660 ****
+--- 655,663 ----
+ act.sa_flags |= SA_INTERRUPT; /* XXX */
+ else
+ act.sa_flags |= SA_RESTART; /* XXX */
++ #else
++ if (sig == SIGCHLD)
++ act.sa_flags |= SA_RESTART;
+ #endif
+ sigemptyset (&act.sa_mask);
+ sigemptyset (&oact.sa_mask);
+*** ../bash-4.1-patched/patchlevel.h 2009-10-01 16:39:22.000000000 -0400
+--- patchlevel.h 2010-01-14 09:38:08.000000000 -0500
+***************
+*** 26,30 ****
+ looks for to find the patch level (for the sccs version string). */
+
+! #define PATCHLEVEL 8
+
+ #endif /* _PATCHLEVEL_H_ */
+--- 26,30 ----
+ looks for to find the patch level (for the sccs version string). */
+
+! #define PATCHLEVEL 9
+
+ #endif /* _PATCHLEVEL_H_ */
+
++++++ bash-3.2-sigrestart.patch -> bash-4.1-sigrestart.patch ++++++
--- bash/bash-3.2-sigrestart.patch 2010-02-15 18:15:18.000000000 +0100
+++ bash/bash-4.1-sigrestart.patch 2010-10-14 14:41:18.000000000 +0200
@@ -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 */
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org