Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: sys-apps/sed/
Date: Sun, 19 Aug 2018 08:14:07
Message-Id: 1534666419.2be1e30cc098e6eefc548a9f0cc1a83c23e2abd4.grobian@gentoo
1 commit: 2be1e30cc098e6eefc548a9f0cc1a83c23e2abd4
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 19 08:13:39 2018 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 19 08:13:39 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=2be1e30c
7
8 sys-apps/sed: sync
9
10 Package-Manager: Portage-2.3.40.3-prefix, Repoman-2.3.9
11
12 sys-apps/sed/Manifest | 3 +-
13 sys-apps/sed/metadata.xml | 7 ++++
14 sys-apps/sed/sed-4.2.1-r1.ebuild | 70 ---------------------------------------
15 sys-apps/sed/sed-4.2.1.ebuild | 69 --------------------------------------
16 sys-apps/sed/sed-4.2.ebuild | 67 -------------------------------------
17 sys-apps/sed/sed-4.5.ebuild | 71 ++++++++++++++++++++++++++++++++++++++++
18 6 files changed, 79 insertions(+), 208 deletions(-)
19
20 diff --git a/sys-apps/sed/Manifest b/sys-apps/sed/Manifest
21 index 1b425b1f68..ec23d184ad 100644
22 --- a/sys-apps/sed/Manifest
23 +++ b/sys-apps/sed/Manifest
24 @@ -1,3 +1,2 @@
25 -DIST sed-4.2.1.tar.bz2 899091 BLAKE2B 9aefcc576fdf5b342f056540ffe510a8aae160a203960eb55066fcf6965835b9a3f1bcfa0d023104ee5be61dfcdf5946f05560cdc5a43c10eca131c2ec5ec42b SHA512 273d4d0b3dd41a3966260fbe261a20110a2a4c0749e11a080f4fc8694e47b605cb977f2535b20b92d57b1b74129df092ba47f4184951dbc3f0f14fd9b91b7bfd
26 DIST sed-4.2.2.tar.bz2 1059414 BLAKE2B aebe0bf90e9f9c7907e0baa8a4d1a16e59a5893198382fb9fe08ed66cab670921c0db1e07f668bf3db8dfe9bb4f0e68b9c34fd7228c70df24be043d3e7ea8d92 SHA512 dbbb0bb348fac54612d29182c09c88bda7096dea03bd94f03c580c24146e65a06db12808c6a1a9adc94548fa3843511e3e80b251cb07142110cf149eab23f573
27 -DIST sed-4.2.tar.bz2 882586 BLAKE2B 40cdeb0a3fb2b5f1e29146f18f262e09ab3fcd86bdfaed0de765ce9c62ee2e948d7383abbc972e02ca6ec1a88da7c0176d4305576d08e77ecef1df73c189c65e SHA512 81bccd2664572dee0c9129fd5fda0761341dfb03e5252506b0369d8e91c242029693ccb67858943b9b469d399bceb4833f53ac7cca1b610a42f164d84f2339f9
28 +DIST sed-4.5.tar.xz 1274252 BLAKE2B 08525659e0e01ec50e736c1665634f3816f57c48aeefa7f6bc7a152cd6c171bb4e96e5c215429fc5edbe6e1de6cc3efe4f2f3bf6865933a30dd1700e921d5b3f SHA512 f95fb27e03b2301dae63878413b4c48e40341cc676945a612e1d0bd911da3192858ae142791292a99fbdaacbc7dab2d6fccb50787c06846f99b0b3740b40c196
29
30 diff --git a/sys-apps/sed/metadata.xml b/sys-apps/sed/metadata.xml
31 index b738f8c54a..504b6a5e46 100644
32 --- a/sys-apps/sed/metadata.xml
33 +++ b/sys-apps/sed/metadata.xml
34 @@ -8,4 +8,11 @@
35 <upstream>
36 <remote-id type="sourceforge">sed</remote-id>
37 </upstream>
38 +<use>
39 + <flag name="forced-sandbox">
40 + Always enable --sandbox mode for simpler/secure runtime (disables e/r/w commands).
41 + Note: This may break many configure scripts, so it should be avoided on dev systems
42 + (and generally used on binpkg/final systems only).
43 + </flag>
44 +</use>
45 </pkgmetadata>
46
47 diff --git a/sys-apps/sed/sed-4.2.1-r1.ebuild b/sys-apps/sed/sed-4.2.1-r1.ebuild
48 deleted file mode 100644
49 index 50721f6227..0000000000
50 --- a/sys-apps/sed/sed-4.2.1-r1.ebuild
51 +++ /dev/null
52 @@ -1,70 +0,0 @@
53 -# Copyright 1999-2017 Gentoo Foundation
54 -# Distributed under the terms of the GNU General Public License v2
55 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/sed/sed-4.2.1-r1.ebuild,v 1.14 2014/02/08 13:24:00 vapier Exp $
56 -
57 -inherit eutils flag-o-matic toolchain-funcs
58 -
59 -DESCRIPTION="Super-useful stream editor"
60 -HOMEPAGE="http://sed.sourceforge.net/"
61 -SRC_URI="mirror://gnu/sed/${P}.tar.bz2"
62 -
63 -LICENSE="GPL-3"
64 -SLOT="0"
65 -KEYWORDS="~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
66 -IUSE="acl nls selinux static"
67 -
68 -RDEPEND="acl? ( virtual/acl )
69 - nls? ( virtual/libintl )"
70 -DEPEND="${RDEPEND}
71 - nls? ( sys-devel/gettext )"
72 -
73 -src_bootstrap_sed() {
74 - # make sure system-sed works #40786
75 - export NO_SYS_SED=""
76 - if ! type -p sed > /dev/null ; then
77 - NO_SYS_SED="!!!"
78 - ./bootstrap.sh || die "couldnt bootstrap"
79 - cp sed/sed "${T}"/ || die "couldnt copy"
80 - export PATH="${PATH}:${T}"
81 - make clean || die "couldnt clean"
82 - fi
83 -}
84 -
85 -src_unpack() {
86 - unpack ${A}
87 - cd "${S}"
88 - epatch "${FILESDIR}"/${PN}-4.1.5-alloca.patch
89 - epatch "${FILESDIR}"/${P}-handle-incomplete-sequences-as-if-they-were-invalid.patch #284403
90 - epatch "${FILESDIR}"/${PN}-4.1.4-aix-malloc.patch
91 - epatch "${FILESDIR}"/${P}-espipe.patch
92 - # don't use sed here if we have to recover a broken host sed
93 -}
94 -
95 -src_compile() {
96 - src_bootstrap_sed
97 - # this has to be after the bootstrap portion
98 - sed -i \
99 - -e '/docdir =/s:=.*/doc:= $(datadir)/doc/'${PF}'/html:' \
100 - doc/Makefile.in || die "sed html doc"
101 -
102 - local myconf= bindir="${EPREFIX}"/bin
103 - if ! use userland_GNU ; then
104 - myconf="--program-prefix=g"
105 - bindir="${EPREFIX}"/usr/bin
106 - fi
107 -
108 - export ac_cv_search_setfilecon=$(usex selinux -lselinux)
109 - export ac_cv_header_selinux_{context,selinux}_h=$(usex selinux)
110 - use static && append-ldflags -static
111 - econf \
112 - --bindir="${bindir}" \
113 - $(use_enable acl) \
114 - $(use_enable nls) \
115 - ${myconf}
116 - emake || die "build failed"
117 -}
118 -
119 -src_install() {
120 - emake install DESTDIR="${D}" || die "Install failed"
121 - dodoc NEWS README* THANKS AUTHORS BUGS ChangeLog
122 -}
123
124 diff --git a/sys-apps/sed/sed-4.2.1.ebuild b/sys-apps/sed/sed-4.2.1.ebuild
125 deleted file mode 100644
126 index 50425efcf6..0000000000
127 --- a/sys-apps/sed/sed-4.2.1.ebuild
128 +++ /dev/null
129 @@ -1,69 +0,0 @@
130 -# Copyright 1999-2017 Gentoo Foundation
131 -# Distributed under the terms of the GNU General Public License v2
132 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/sed/sed-4.2.1.ebuild,v 1.12 2014/02/08 13:24:00 vapier Exp $
133 -
134 -inherit eutils flag-o-matic toolchain-funcs
135 -
136 -DESCRIPTION="Super-useful stream editor"
137 -HOMEPAGE="http://sed.sourceforge.net/"
138 -SRC_URI="mirror://gnu/sed/${P}.tar.bz2"
139 -
140 -LICENSE="GPL-3"
141 -SLOT="0"
142 -KEYWORDS="~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
143 -IUSE="acl nls selinux static"
144 -
145 -RDEPEND="nls? ( virtual/libintl )
146 - acl? ( virtual/acl )"
147 -DEPEND="${RDEPEND}
148 - nls? ( sys-devel/gettext )"
149 -
150 -src_bootstrap_sed() {
151 - # make sure system-sed works #40786
152 - export NO_SYS_SED=""
153 - if ! type -p sed > /dev/null ; then
154 - NO_SYS_SED="!!!"
155 - ./bootstrap.sh || die "couldnt bootstrap"
156 - cp sed/sed "${T}"/ || die "couldnt copy"
157 - export PATH="${PATH}:${T}"
158 - make clean || die "couldnt clean"
159 - fi
160 -}
161 -
162 -src_unpack() {
163 - unpack ${A}
164 - cd "${S}"
165 - epatch "${FILESDIR}"/${PN}-4.1.5-alloca.patch
166 - epatch "${FILESDIR}"/${PN}-4.1.4-aix-malloc.patch
167 - epatch "${FILESDIR}"/${PN}-4.1.5-regex-nobool.patch
168 - # don't use sed here if we have to recover a broken host sed
169 -}
170 -
171 -src_compile() {
172 - src_bootstrap_sed
173 - # this has to be after the bootstrap portion
174 - sed -i \
175 - -e '/docdir =/s:=.*/doc:= $(datadir)/doc/'${PF}'/html:' \
176 - doc/Makefile.in || die "sed html doc"
177 -
178 - local myconf= bindir="${EPREFIX}"/bin
179 - if ! use userland_GNU ; then
180 - myconf="--program-prefix=g"
181 - bindir="${EPREFIX}"/usr/bin
182 - fi
183 -
184 - export ac_cv_search_setfilecon=$(usex selinux -lselinux)
185 - export ac_cv_header_selinux_{context,selinux}_h=$(usex selinux)
186 - use static && append-ldflags -static
187 - econf \
188 - --bindir="${bindir}" \
189 - $(use_enable acl) \
190 - $(use_enable nls) \
191 - ${myconf}
192 - emake || die "build failed"
193 -}
194 -
195 -src_install() {
196 - emake install DESTDIR="${D}" || die "Install failed"
197 - dodoc NEWS README* THANKS AUTHORS BUGS ChangeLog
198 -}
199
200 diff --git a/sys-apps/sed/sed-4.2.ebuild b/sys-apps/sed/sed-4.2.ebuild
201 deleted file mode 100644
202 index 483cb979bd..0000000000
203 --- a/sys-apps/sed/sed-4.2.ebuild
204 +++ /dev/null
205 @@ -1,67 +0,0 @@
206 -# Copyright 1999-2017 Gentoo Foundation
207 -# Distributed under the terms of the GNU General Public License v2
208 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/sed/sed-4.2.ebuild,v 1.13 2014/02/08 13:24:00 vapier Exp $
209 -
210 -inherit eutils flag-o-matic toolchain-funcs
211 -
212 -DESCRIPTION="Super-useful stream editor"
213 -HOMEPAGE="http://sed.sourceforge.net/"
214 -SRC_URI="mirror://gnu/sed/${P}.tar.bz2"
215 -
216 -LICENSE="GPL-3"
217 -SLOT="0"
218 -KEYWORDS="~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
219 -IUSE="acl nls static"
220 -
221 -RDEPEND="nls? ( virtual/libintl )
222 - acl? ( virtual/acl )"
223 -DEPEND="${RDEPEND}
224 - nls? ( sys-devel/gettext )"
225 -
226 -src_bootstrap_sed() {
227 - # make sure system-sed works #40786
228 - export NO_SYS_SED=""
229 - if ! type -p sed > /dev/null ; then
230 - NO_SYS_SED="!!!"
231 - ./bootstrap.sh || die "couldnt bootstrap"
232 - cp sed/sed "${T}"/ || die "couldnt copy"
233 - export PATH="${PATH}:${T}"
234 - make clean || die "couldnt clean"
235 - fi
236 -}
237 -
238 -src_unpack() {
239 - unpack ${A}
240 - cd "${S}"
241 - epatch "${FILESDIR}"/${PN}-4.1.5-alloca.patch
242 - epatch "${FILESDIR}"/${PN}-4.1.4-aix-malloc.patch
243 - epatch "${FILESDIR}"/${PN}-4.1.5-regex-nobool.patch
244 - # don't use sed here if we have to recover a broken host sed
245 -}
246 -
247 -src_compile() {
248 - src_bootstrap_sed
249 - # this has to be after the bootstrap portion
250 - sed -i \
251 - -e '/docdir =/s:=.*/doc:= $(datadir)/doc/'${PF}'/html:' \
252 - doc/Makefile.in || die "sed html doc"
253 -
254 - local myconf= bindir="${EPREFIX}"/bin
255 - if ! use userland_GNU ; then
256 - myconf="--program-prefix=g"
257 - bindir="${EPREFIX}"/usr/bin
258 - fi
259 -
260 - use static && append-ldflags -static
261 - econf \
262 - --bindir="${bindir}" \
263 - $(use_enable acl) \
264 - $(use_enable nls) \
265 - ${myconf}
266 - emake || die "build failed"
267 -}
268 -
269 -src_install() {
270 - emake install DESTDIR="${D}" || die "Install failed"
271 - dodoc NEWS README* THANKS AUTHORS BUGS ChangeLog
272 -}
273
274 diff --git a/sys-apps/sed/sed-4.5.ebuild b/sys-apps/sed/sed-4.5.ebuild
275 new file mode 100644
276 index 0000000000..a1cd293024
277 --- /dev/null
278 +++ b/sys-apps/sed/sed-4.5.ebuild
279 @@ -0,0 +1,71 @@
280 +# Copyright 1999-2018 Gentoo Foundation
281 +# Distributed under the terms of the GNU General Public License v2
282 +
283 +EAPI=6
284 +
285 +inherit flag-o-matic toolchain-funcs
286 +
287 +DESCRIPTION="Super-useful stream editor"
288 +HOMEPAGE="http://sed.sourceforge.net/"
289 +SRC_URI="mirror://gnu/sed/${P}.tar.xz"
290 +
291 +LICENSE="GPL-3"
292 +SLOT="0"
293 +KEYWORDS="~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
294 +IUSE="acl forced-sandbox nls selinux static"
295 +
296 +RDEPEND="acl? ( virtual/acl )
297 + nls? ( virtual/libintl )
298 + selinux? ( sys-libs/libselinux )"
299 +DEPEND="${RDEPEND}
300 + nls? ( sys-devel/gettext )"
301 +
302 +PATCHES=(
303 + "${FILESDIR}"/${PN}-4.1.4-aix-malloc.patch
304 + "${FILESDIR}"/${PN}-4.2.1-espipe.patch
305 +)
306 +
307 +src_bootstrap_sed() {
308 + # make sure system-sed works #40786 #650052
309 + if ! type -p sed > /dev/null || has_version 'sys-apps/sed[forced-sandbox]' ; then
310 + mkdir -p "${T}/bootstrap"
311 + printf '#!/bin/sh\nexec busybox sed "$@"\n' > "${T}/bootstrap/sed" || die
312 + chmod a+rx "${T}/bootstrap/sed"
313 + PATH="${T}/bootstrap:${PATH}"
314 + fi
315 +}
316 +
317 +src_prepare() {
318 + # Don't use sed before bootstrap if we have to recover a broken host sed.
319 + src_bootstrap_sed
320 +
321 + default
322 +
323 + if use forced-sandbox ; then
324 + # Upstream doesn't want to add a configure flag for this.
325 + # https://lists.gnu.org/archive/html/bug-sed/2018-03/msg00001.html
326 + sed -i \
327 + -e '/^bool sandbox = false;/s:false:true:' \
328 + sed/sed.c || die
329 + # Make sure the sed took.
330 + grep -q '^bool sandbox = true;' sed/sed.c || die "forcing sandbox failed"
331 + fi
332 +}
333 +
334 +src_configure() {
335 + local myconf=()
336 + if use userland_GNU; then
337 + myconf+=( --exec-prefix="${EPREFIX}" )
338 + else
339 + myconf+=( --program-prefix=g )
340 + fi
341 +
342 + export ac_cv_search_setfilecon=$(usex selinux -lselinux)
343 + export ac_cv_header_selinux_{context,selinux}_h=$(usex selinux)
344 + use static && append-ldflags -static
345 + myconf+=(
346 + $(use_enable acl)
347 + $(use_enable nls)
348 + )
349 + econf "${myconf[@]}"
350 +}