1 |
commit: f76c9230ea288e923e1f99056db627e4a44ffa47 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 4 16:49:27 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 4 16:49:43 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f76c9230 |
7 |
|
8 |
sys-apps/sed: Removed old. |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
sys-apps/sed/Manifest | 1 - |
13 |
...omplete-sequences-as-if-they-were-invalid.patch | 45 -------------- |
14 |
sys-apps/sed/sed-4.2.1-r1.ebuild | 68 ---------------------- |
15 |
3 files changed, 114 deletions(-) |
16 |
|
17 |
diff --git a/sys-apps/sed/Manifest b/sys-apps/sed/Manifest |
18 |
index a437d09..fb25dcc 100644 |
19 |
--- a/sys-apps/sed/Manifest |
20 |
+++ b/sys-apps/sed/Manifest |
21 |
@@ -1,3 +1,2 @@ |
22 |
-DIST sed-4.2.1.tar.bz2 899091 SHA256 2ac3b36ca37bfeb43c4ef4025778cd66d89c77abb843d90552a515a7c9d2948f SHA512 273d4d0b3dd41a3966260fbe261a20110a2a4c0749e11a080f4fc8694e47b605cb977f2535b20b92d57b1b74129df092ba47f4184951dbc3f0f14fd9b91b7bfd WHIRLPOOL 426b244431cb00a8c8f7320f22cf0a5de3165a43d9d6fb8343163e1d4054d61b2737a697ebe54311cf5d2d2f696d2f07877a41b8710ad80d96a7d5138fff07e1 |
23 |
DIST sed-4.2.2.tar.bz2 1059414 SHA256 f048d1838da284c8bc9753e4506b85a1e0cc1ea8999d36f6995bcb9460cddbd7 SHA512 dbbb0bb348fac54612d29182c09c88bda7096dea03bd94f03c580c24146e65a06db12808c6a1a9adc94548fa3843511e3e80b251cb07142110cf149eab23f573 WHIRLPOOL d816657c51a2718c2b309455facaff50c9da08b79d20985ab1d61faa5b42bffa0b33ea7d3368a8cdaa6079891cfc27cdab38788563c8323081580b4478c7e2b5 |
24 |
DIST sed-4.3.tar.xz 1167168 SHA256 47c20d8841ce9e7b6ef8037768aac44bc2937fff1c265b291c824004d56bd0aa SHA512 4d76a099cf7115763b79b45be5c96338750baa47e34c36075f714e022614397aa9240099d6d009e69aa4d06b6cfc14dcc0f8313442a1465f448b36fb6874a26d WHIRLPOOL dc8ea635d7cd30fa73b163078ed7e48d3f85aaf37041b432f3c1579d556a41cb0afa2c8468f67a4474d7274578850b698b60933f6b4b3d041ee4f77ace344035 |
25 |
|
26 |
diff --git a/sys-apps/sed/files/sed-4.2.1-handle-incomplete-sequences-as-if-they-were-invalid.patch b/sys-apps/sed/files/sed-4.2.1-handle-incomplete-sequences-as-if-they-were-invalid.patch |
27 |
deleted file mode 100644 |
28 |
index dfd9206..00000000 |
29 |
--- a/sys-apps/sed/files/sed-4.2.1-handle-incomplete-sequences-as-if-they-were-invalid.patch |
30 |
+++ /dev/null |
31 |
@@ -1,45 +0,0 @@ |
32 |
-http://bugs.gentoo.org/284403 |
33 |
- |
34 |
-From 20f68fb1abe862a98bc0378e5bb54d94bb98b8fe Mon Sep 17 00:00:00 2001 |
35 |
-From: Paolo Bonzini <bonzini@×××.org> |
36 |
-Date: Thu, 15 Oct 2009 19:56:12 +0200 |
37 |
-Subject: [PATCH] handle incomplete sequences as if they were invalid |
38 |
- |
39 |
-2009-10-15 Paolo Bonzini <bonzini@×××.org> |
40 |
- WANG Yunfeng <uhuruh@×××××.com> |
41 |
- |
42 |
- * sed/execute.c (str_append, str_append_modified): Handle incomplete |
43 |
- sequences as if they were invalid. |
44 |
---- |
45 |
- ChangeLog | 6 ++++++ |
46 |
- NEWS | 4 +++- |
47 |
- sed/execute.c | 6 +++--- |
48 |
- 3 files changed, 12 insertions(+), 4 deletions(-) |
49 |
- |
50 |
-diff --git a/sed/execute.c b/sed/execute.c |
51 |
-index 66cb809..d5903be 100644 |
52 |
---- a/sed/execute.c |
53 |
-+++ b/sed/execute.c |
54 |
-@@ -254,8 +254,8 @@ str_append(to, string, length) |
55 |
- { |
56 |
- size_t n = MBRLEN (string, length, &to->mbstate); |
57 |
- |
58 |
-- /* An invalid sequence is treated like a singlebyte character. */ |
59 |
-- if (n == (size_t) -1) |
60 |
-+ /* An invalid or imcomplete sequence is treated like a singlebyte character. */ |
61 |
-+ if (n == (size_t) -1 || n == (size_t) -2) |
62 |
- { |
63 |
- memset (&to->mbstate, 0, sizeof (to->mbstate)); |
64 |
- n = 1; |
65 |
-@@ -341,7 +341,7 @@ str_append_modified(to, string, length, type) |
66 |
- /* Copy the new wide character to the end of the string. */ |
67 |
- n = WCRTOMB (to->active + to->length, wc, &to->mbstate); |
68 |
- to->length += n; |
69 |
-- if (n == -1) |
70 |
-+ if (n == -1 || n == -2) |
71 |
- { |
72 |
- fprintf (stderr, "Case conversion produced an invalid character!"); |
73 |
- abort (); |
74 |
--- |
75 |
-1.7.3.1 |
76 |
- |
77 |
|
78 |
diff --git a/sys-apps/sed/sed-4.2.1-r1.ebuild b/sys-apps/sed/sed-4.2.1-r1.ebuild |
79 |
deleted file mode 100644 |
80 |
index 6c002dc..00000000 |
81 |
--- a/sys-apps/sed/sed-4.2.1-r1.ebuild |
82 |
+++ /dev/null |
83 |
@@ -1,68 +0,0 @@ |
84 |
-# Copyright 1999-2014 Gentoo Foundation |
85 |
-# Distributed under the terms of the GNU General Public License v2 |
86 |
-# $Id$ |
87 |
- |
88 |
-inherit eutils flag-o-matic toolchain-funcs |
89 |
- |
90 |
-DESCRIPTION="Super-useful stream editor" |
91 |
-HOMEPAGE="http://sed.sourceforge.net/" |
92 |
-SRC_URI="mirror://gnu/sed/${P}.tar.bz2" |
93 |
- |
94 |
-LICENSE="GPL-3" |
95 |
-SLOT="0" |
96 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" |
97 |
-IUSE="acl nls selinux static" |
98 |
- |
99 |
-RDEPEND="acl? ( virtual/acl ) |
100 |
- nls? ( virtual/libintl )" |
101 |
-DEPEND="${RDEPEND} |
102 |
- nls? ( sys-devel/gettext )" |
103 |
- |
104 |
-src_bootstrap_sed() { |
105 |
- # make sure system-sed works #40786 |
106 |
- export NO_SYS_SED="" |
107 |
- if ! type -p sed > /dev/null ; then |
108 |
- NO_SYS_SED="!!!" |
109 |
- ./bootstrap.sh || die "couldnt bootstrap" |
110 |
- cp sed/sed "${T}"/ || die "couldnt copy" |
111 |
- export PATH="${PATH}:${T}" |
112 |
- make clean || die "couldnt clean" |
113 |
- fi |
114 |
-} |
115 |
- |
116 |
-src_unpack() { |
117 |
- unpack ${A} |
118 |
- cd "${S}" |
119 |
- epatch "${FILESDIR}"/${PN}-4.1.5-alloca.patch |
120 |
- epatch "${FILESDIR}"/${P}-handle-incomplete-sequences-as-if-they-were-invalid.patch #284403 |
121 |
- # don't use sed here if we have to recover a broken host sed |
122 |
-} |
123 |
- |
124 |
-src_compile() { |
125 |
- src_bootstrap_sed |
126 |
- # this has to be after the bootstrap portion |
127 |
- sed -i \ |
128 |
- -e '/docdir =/s:=.*/doc:= $(datadir)/doc/'${PF}'/html:' \ |
129 |
- doc/Makefile.in || die "sed html doc" |
130 |
- |
131 |
- local myconf= bindir=/bin |
132 |
- if ! use userland_GNU ; then |
133 |
- myconf="--program-prefix=g" |
134 |
- bindir=/usr/bin |
135 |
- fi |
136 |
- |
137 |
- export ac_cv_search_setfilecon=$(usex selinux -lselinux) |
138 |
- export ac_cv_header_selinux_{context,selinux}_h=$(usex selinux) |
139 |
- use static && append-ldflags -static |
140 |
- econf \ |
141 |
- --bindir=${bindir} \ |
142 |
- $(use_enable acl) \ |
143 |
- $(use_enable nls) \ |
144 |
- ${myconf} |
145 |
- emake || die "build failed" |
146 |
-} |
147 |
- |
148 |
-src_install() { |
149 |
- emake install DESTDIR="${D}" || die "Install failed" |
150 |
- dodoc NEWS README* THANKS AUTHORS BUGS ChangeLog |
151 |
-} |