Hello community,
here is the log from the commit of package bash for openSUSE:Factory
checked in at Wed Jun 22 10:46:35 CEST 2011.
--------
--- bash/bash.changes 2011-03-22 13:17:49.000000000 +0100
+++ /mounts/work_src_done/STABLE/bash/bash.changes 2011-06-21 19:03:05.000000000 +0200
@@ -1,0 +2,23 @@
+Tue Jun 21 18:58:56 CEST 2011 - werner@suse.de
+
+- Add fix from upstream mailing list to avoid crash
+
+-------------------------------------------------------------------
+Fri Jun 17 11:43:00 UTC 2011 - coolo@novell.com
+
+- use original source URLs
+
+-------------------------------------------------------------------
+Thu Jun 16 15:03:04 CEST 2011 - werner@suse.de
+
+- Fix the fix for bug bnc#681286 to be able to avoid both a not
+ expanding glob as well as the infinit loop in multi byte locale
+
+-------------------------------------------------------------------
+Thu May 12 12:04:28 CEST 2011 - werner@suse.de
+
+- Update bash 4.2 to patch level 10
+- Add patch from upstream to avoid loosing quoted-nulls
+- Add modified patch to avod endless loop in UTF-8 locale
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
bash-4.2.tar.bz2
readline-6.2.tar.bz2
New:
----
_service:download_files:bash-4.2.tar.gz
_service:download_files:readline-6.2.tar.gz
bash-4.2.tar.gz
readline-6.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ bash.spec ++++++
--- /var/tmp/diff_new_pack.MHtiet/_old 2011-06-22 10:46:23.000000000 +0200
+++ /var/tmp/diff_new_pack.MHtiet/_new 2011-06-22 10:46:23.000000000 +0200
@@ -37,11 +37,11 @@
%endif
AutoReqProv: on
Version: 4.2
-Release: 4
+Release: 5
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
-Source1: ftp://ftp.gnu.org/gnu/readline/readline-%{rl_vers}.tar.bz2
+Source0: ftp://ftp.gnu.org/gnu/bash/bash-%{bash_vers}.tar.gz
+Source1: ftp://ftp.gnu.org/gnu/readline/readline-%{rl_vers}.tar.gz
Source2: bash-%{bash_vers}-patches.tar.bz2
Source3: readline-%{rl_vers}-patches.tar.bz2
Source4: run-tests
@@ -106,7 +106,7 @@
Provides: bash:%{_infodir}/bash.info.gz
PreReq: %install_info_prereq
Version: 4.2
-Release: 4
+Release: 5
AutoReqProv: on
%if %suse_version > 1120
BuildArch: noarch
@@ -142,7 +142,7 @@
Summary: Include Files mandatory for Development of bash loadable builtins
Group: Development/Languages/C and C++
Version: 4.2
-Release: 4
+Release: 5
AutoReqProv: on
%description -n bash-devel
@@ -162,7 +162,7 @@
Summary: Loadable bash builtins
Group: System/Shells
Version: 4.2
-Release: 4
+Release: 5
AutoReqProv: on
%description -n bash-loadables
@@ -231,7 +231,7 @@
Group: System/Libraries
Provides: bash:/%{_lib}/libreadline.so.%{rl_major}
Version: 6.2
-Release: 4
+Release: 5
%if %suse_version > 1020
Recommends: readline-doc = %{version}
%endif
@@ -262,7 +262,7 @@
Group: Development/Libraries/C and C++
Provides: bash:%{_libdir}/libreadline.a
Version: 6.2
-Release: 4
+Release: 5
Requires: libreadline6 = %{version}
Requires: ncurses-devel
%if %suse_version > 1020
@@ -293,7 +293,7 @@
Provides: readline:%{_infodir}/readline.info.gz
PreReq: %install_info_prereq
Version: 6.2
-Release: 4
+Release: 5
AutoReqProv: on
%if %suse_version > 1120
BuildArch: noarch
++++++ bash-4.2-patches.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash-4.2-quoted-nulls.patch new/bash-4.2-patches/bash-4.2-quoted-nulls.patch
--- old/bash-4.2-patches/bash-4.2-quoted-nulls.patch 1970-01-01 01:00:00.000000000 +0100
+++ new/bash-4.2-patches/bash-4.2-quoted-nulls.patch 2011-05-12 10:59:19.000000000 +0200
@@ -0,0 +1,18 @@
+*** ../bash-4.2-patched/subst.c 2011-03-06 14:11:11.000000000 -0500
+--- subst.c 2011-05-11 11:23:33.000000000 -0400
+***************
+*** 3707,3711 ****
+ }
+ else if (string[i] == CTLNUL)
+! i++;
+
+ prev_i = i;
+--- 3710,3717 ----
+ }
+ else if (string[i] == CTLNUL)
+! {
+! i++;
+! continue;
+! }
+
+ prev_i = i;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash-4.2-read-assoc-array.patch new/bash-4.2-patches/bash-4.2-read-assoc-array.patch
--- old/bash-4.2-patches/bash-4.2-read-assoc-array.patch 1970-01-01 01:00:00.000000000 +0100
+++ new/bash-4.2-patches/bash-4.2-read-assoc-array.patch 2011-06-21 18:54:47.000000000 +0200
@@ -0,0 +1,40 @@
+*** ../bash-4.2-patched/builtins/read.def 2011-01-04 11:43:36.000000000 -0500
+--- builtins/read.def 2011-06-21 10:31:02.000000000 -0400
+***************
+*** 456,460 ****
+ add_unwind_protect (xfree, input_string);
+ interrupt_immediately++;
+- terminate_immediately++;
+
+ unbuffered_read = (nchars > 0) || (delim != '\n') || input_is_pipe;
+--- 456,459 ----
+***************
+*** 513,516 ****
+--- 512,516 ----
+ if (retval <= 0)
+ {
++ CHECK_TERMSIG;
+ eof = 1;
+ break;
+***************
+*** 623,627 ****
+
+ interrupt_immediately--;
+- terminate_immediately--;
+
+ #if defined (ARRAY_VARS)
+--- 623,626 ----
+***************
+*** 643,646 ****
+--- 642,651 ----
+ return EXECUTION_FAILURE; /* readonly or noassign */
+ }
++ if (assoc_p (var))
++ {
++ builtin_error (_("%s: cannot convert associative to indexed array"), arrayname);
++ xfree (input_string);
++ return EXECUTION_FAILURE; /* existing associative array */
++ }
+ array_flush (array_cell (var));
+
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash-4.2-xdupmbstowcs2.patch new/bash-4.2-patches/bash-4.2-xdupmbstowcs2.patch
--- old/bash-4.2-patches/bash-4.2-xdupmbstowcs2.patch 1970-01-01 01:00:00.000000000 +0100
+++ new/bash-4.2-patches/bash-4.2-xdupmbstowcs2.patch 2011-06-16 15:02:11.000000000 +0200
@@ -0,0 +1,61 @@
+--- lib/glob/glob.c
++++ lib/glob/glob.c 2011-06-16 14:37:49.223929065 +0200
+@@ -258,7 +258,7 @@
+ {
+ mbstate_t ps;
+ size_t len, n;
+- wchar_t *wpathname;
++ wchar_t *wpathname = (wchar_t*)0;
+ int i, j;
+ wchar_t *orig_wpathname;
+
+--- lib/glob/xmbsrtowcs.c
++++ lib/glob/xmbsrtowcs.c 2011-06-16 14:38:29.719925447 +0200
+@@ -176,11 +176,21 @@
+ /* Conversion failed. */
+ if (wcslength == (size_t)-1)
+ {
+- free (wsbuf);
++ if (wsbuf)
++ free (wsbuf);
+ *destp = NULL;
+ return (size_t)-1;
+ }
+
++ /* Conversion failed. */
++ if (wcslength == 0)
++ {
++ if (wsbuf)
++ free (wsbuf);
++ *destp = NULL;
++ return (size_t)-2;
++ }
++
+ /* Resize the buffer if it is not large enough. */
+ if (wsbuf_size < wcnum+wcslength+1) /* 1 for the L'\0' or the potential L'\\' */
+ {
+@@ -191,7 +201,8 @@
+ wstmp = (wchar_t *) realloc (wsbuf, wsbuf_size * sizeof (wchar_t));
+ if (wstmp == NULL)
+ {
+- free (wsbuf);
++ if (wsbuf)
++ free (wsbuf);
+ *destp = NULL;
+ return (size_t)-1;
+ }
+@@ -260,7 +265,13 @@
+
+ #if HAVE_MBSNRTOWCS
+ if (indicesp == NULL)
+- return (xdupmbstowcs2 (destp, src));
++ {
++ size_t ret = (xdupmbstowcs2 (destp, src));
++ if (ret == (size_t)-1)
++ return ret;
++ if (ret != (size_t)-2)
++ return ret;
++ }
+ #endif
+
+ memset (&state, '\0', sizeof(mbstate_t));
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash42-009 new/bash-4.2-patches/bash42-009
--- old/bash-4.2-patches/bash42-009 1970-01-01 01:00:00.000000000 +0100
+++ new/bash-4.2-patches/bash42-009 2011-05-03 18:07:03.000000000 +0200
@@ -0,0 +1,82 @@
+ BASH PATCH REPORT
+ =================
+
+Bash-Release: 4.2
+Patch-ID: bash42-009
+
+Bug-Reported-by: