Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libpcre/files/, dev-libs/libpcre/
Date: Wed, 21 Mar 2018 07:05:54
Message-Id: 1521615944.18db8a135756f3d263a97169430aceb21410177c.polynomial-c@gentoo
1 commit: 18db8a135756f3d263a97169430aceb21410177c
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 21 07:00:56 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 21 07:05:44 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18db8a13
7
8 dev-libs/libpcre: Removed old.
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 dev-libs/libpcre/Manifest | 1 -
13 dev-libs/libpcre/files/libpcre-8.40-jit-else.patch | 68 --------------
14 .../files/libpcre-8.40-pcregrep-multiline-1.patch | 69 --------------
15 .../files/libpcre-8.40-pcregrep-multiline-2.patch | 25 -----
16 dev-libs/libpcre/libpcre-8.40-r1.ebuild | 96 -------------------
17 dev-libs/libpcre/libpcre-8.41.ebuild | 103 ---------------------
18 6 files changed, 362 deletions(-)
19
20 diff --git a/dev-libs/libpcre/Manifest b/dev-libs/libpcre/Manifest
21 index 9c138703d64..f67a4002d14 100644
22 --- a/dev-libs/libpcre/Manifest
23 +++ b/dev-libs/libpcre/Manifest
24 @@ -1,3 +1,2 @@
25 -DIST pcre-8.40.tar.bz2 1560119 BLAKE2B 121d2c9f8c403a663fe27a68030faf09a06dec5e6a25ae8d62e06887850e219e87c71a14f6ded084fa25b719067acb71c89c66c81f6f09f55dcc51feaf41e737 SHA512 b4c27eafbdf33bd7a1384655b1936f4be3bc6745c072347eb26e988896c52664bd85ac42444da1be78b6e20f45b6c7e5921f5f20f5b0741b5bd3d9844e5bd4e2
26 DIST pcre-8.41.tar.bz2 1561874 BLAKE2B 2a97a859237994137190da00c30ba7c15e8631b82b7f200858cf722f1fdd0405d36c24bb716eb099d8107f2f829a85fd7d3497f36cdac51769636989331e7a79 SHA512 cc9cdbeb98c010fe4f093a019bebfb91965dae4c6a48f8e49c38ec8df7d9da7f0d32c12fc58f22c51f1c2f010e72b65bcbf8bbf180060e93edf464fa9a7c3551
27 DIST pcre-8.42.tar.bz2 1570171 BLAKE2B f68bac3cf8ff5a81ccba31fd4d8926e05143a25a756e7daba9793467cec9cd8a4766f394f958ffca088b472463a43a31ea77014f2d4505082c1f366a18f30c7a SHA512 b47b923108f6ee0c31409b79d0888314271b482a22590e164d02f21d2112fba22dd0342c24f9ba0f5fcc5b8c65550bad08c476e30a2fc79b34ecf4601ed82f3d
28
29 diff --git a/dev-libs/libpcre/files/libpcre-8.40-jit-else.patch b/dev-libs/libpcre/files/libpcre-8.40-jit-else.patch
30 deleted file mode 100644
31 index d347a7f5e1e..00000000000
32 --- a/dev-libs/libpcre/files/libpcre-8.40-jit-else.patch
33 +++ /dev/null
34 @@ -1,68 +0,0 @@
35 -https://bugs.gentoo.org/609592
36 -https://bugs.exim.org/show_bug.cgi?id=2035
37 -
38 -From 7ddfbe9d0b9f43402f8043e940172a318cc407c6 Mon Sep 17 00:00:00 2001
39 -From: Zoltan Herczeg <hzmester@××××××××.hu>
40 -Date: Tue, 14 Feb 2017 08:48:18 +0000
41 -Subject: [PATCH] Fix a missing else in the JIT compiler reported by
42 - 'idaifish'.
43 -
44 -git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1680 2f5784b3-3f2a-0410-8824-cb99058d5e15
45 ----
46 - ChangeLog | 2 ++
47 - pcre_jit_compile.c | 2 +-
48 - testdata/testinput12 | 2 ++
49 - testdata/testoutput12 | 2 ++
50 - 4 files changed, 7 insertions(+), 1 deletion(-)
51 -
52 -diff --git a/ChangeLog b/ChangeLog
53 -index 373ee8422ef5..d813935539bd 100644
54 ---- a/ChangeLog
55 -+++ b/ChangeLog
56 -@@ -15,6 +15,8 @@ mode with --only-matching matched several lines, it restarted scanning at the
57 - next line instead of moving on to the end of the matched string, which can be
58 - several lines after the start.
59 -
60 -+3. Fix a missing else in the JIT compiler reported by 'idaifish'.
61 -+
62 -
63 - Version 8.40 11-January-2017
64 - ----------------------------
65 -diff --git a/pcre_jit_compile.c b/pcre_jit_compile.c
66 -index c301f05d5e3f..6ef8e48ff5e8 100644
67 ---- a/pcre_jit_compile.c
68 -+++ b/pcre_jit_compile.c
69 -@@ -8110,7 +8110,7 @@ if (opcode == OP_COND || opcode == OP_SCOND)
70 -
71 - if (*matchingpath == OP_FAIL)
72 - stacksize = 0;
73 -- if (*matchingpath == OP_RREF)
74 -+ else if (*matchingpath == OP_RREF)
75 - {
76 - stacksize = GET2(matchingpath, 1);
77 - if (common->currententry == NULL)
78 -diff --git a/testdata/testinput12 b/testdata/testinput12
79 -index 944be6943f5e..89ed4564bcd4 100644
80 ---- a/testdata/testinput12
81 -+++ b/testdata/testinput12
82 -@@ -104,4 +104,6 @@ and a couple of things that are different with JIT. --/
83 - /(.|.)*?bx/
84 - aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabax
85 -
86 -+/((?(?!))x)(?'name')(?1)/S++
87 -+
88 - /-- End of testinput12 --/
89 -diff --git a/testdata/testoutput12 b/testdata/testoutput12
90 -index 87911086f498..7632c4e58013 100644
91 ---- a/testdata/testoutput12
92 -+++ b/testdata/testoutput12
93 -@@ -201,4 +201,6 @@ No match, mark = m (JIT)
94 - aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabax
95 - Error -8 (match limit exceeded)
96 -
97 -+/((?(?!))x)(?'name')(?1)/S++
98 -+
99 - /-- End of testinput12 --/
100 ---
101 -2.12.0
102 -
103
104 diff --git a/dev-libs/libpcre/files/libpcre-8.40-pcregrep-multiline-1.patch b/dev-libs/libpcre/files/libpcre-8.40-pcregrep-multiline-1.patch
105 deleted file mode 100644
106 index f15968dfe98..00000000000
107 --- a/dev-libs/libpcre/files/libpcre-8.40-pcregrep-multiline-1.patch
108 +++ /dev/null
109 @@ -1,69 +0,0 @@
110 -From 5be027b624bc866702808abadfe5f99360414086 Mon Sep 17 00:00:00 2001
111 -From: Philip Hazel <ph10@××××××.uk>
112 -Date: Fri, 10 Feb 2017 17:47:34 +0000
113 -Subject: [PATCH] Correct fix for pcre2grep multiline with --only-matching.
114 -
115 -git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1678 2f5784b3-3f2a-0410-8824-cb99058d5e15
116 ----
117 - ChangeLog | 5 +++++
118 - configure.ac | 6 +++---
119 - pcregrep.c | 20 +++++++++++++++-----
120 - 3 files changed, 23 insertions(+), 8 deletions(-)
121 -
122 -diff --git a/ChangeLog b/ChangeLog
123 -index ab4e053e601e..373ee8422ef5 100644
124 ---- a/ChangeLog
125 -+++ b/ChangeLog
126 -@@ -10,6 +10,11 @@ Version 8.41
127 - 1. Fixed typo in CMakeLists.txt (wrong number of arguments for
128 - PCRE_STATIC_RUNTIME (affects MSVC only).
129 -
130 -+2. Issue 1 for 8.40 below was not correctly fixed. If pcregrep in multiline
131 -+mode with --only-matching matched several lines, it restarted scanning at the
132 -+next line instead of moving on to the end of the matched string, which can be
133 -+several lines after the start.
134 -+
135 -
136 - Version 8.40 11-January-2017
137 - ----------------------------
138 -diff --git a/pcregrep.c b/pcregrep.c
139 -index fd2a67622baa..2070c057e4a0 100644
140 ---- a/pcregrep.c
141 -+++ b/pcregrep.c
142 -@@ -1804,11 +1804,6 @@ while (ptr < endptr)
143 - if (line_buffered) fflush(stdout);
144 - rc = 0; /* Had some success */
145 -
146 -- /* If the current match ended past the end of the line (only possible
147 -- in multiline mode), we are done with this line. */
148 --
149 -- if ((unsigned int)offsets[1] > linelength) goto END_ONE_MATCH;
150 --
151 - startoffset = offsets[1]; /* Restart after the match */
152 - if (startoffset <= oldstartoffset)
153 - {
154 -@@ -1818,6 +1813,21 @@ while (ptr < endptr)
155 - if (utf8)
156 - while ((matchptr[startoffset] & 0xc0) == 0x80) startoffset++;
157 - }
158 -+
159 -+ /* If the current match ended past the end of the line (only possible
160 -+ in multiline mode), we must move on to the line in which it did end
161 -+ before searching for more matches. */
162 -+
163 -+ while (startoffset > (int)linelength)
164 -+ {
165 -+ matchptr = ptr += linelength + endlinelength;
166 -+ filepos += (int)(linelength + endlinelength);
167 -+ linenumber++;
168 -+ startoffset -= (int)(linelength + endlinelength);
169 -+ t = end_of_line(ptr, endptr, &endlinelength);
170 -+ linelength = t - ptr - endlinelength;
171 -+ }
172 -+
173 - goto ONLY_MATCHING_RESTART;
174 - }
175 - }
176 ---
177 -2.12.0
178 -
179
180 diff --git a/dev-libs/libpcre/files/libpcre-8.40-pcregrep-multiline-2.patch b/dev-libs/libpcre/files/libpcre-8.40-pcregrep-multiline-2.patch
181 deleted file mode 100644
182 index 63ad51cd104..00000000000
183 --- a/dev-libs/libpcre/files/libpcre-8.40-pcregrep-multiline-2.patch
184 +++ /dev/null
185 @@ -1,25 +0,0 @@
186 -From 8b0fdf16e57ce9a653a0a03c39f6cc061e8122e8 Mon Sep 17 00:00:00 2001
187 -From: Philip Hazel <ph10@××××××.uk>
188 -Date: Sun, 12 Feb 2017 13:28:11 +0000
189 -Subject: [PATCH] Fix bug in most recent fix for multiline pcre2grep.
190 -
191 -git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1679 2f5784b3-3f2a-0410-8824-cb99058d5e15
192 ----
193 - pcregrep.c | 1 +
194 - 1 file changed, 1 insertion(+)
195 -
196 -diff --git a/pcregrep.c b/pcregrep.c
197 -index 2070c057e4a0..3cd70eeb4261 100644
198 ---- a/pcregrep.c
199 -+++ b/pcregrep.c
200 -@@ -1826,6 +1826,7 @@ while (ptr < endptr)
201 - startoffset -= (int)(linelength + endlinelength);
202 - t = end_of_line(ptr, endptr, &endlinelength);
203 - linelength = t - ptr - endlinelength;
204 -+ length = (size_t)(endptr - ptr);
205 - }
206 -
207 - goto ONLY_MATCHING_RESTART;
208 ---
209 -2.12.0
210 -
211
212 diff --git a/dev-libs/libpcre/libpcre-8.40-r1.ebuild b/dev-libs/libpcre/libpcre-8.40-r1.ebuild
213 deleted file mode 100644
214 index 0f6e7c38bcb..00000000000
215 --- a/dev-libs/libpcre/libpcre-8.40-r1.ebuild
216 +++ /dev/null
217 @@ -1,96 +0,0 @@
218 -# Copyright 1999-2018 Gentoo Foundation
219 -# Distributed under the terms of the GNU General Public License v2
220 -
221 -EAPI="5"
222 -
223 -inherit eutils multilib libtool flag-o-matic toolchain-funcs multilib-minimal
224 -
225 -DESCRIPTION="Perl-compatible regular expression library"
226 -HOMEPAGE="http://www.pcre.org/"
227 -MY_P="pcre-${PV/_rc/-RC}"
228 -if [[ ${PV} != *_rc* ]] ; then
229 - # Only the final releases are available here.
230 - SRC_URI="mirror://sourceforge/pcre/${MY_P}.tar.bz2
231 - ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${MY_P}.tar.bz2"
232 -else
233 - SRC_URI="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/Testing/${MY_P}.tar.bz2"
234 -fi
235 -
236 -LICENSE="BSD"
237 -SLOT="3"
238 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
239 -IUSE="bzip2 +cxx +jit libedit pcre16 pcre32 +readline +recursion-limit static-libs unicode zlib"
240 -REQUIRED_USE="readline? ( !libedit )
241 - libedit? ( !readline )"
242 -
243 -RDEPEND="bzip2? ( app-arch/bzip2 )
244 - zlib? ( sys-libs/zlib )
245 - libedit? ( dev-libs/libedit )
246 - readline? ( sys-libs/readline:0= )"
247 -DEPEND="${RDEPEND}
248 - virtual/pkgconfig"
249 -RDEPEND="${RDEPEND}
250 - abi_x86_32? (
251 - !<=app-emulation/emul-linux-x86-baselibs-20131008-r2
252 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
253 - )"
254 -
255 -S=${WORKDIR}/${MY_P}
256 -
257 -MULTILIB_CHOST_TOOLS=(
258 - /usr/bin/pcre-config
259 -)
260 -
261 -PATCHES=(
262 - "${FILESDIR}"/${P}-pcregrep-multiline-{1,2}.patch
263 - "${FILESDIR}"/${P}-jit-else.patch #609592
264 -)
265 -
266 -src_prepare() {
267 - epatch "${PATCHES[@]}"
268 - sed -i -e "s:-lpcre ::" libpcrecpp.pc.in || die
269 - elibtoolize
270 -}
271 -
272 -multilib_src_configure() {
273 - ECONF_SOURCE="${S}" econf \
274 - --with-match-limit-recursion=$(usex recursion-limit 8192 MATCH_LIMIT) \
275 - $(multilib_native_use_enable bzip2 pcregrep-libbz2) \
276 - $(use_enable cxx cpp) \
277 - $(use_enable jit) $(use_enable jit pcregrep-jit) \
278 - $(use_enable pcre16) \
279 - $(use_enable pcre32) \
280 - $(multilib_native_use_enable libedit pcretest-libedit) \
281 - $(multilib_native_use_enable readline pcretest-libreadline) \
282 - $(use_enable static-libs static) \
283 - $(use_enable unicode utf) $(use_enable unicode unicode-properties) \
284 - $(multilib_native_use_enable zlib pcregrep-libz) \
285 - --enable-pcre8 \
286 - --enable-shared \
287 - --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
288 - --docdir="${EPREFIX}"/usr/share/doc/${PF}
289 -}
290 -
291 -multilib_src_compile() {
292 - emake V=1 $(multilib_is_native_abi || echo "bin_PROGRAMS=")
293 -}
294 -
295 -multilib_src_install() {
296 - emake \
297 - DESTDIR="${D}" \
298 - $(multilib_is_native_abi || echo "bin_PROGRAMS= dist_html_DATA=") \
299 - install
300 - gen_usr_ldscript -a pcre
301 -}
302 -
303 -multilib_src_install_all() {
304 - prune_libtool_files
305 -}
306 -
307 -pkg_preinst() {
308 - preserve_old_lib /$(get_libdir)/libpcre.so.0
309 -}
310 -
311 -pkg_postinst() {
312 - preserve_old_lib_notify /$(get_libdir)/libpcre.so.0
313 -}
314
315 diff --git a/dev-libs/libpcre/libpcre-8.41.ebuild b/dev-libs/libpcre/libpcre-8.41.ebuild
316 deleted file mode 100644
317 index e167ae0e6ea..00000000000
318 --- a/dev-libs/libpcre/libpcre-8.41.ebuild
319 +++ /dev/null
320 @@ -1,103 +0,0 @@
321 -# Copyright 1999-2018 Gentoo Foundation
322 -# Distributed under the terms of the GNU General Public License v2
323 -
324 -EAPI=5
325 -
326 -inherit eutils multilib libtool flag-o-matic toolchain-funcs multilib-minimal
327 -
328 -DESCRIPTION="Perl-compatible regular expression library"
329 -HOMEPAGE="http://www.pcre.org/"
330 -MY_P="pcre-${PV/_rc/-RC}"
331 -if [[ ${PV} != *_rc* ]] ; then
332 - # Only the final releases are available here.
333 - SRC_URI="mirror://sourceforge/pcre/${MY_P}.tar.bz2
334 - ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${MY_P}.tar.bz2"
335 -else
336 - SRC_URI="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/Testing/${MY_P}.tar.bz2"
337 -fi
338 -
339 -LICENSE="BSD"
340 -SLOT="3"
341 -KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
342 -IUSE="bzip2 +cxx +jit libedit pcre16 pcre32 +readline +recursion-limit static-libs unicode zlib"
343 -REQUIRED_USE="readline? ( !libedit )
344 - libedit? ( !readline )"
345 -
346 -RDEPEND="
347 - bzip2? ( app-arch/bzip2 )
348 - zlib? ( sys-libs/zlib )
349 - libedit? ( dev-libs/libedit )
350 - readline? ( sys-libs/readline:0= )
351 -"
352 -DEPEND="
353 - ${RDEPEND}
354 - virtual/pkgconfig
355 -"
356 -RDEPEND="
357 - ${RDEPEND}
358 - abi_x86_32? (
359 - !<=app-emulation/emul-linux-x86-baselibs-20131008-r2
360 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
361 - )
362 -"
363 -
364 -S="${WORKDIR}/${MY_P}"
365 -
366 -MULTILIB_CHOST_TOOLS=(
367 - /usr/bin/pcre-config
368 -)
369 -
370 -PATCHES=(
371 - "${FILESDIR}"/${PN}-8.41-sljit_mips-label-statement-fix.patch
372 -)
373 -
374 -src_prepare() {
375 - epatch "${PATCHES[@]}"
376 - sed -i -e "s:-lpcre ::" libpcrecpp.pc.in || die
377 - elibtoolize
378 -}
379 -
380 -multilib_src_configure() {
381 - local myeconfargs=(
382 - --with-match-limit-recursion=$(usex recursion-limit 8192 MATCH_LIMIT)
383 - $(multilib_native_use_enable bzip2 pcregrep-libbz2)
384 - $(use_enable cxx cpp)
385 - $(use_enable jit) $(use_enable jit pcregrep-jit)
386 - $(use_enable pcre16)
387 - $(use_enable pcre32)
388 - $(multilib_native_use_enable libedit pcretest-libedit)
389 - $(multilib_native_use_enable readline pcretest-libreadline)
390 - $(use_enable static-libs static)
391 - $(use_enable unicode utf) $(use_enable unicode unicode-properties)
392 - $(multilib_native_use_enable zlib pcregrep-libz)
393 - --enable-pcre8
394 - --enable-shared
395 - --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html
396 - --docdir="${EPREFIX}"/usr/share/doc/${PF}
397 - )
398 - ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
399 -}
400 -
401 -multilib_src_compile() {
402 - emake V=1 $(multilib_is_native_abi || echo "bin_PROGRAMS=")
403 -}
404 -
405 -multilib_src_install() {
406 - emake \
407 - DESTDIR="${D}" \
408 - $(multilib_is_native_abi || echo "bin_PROGRAMS= dist_html_DATA=") \
409 - install
410 - gen_usr_ldscript -a pcre
411 -}
412 -
413 -multilib_src_install_all() {
414 - prune_libtool_files
415 -}
416 -
417 -pkg_preinst() {
418 - preserve_old_lib /$(get_libdir)/libpcre.so.0
419 -}
420 -
421 -pkg_postinst() {
422 - preserve_old_lib_notify /$(get_libdir)/libpcre.so.0
423 -}