mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-12 07:26:58 +02:00
sed: upgraded package to upstream
Upgraded sys-apps/sed to version 4.2.1-r1 on amd64, arm, x86 BUG=chromium-os:32831 TEST=`cbuildbot chromiumos-sdk` worked Change-Id: I0f7a935506510dbc34ae414cea3bd26ba2470b91 Reviewed-on: https://gerrit.chromium.org/gerrit/39055 Reviewed-by: David James <davidjames@chromium.org> Commit-Ready: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
parent
758ee37454
commit
f06fbee965
@ -1,12 +1,12 @@
|
|||||||
DEFINED_PHASES=compile install unpack
|
DEFINED_PHASES=compile install unpack
|
||||||
DEPEND=nls? ( virtual/libintl ) acl? ( virtual/acl ) nls? ( sys-devel/gettext )
|
DEPEND=acl? ( virtual/acl ) nls? ( virtual/libintl ) nls? ( sys-devel/gettext )
|
||||||
DESCRIPTION=Super-useful stream editor
|
DESCRIPTION=Super-useful stream editor
|
||||||
HOMEPAGE=http://sed.sourceforge.net/
|
HOMEPAGE=http://sed.sourceforge.net/
|
||||||
IUSE=acl nls selinux static
|
IUSE=acl nls selinux static
|
||||||
KEYWORDS=alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd
|
KEYWORDS=alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd
|
||||||
LICENSE=GPL-3
|
LICENSE=GPL-3
|
||||||
RDEPEND=nls? ( virtual/libintl ) acl? ( virtual/acl )
|
RDEPEND=acl? ( virtual/acl ) nls? ( virtual/libintl )
|
||||||
SLOT=0
|
SLOT=0
|
||||||
SRC_URI=mirror://gnu/sed/sed-4.2.1.tar.bz2
|
SRC_URI=mirror://gnu/sed/sed-4.2.1.tar.bz2
|
||||||
_eclasses_=eutils 33ef77a15337022e05342d2c772a7a5a flag-o-matic 01a8b1eb019305bc4b4a8bd0b04e4cd8 multilib 5f4ad6cf85e365e8f0c6050ddd21659e portability 0be430f759a631e692678ed796e09f5c toolchain-funcs 6526ac6fc9aedf391efb91fcd75ace68 user 9e552f935106ff0bc92af16da64b4b29
|
_eclasses_=eutils 33ef77a15337022e05342d2c772a7a5a flag-o-matic 01a8b1eb019305bc4b4a8bd0b04e4cd8 multilib 5f4ad6cf85e365e8f0c6050ddd21659e portability 0be430f759a631e692678ed796e09f5c toolchain-funcs 6526ac6fc9aedf391efb91fcd75ace68 user 9e552f935106ff0bc92af16da64b4b29
|
||||||
_md5_=5e15ed8f07422e4e07e2c325de10bfb0
|
_md5_=fdaf151e6272cb4d81e4a56ea0ec50dc
|
@ -0,0 +1,45 @@
|
|||||||
|
http://bugs.gentoo.org/284403
|
||||||
|
|
||||||
|
From 20f68fb1abe862a98bc0378e5bb54d94bb98b8fe Mon Sep 17 00:00:00 2001
|
||||||
|
From: Paolo Bonzini <bonzini@gnu.org>
|
||||||
|
Date: Thu, 15 Oct 2009 19:56:12 +0200
|
||||||
|
Subject: [PATCH] handle incomplete sequences as if they were invalid
|
||||||
|
|
||||||
|
2009-10-15 Paolo Bonzini <bonzini@gnu.org>
|
||||||
|
WANG Yunfeng <uhuruh@gmail.com>
|
||||||
|
|
||||||
|
* sed/execute.c (str_append, str_append_modified): Handle incomplete
|
||||||
|
sequences as if they were invalid.
|
||||||
|
---
|
||||||
|
ChangeLog | 6 ++++++
|
||||||
|
NEWS | 4 +++-
|
||||||
|
sed/execute.c | 6 +++---
|
||||||
|
3 files changed, 12 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/sed/execute.c b/sed/execute.c
|
||||||
|
index 66cb809..d5903be 100644
|
||||||
|
--- a/sed/execute.c
|
||||||
|
+++ b/sed/execute.c
|
||||||
|
@@ -254,8 +254,8 @@ str_append(to, string, length)
|
||||||
|
{
|
||||||
|
size_t n = MBRLEN (string, length, &to->mbstate);
|
||||||
|
|
||||||
|
- /* An invalid sequence is treated like a singlebyte character. */
|
||||||
|
- if (n == (size_t) -1)
|
||||||
|
+ /* An invalid or imcomplete sequence is treated like a singlebyte character. */
|
||||||
|
+ if (n == (size_t) -1 || n == (size_t) -2)
|
||||||
|
{
|
||||||
|
memset (&to->mbstate, 0, sizeof (to->mbstate));
|
||||||
|
n = 1;
|
||||||
|
@@ -341,7 +341,7 @@ str_append_modified(to, string, length, type)
|
||||||
|
/* Copy the new wide character to the end of the string. */
|
||||||
|
n = WCRTOMB (to->active + to->length, wc, &to->mbstate);
|
||||||
|
to->length += n;
|
||||||
|
- if (n == -1)
|
||||||
|
+ if (n == -1 || n == -2)
|
||||||
|
{
|
||||||
|
fprintf (stderr, "Case conversion produced an invalid character!");
|
||||||
|
abort ();
|
||||||
|
--
|
||||||
|
1.7.3.1
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
# Copyright 1999-2010 Gentoo Foundation
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/sed/sed-4.2.1.ebuild,v 1.9 2010/11/28 17:21:42 ranger Exp $
|
# $Header: /var/cvsroot/gentoo-x86/sys-apps/sed/sed-4.2.1-r1.ebuild,v 1.12 2012/08/26 17:00:34 armin76 Exp $
|
||||||
|
|
||||||
inherit eutils flag-o-matic toolchain-funcs
|
inherit eutils flag-o-matic toolchain-funcs
|
||||||
|
|
||||||
@ -10,11 +10,11 @@ SRC_URI="mirror://gnu/sed/${P}.tar.bz2"
|
|||||||
|
|
||||||
LICENSE="GPL-3"
|
LICENSE="GPL-3"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||||
IUSE="acl nls selinux static"
|
IUSE="acl nls selinux static"
|
||||||
|
|
||||||
RDEPEND="nls? ( virtual/libintl )
|
RDEPEND="acl? ( virtual/acl )
|
||||||
acl? ( virtual/acl )"
|
nls? ( virtual/libintl )"
|
||||||
DEPEND="${RDEPEND}
|
DEPEND="${RDEPEND}
|
||||||
nls? ( sys-devel/gettext )"
|
nls? ( sys-devel/gettext )"
|
||||||
|
|
||||||
@ -34,6 +34,7 @@ src_unpack() {
|
|||||||
unpack ${A}
|
unpack ${A}
|
||||||
cd "${S}"
|
cd "${S}"
|
||||||
epatch "${FILESDIR}"/${PN}-4.1.5-alloca.patch
|
epatch "${FILESDIR}"/${PN}-4.1.5-alloca.patch
|
||||||
|
epatch "${FILESDIR}"/${P}-handle-incomplete-sequences-as-if-they-were-invalid.patch #284403
|
||||||
# don't use sed here if we have to recover a broken host sed
|
# don't use sed here if we have to recover a broken host sed
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -50,7 +51,8 @@ src_compile() {
|
|||||||
bindir=/usr/bin
|
bindir=/usr/bin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
use selinux || export ac_cv_{search_setfilecon,header_selinux_{context,selinux}_h}=no
|
export ac_cv_search_setfilecon=$(usex selinux -lselinux)
|
||||||
|
export ac_cv_header_selinux_{context,selinux}_h=$(usex selinux)
|
||||||
use static && append-ldflags -static
|
use static && append-ldflags -static
|
||||||
econf \
|
econf \
|
||||||
--bindir=${bindir} \
|
--bindir=${bindir} \
|
Loading…
Reference in New Issue
Block a user