From 028dadfb1349cd10d4a93a04ef86f22e28e2f365 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Thu, 25 Sep 2014 13:33:49 -0700 Subject: [PATCH] bash: sync up with latest version in Gentoo This fixes another piece of the mess but the story isn't over yet. http://www.openwall.com/lists/oss-security/2014/09/25/10 https://bugs.gentoo.org/show_bug.cgi?id=523592 --- ...{bash-4.2_p48-r1.ebuild => bash-4.2_p48-r2.ebuild} | 5 +++-- .../app-shells/bash/files/bash-eol-pushback.patch | 11 +++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) rename sdk_container/src/third_party/coreos-overlay/app-shells/bash/{bash-4.2_p48-r1.ebuild => bash-4.2_p48-r2.ebuild} (95%) create mode 100644 sdk_container/src/third_party/coreos-overlay/app-shells/bash/files/bash-eol-pushback.patch diff --git a/sdk_container/src/third_party/coreos-overlay/app-shells/bash/bash-4.2_p48-r1.ebuild b/sdk_container/src/third_party/coreos-overlay/app-shells/bash/bash-4.2_p48-r2.ebuild similarity index 95% rename from sdk_container/src/third_party/coreos-overlay/app-shells/bash/bash-4.2_p48-r1.ebuild rename to sdk_container/src/third_party/coreos-overlay/app-shells/bash/bash-4.2_p48-r2.ebuild index 06638f6889..ce52e745e5 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-shells/bash/bash-4.2_p48-r1.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/app-shells/bash/bash-4.2_p48-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-4.2_p48.ebuild,v 1.1 2014/09/24 17:23:53 polynomial-c Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-4.2_p48-r1.ebuild,v 1.4 2014/09/25 11:02:20 armin76 Exp $ EAPI="4" @@ -34,7 +34,7 @@ SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz $(patches)" LICENSE="GPL-3" SLOT="0" -KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" IUSE="afs bashlogger examples mem-scramble +net nls plugins +readline vanilla" DEPEND=">=sys-libs/ncurses-5.2-r2 @@ -84,6 +84,7 @@ src_prepare() { if ! use vanilla ; then epatch "${FILESDIR}"/${PN}-4.2-speed-up-read-N.patch fi + epatch "${FILESDIR}"/bash-eol-pushback.patch #523592 epatch_user } diff --git a/sdk_container/src/third_party/coreos-overlay/app-shells/bash/files/bash-eol-pushback.patch b/sdk_container/src/third_party/coreos-overlay/app-shells/bash/files/bash-eol-pushback.patch new file mode 100644 index 0000000000..964b91f51e --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-shells/bash/files/bash-eol-pushback.patch @@ -0,0 +1,11 @@ +*** ../bash-20140912/parse.y 2014-08-26 15:09:42.000000000 -0400 +--- parse.y 2014-09-24 22:47:28.000000000 -0400 +*************** +*** 2959,2962 **** +--- 2959,2964 ---- + word_desc_to_read = (WORD_DESC *)NULL; + ++ eol_ungetc_lookahead = 0; ++ + current_token = '\n'; /* XXX */ + last_read_token = '\n';