summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2014-06-04 05:16:34 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2014-06-04 05:16:34 +0000
commita369a3ced943418d25cf83744fc08614c5f75d7f (patch)
tree078cf38d0576706743f980032824f72da963dc22 /sys-apps/grep
parentVersion bump; fixing regression introduced in 2.19. (diff)
downloadhistorical-a369a3ced943418d25cf83744fc08614c5f75d7f.tar.gz
historical-a369a3ced943418d25cf83744fc08614c5f75d7f.tar.bz2
historical-a369a3ced943418d25cf83744fc08614c5f75d7f.zip
old
Package-Manager: portage-2.2.10/cvs/Linux x86_64 Manifest-Sign-Key: 0x4868F14D
Diffstat (limited to 'sys-apps/grep')
-rw-r--r--sys-apps/grep/ChangeLog9
-rw-r--r--sys-apps/grep/Manifest23
-rw-r--r--sys-apps/grep/files/grep-2.15-avoid_maintainer_mode.patch51
-rw-r--r--sys-apps/grep/files/grep-2.15-fix_pattern_matching.patch111
-rw-r--r--sys-apps/grep/files/grep-2.15-fix_pcre_abort_regression.patch115
-rw-r--r--sys-apps/grep/grep-2.18.ebuild40
-rw-r--r--sys-apps/grep/grep-2.19.ebuild40
7 files changed, 16 insertions, 373 deletions
diff --git a/sys-apps/grep/ChangeLog b/sys-apps/grep/ChangeLog
index b9739ff6b201..561cfe3e3033 100644
--- a/sys-apps/grep/ChangeLog
+++ b/sys-apps/grep/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-apps/grep
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/grep/ChangeLog,v 1.146 2014/06/04 05:15:09 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/grep/ChangeLog,v 1.147 2014/06/04 05:16:30 ssuominen Exp $
+
+ 04 Jun 2014; Samuli Suominen <ssuominen@gentoo.org>
+ -files/grep-2.15-avoid_maintainer_mode.patch,
+ -files/grep-2.15-fix_pattern_matching.patch,
+ -files/grep-2.15-fix_pcre_abort_regression.patch, -grep-2.18.ebuild,
+ -grep-2.19.ebuild:
+ old
*grep-2.20 (04 Jun 2014)
diff --git a/sys-apps/grep/Manifest b/sys-apps/grep/Manifest
index 529c81c7b8e9..76274937cb47 100644
--- a/sys-apps/grep/Manifest
+++ b/sys-apps/grep/Manifest
@@ -1,27 +1,20 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
-AUX grep-2.15-avoid_maintainer_mode.patch 2040 SHA256 0b3e0fd86ca501b7b07d3d3d72149b8a9cd2b9b903e270dc34f00c93346b597e SHA512 8b592b3e11f69d65c70254a38bba586da93616e0f13f06bc68b74211015accc818c4ca64498e31d308a67ce8d6ff741978230428e80093fb00761de055c92f52 WHIRLPOOL f5cb454d3cb6075a16d1455de3b52a3a79c74e146d18d432a7998349d0556e3d48f56158b22d6e817d90167f448de00bad000ecea0b705efa99f437b9269dee1
-AUX grep-2.15-fix_pattern_matching.patch 3677 SHA256 b3ca6b4707efb31070f3288dfb6a25a78e872d641afec49330b14364c4d39fc3 SHA512 964a758425f53e5161eed79508135f17c6bae505af594763e010310a444a257ec430abc9480c01da5097b0e53ea73e12ad157af184db8f641646b549c027c65f WHIRLPOOL 921461f247f688dd33d5ad117b3db3fb257808ccd7fd8ffe027fd739b27e10094383e5398d33a43171399e2867acaf3ba92686dc75bbe7041309309eea481235
-AUX grep-2.15-fix_pcre_abort_regression.patch 4194 SHA256 cd2aa132e0726aa51aa957adc68477e4ce254f64dabc6c5ebb433a4e679f5144 SHA512 c1803e6816b8a59388296a81b529b569ff7e1b5223011f7956fc6f0331aa83c1352216b67435284876473b4121d1b4bd504db07aa11a92f77dfec4eb15a2ad51 WHIRLPOOL abc9e2f0878a6d591fbe9c80b096834500bf03bb49a003abc5e4b70c51c2b9f19a00a257695cde4e98359a0b685f84350d79eaf8238a601ad5253a8cc15316e0
DIST grep-2.16.tar.xz 1210192 SHA256 16dfeb5013d8c9f21f40ccec0936f2c1c6a014c828d30488f0d5c6ef7b551162 SHA512 6b56aca3c859c28d463e1aa755f4f004087985573a8e012a8371780d6b7cbfa8587d5b0bfd2d37b1ddf6c3a49b9126d1e1408d2cc9255558f6cd5754b395b9f9 WHIRLPOOL 008f8338335fd50867fe08306330b679ba5809ecd64837901651bc90f31ed620be2377da0aba90fd57f099fa89bd2cbaf9fc08c8d18cd9aba229c613671c358f
-DIST grep-2.18.tar.xz 1213220 SHA256 e6436e5077fa1497feccc8feaabd3f507b172369bf120fbc9e4874bba81be720 SHA512 2d0e6cf9dc47a49d72ecb3e2c3b7bd8dd4d9cdef7bcec002af2c41e6cc57c26520b115188477ba7bfdf7c67fea86d1105450227f9df2900aac16ea6bb7783263 WHIRLPOOL 3bf001360c72f2dac05af609960b6a05f56a3d8f6906a616064ad990c9a3a048cfb1641d2db4d5b8a5385e99d62dbc991c074a0d10e175f19ec6023e3727c5a5
-DIST grep-2.19.tar.xz 1234676 SHA256 6388295be48cfcaf7665d9cd3914e6625ea000e9414132bfefd45cf1d8eec34d SHA512 1672ffc64dcb6085d18ac829b8af30d74fbc84d895869a0f152f103bc44c40a7db43c69cf0ee9e3f923cc1eddd68803220f041cc919663efcbdd697a3d4ef15e WHIRLPOOL 09b6ec74b8dfd52003946e0a3f75896edb305106d2811a1840ebd4300cbd120fc33471294716eb409fadcb77d2ecad8cc3f15c71992b6666cc68bbb0764cd9da
DIST grep-2.20.tar.xz 1237196 SHA256 f0af452bc0d09464b6d089b6d56a0a3c16672e9ed9118fbe37b0b6aeaf069a65 SHA512 97e0a92a84727eb590099ffdd44f296eff2232d1f3d508a9391e8a9976993da2b49ea80381d9b711609cb86d889a2d5903aaf2f14d79ad10b2bea1027a8a498e WHIRLPOOL 79cd992bf1c631442186cf19d1f7770fd986fef9c4d852c756f95c93639c82c1aff79a43cf37febf29152b07bf1c0c0bcffa7d9ad66442edc2cbd252c8540a1e
EBUILD grep-2.16.ebuild 1430 SHA256 ea8ff2e9633f76015b4a9cafedfefdd9712ab04745685b1f177065aa0e434ce6 SHA512 33f8982aa2d607aa5309c24688beda0c5b1e4baf9c2d61739e8367f61c10ab910d4992175b82d0a19924099bd3350991fb0dac5ab8095b0b8763750891a30898 WHIRLPOOL a53df626b3ca0b79764231b1dc59ec8194cf564e76f0b8a526c02691b718897c3f69711675515d7d632e16f3ba17d54a2766893eae72fc7d4569054716dddfe4
-EBUILD grep-2.18.ebuild 1451 SHA256 919151dc7ac801119427836b8bc828fb71618cb6f2710be66801814253946c7f SHA512 ecba46cf3a3efdfa355efaef7c1cbdf33159188b36c7053ec302aeb39b6e367923ee321189bff492113e92db8c5652e933fe406852223b97d6053a4a32ca545a WHIRLPOOL 91020b0fd3c0ee83d8b896bdc9066d7f7e71d8ddf2646443318f45b504c36de284418ac655a1420caa407717ceb05e9f13eecb37d22e34aecaf5c470ff71ac28
-EBUILD grep-2.19.ebuild 1451 SHA256 39b1d67b099a4c0d171816b39ce170117446899247f960a8ab021e2a69e0f523 SHA512 d3efb75f8aec8dff1426f6850a22b25513ad3dcee4d883202e66e4719dd53893ddf99b373137c2cd1f93c3ed508a5bef10f16f9ba38e7e2c6a12075a122e330e WHIRLPOOL f52c5aa0fe67c1e4704588952e583c7f7f124532252fc2fef8a8bd14ad82aa3d693d96c6d112be333084ee60d3596ff857ff6ac52fdc80dfbf34df06baffc408
EBUILD grep-2.20.ebuild 1448 SHA256 bd87b842fc0e6612602e231eed6f5cb24eedefd990a68720d1a9df3b8248df51 SHA512 1f3046f133ea84d990112034618fba3e2ef3540e6cc3e3f89cfdaa210bd7a233fc8879e5cfbe3900c294afd31b2b7f38c8a1f64f62c0ff1e803400e5431f2bd8 WHIRLPOOL 98284ccd0ce6a651a935dfa81bd45eb60c9b1582c52ab3d48537f8e90e482fb54389b206dfa60cd4884a9c8a7ec171a4d9bc8940fb212c96c5d9c52b1bc83d3f
-MISC ChangeLog 19752 SHA256 d9c268e8f996c4b11c4e6bb5b363403f3a03ba7da42c63ba8d3662d8641af354 SHA512 accbf3f929ae0c17e61ba259d9613d01f1b51da7e8a625e022a3ce909be9229aeae3ddb7fd42543c50678e885b14e74ad08281f51b47a128c2041654cf906449 WHIRLPOOL b9dbf8551a32f0c679a3a49dda9f3e0a4317f2c12d5bfe739540c13e4ebfc7e9b29c72221de960f0c76d2972d31359f1a3dd8369d60703267e5412fd3e85da77
+MISC ChangeLog 20000 SHA256 d66b0f0742748d83c734cad46efcd9f3137731c724587cd07f0ff7ebe9db3b5e SHA512 2442bf339349723b8e64968078ae190c0b99f4c2eaaf1c7526cf7259b4c6606fcb3e9e330542b63893f996ffad226cd9f892ce2b3148af5386030e2fb71814b0 WHIRLPOOL e672f6e2bc29a9569fb93e024b95bdbbfd276115aad67cc68d65d073429f61329dde0519d873241cca3e8629bc377dd9639074a2a9c7f1eebe3c44568acebf4a
MISC metadata.xml 239 SHA256 81e2263e85947bfea9b25bba8e5e5ee4c8926035903d4a603b0b89a9727eb754 SHA512 63460f39b4c7c948542e78143e0a2965b0915d4e6312a18799a6c8120c97625ee926f18f62e70caf2748a2136ce5848de387b537a12ed882fdca1aab326f0111 WHIRLPOOL 2e280afad5417d07550f36f74114cee1a02df44540ee65d7bfd1028d571dd35d5d6358f792ffc79f172f161ac4f17f38093963e5148c315b35b49bec0bc8397d
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iQEcBAEBCAAGBQJTjqrSAAoJEEdUh39IaPFNie8H/A+l4Uzws9/aB7PQHWXIs1/C
-nEiXEr80kUNoObvUY2ubmMz269/87j2YxI0YEq3sgwbC6fb/nLuFMwi7gPjtWvBY
-RYDgQQHwmBM1EQgP1zTvtBqvnCvHeGJGbT0QpptLrs4piKtdkOyKCJ86yiUpQB1Q
-GcKOmTGXHYYwciNDGsm5Q01KorgujdIT9aG2ySGoHAnonTrrhq47vD2vpil3ZuJs
-XSUcv0ihLM16LzRgJ0imjlL1TLNjgZBQpybDp6YHdlqRA0axIBC5q6xoLaEXv69G
-D5/0qtUd/mroRga/wV68WHJZ9f6gOstupYh/VhyNJLY1vRmnMhGCzoDs3jfTtjk=
-=IMCL
+iQEcBAEBCAAGBQJTjqsiAAoJEEdUh39IaPFN9yIIAIX5iWvFdH27EwExrXcxvgkX
+YFkRwn3esi2+IKaxJ+Uw6a04ZaTTYwg9KBhzSEm8xkBnSJLyaknzqnmmO9nO2MIn
+gUshwkFuYt7iWVEajd9ltSmXlGnFWul6a/pspohGtQv0SphomgXAIjCWtuMVxRQr
+fiVg1i3p8RoxL2/sm+ttgenJ22//DPQuyO1ufgyfGT2FfxRkzq9SCEkUGa/DQARG
+0m3mkS7HZLIK52ibPy8/2qomt4IjZuw0IfLEMNWF1NU5yuxdqQK4T5ZCdSAMIk9I
+HZ2kMPjZuXbdckD67zehrw4sALAwbQlz9lqQ1mlptTL0gWj+4CRCgJ1Yyd5kKAo=
+=9yqL
-----END PGP SIGNATURE-----
diff --git a/sys-apps/grep/files/grep-2.15-avoid_maintainer_mode.patch b/sys-apps/grep/files/grep-2.15-avoid_maintainer_mode.patch
deleted file mode 100644
index 884983b094ff..000000000000
--- a/sys-apps/grep/files/grep-2.15-avoid_maintainer_mode.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-Patch to avoid regeneration of Makefile.in because we cannot use autotools in
-@system packages.
-
-Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
-
---- grep-2.15/tests/Makefile.in 2013-10-26 18:46:39.000000000 +0200
-+++ grep-2.15/tests/Makefile.in 2013-10-26 18:46:39.000000000 +0200
-@@ -1586,6 +1586,7 @@
- backref \
- backref-multibyte-slow \
- backref-word \
-+ backslash-s-and-repetition-operators \
- backslash-s-vs-invalid-multitype \
- big-hole \
- big-match \
-@@ -1628,6 +1629,7 @@
- options \
- pcre \
- pcre-abort \
-+ pcre-invalid-utf8-input \
- pcre-utf8 \
- pcre-z \
- prefix-of-multibyte \
-@@ -1992,6 +1994,13 @@
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-+backslash-s-and-repetition-operators.log: backslash-s-and-repetition-operators
-+ @p='backslash-s-and-repetition-operators'; \
-+ b='backslash-s-and-repetition-operators'; \
-+ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
-+ --log-file $$b.log --trs-file $$b.trs \
-+ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
-+ "$$tst" $(AM_TESTS_FD_REDIRECT)
- backslash-s-vs-invalid-multitype.log: backslash-s-vs-invalid-multitype
- @p='backslash-s-vs-invalid-multitype'; \
- b='backslash-s-vs-invalid-multitype'; \
-@@ -2285,6 +2294,13 @@
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
-+ "$$tst" $(AM_TESTS_FD_REDIRECT)
-+pcre-invalid-utf8-input.log: pcre-invalid-utf8-input
-+ @p='pcre-invalid-utf8-input'; \
-+ b='pcre-invalid-utf8-input'; \
-+ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
-+ --log-file $$b.log --trs-file $$b.trs \
-+ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
- pcre-utf8.log: pcre-utf8
- @p='pcre-utf8'; \
diff --git a/sys-apps/grep/files/grep-2.15-fix_pattern_matching.patch b/sys-apps/grep/files/grep-2.15-fix_pattern_matching.patch
deleted file mode 100644
index 5c3dc325a51a..000000000000
--- a/sys-apps/grep/files/grep-2.15-fix_pattern_matching.patch
+++ /dev/null
@@ -1,111 +0,0 @@
-From 7f96aa773b5967bbb3c8476f8614fd04b3fc1362 Mon Sep 17 00:00:00 2001
-From: Jim Meyering <meyering@fb.com>
-Date: Fri, 01 Nov 2013 03:20:30 +0000
-Subject: grep: fix regression involving \s and \S
-
-Commit v2.14-40-g01ec90b made \s and \S work with multi-byte
-characters, but it made it so any use like \s*, \s+, \s?, \s{3}
-would malfunction in a multi-byte locale.
-* src/dfa.c (lex): Also reset laststart.
-* tests/backslash-s-and-repetition-operators: New file.
-* tests/Makefile.am (TESTS): Add it.
-* NEWS (Bug fixes): Mention it.
-* THANKS: Update.
-Reported by Mirraz Mirraz in http://bugs.gnu.org/15773.
----
-diff --git a/NEWS b/NEWS
-index 161be50..078d13b 100644
---- a/NEWS 2013-10-26 18:51:55.000000000 +0200
-+++ b/NEWS 2013-10-26 18:51:55.000000000 +0200
-@@ -9,6 +9,11 @@ GNU grep NEWS -*- outline -*-
- procedure resulted in a grep-2.15 tarball that would lead to a grep
- binary whose --version-reported version number was 2.14.51...
-
-+ The fix to make \s and \S work with multi-byte white space broke
-+ the use of each shortcut whenever followed by a repetition operator.
-+ For example, \s*, \s+, \s? and \s{3} would all malfunction in a
-+ multi-byte locale. [bug introduced in grep-2.15]
-+
-
- * Noteworthy changes in release 2.15 (2013-10-26) [stable]
-
-diff --git a/THANKS b/THANKS
-index 1a1901c..475c51e 100644
---- a/THANKS 2013-06-11 15:33:31.000000000 +0200
-+++ b/THANKS 2013-06-11 15:33:31.000000000 +0200
-@@ -66,6 +66,7 @@ Martin Rex <martin.rex@sap-ag.de>
- Michael Aichlmayr <mikla@nx.com>
- Mike Frysinger <vapier@gentoo.org>
- Miles Bader <miles@ccs.mt.nec.co.jp>
-+Mirraz Mirraz <mirraz1@rambler.ru>
- Nelson H. F. Beebe <beebe@math.utah.edu>
- Olaf Kirch <okir@ns.lst.de>
- Paolo Bonzini <bonzini@gnu.org>
-diff --git a/src/dfa.c b/src/dfa.c
-index de6c671..92c410e 100644
---- a/src/dfa.c 2013-10-20 19:08:06.000000000 +0200
-+++ b/src/dfa.c 2013-10-20 19:08:06.000000000 +0200
-@@ -1473,6 +1473,7 @@ lex (void)
-
- POP_LEX_STATE ();
-
-+ laststart = 0;
- return lasttok;
-
- case 'w':
-diff --git a/tests/Makefile.am b/tests/Makefile.am
-index a64a2d2..970a9de 100644
---- a/tests/Makefile.am 2013-10-20 19:08:06.000000000 +0200
-+++ b/tests/Makefile.am 2013-10-20 19:08:06.000000000 +0200
-@@ -36,6 +36,7 @@ TESTS = \
- backref \
- backref-multibyte-slow \
- backref-word \
-+ backslash-s-and-repetition-operators \
- backslash-s-vs-invalid-multitype \
- big-hole \
- big-match \
-diff --git a/tests/backslash-s-and-repetition-operators b/tests/backslash-s-and-repetition-operators
-new file mode 100755
-index 0000000..3b250d4
---- a/dev/null
-+++ b/tests/backslash-s-and-repetition-operators
-@@ -0,0 +1,36 @@
-+#! /bin/sh
-+# Ensure that \s and \S work with repetition operators.
-+#
-+# Copyright (C) 2013 Free Software Foundation, Inc.
-+#
-+# Copying and distribution of this file, with or without modification,
-+# are permitted in any medium without royalty provided the copyright
-+# notice and this notice are preserved.
-+
-+. "${srcdir=.}/init.sh"; path_prepend_ ../src
-+
-+require_en_utf8_locale_
-+
-+fail=0
-+
-+for loc in en_US.UTF-8 C; do
-+ echo locale=$loc
-+ LC_ALL=$loc
-+ export LC_ALL
-+
-+ printf ' \n' > in || framework_failure_
-+
-+ for re in '\s\+' '\s*' '\s\?' '\s\{1\}'; do
-+ grep "^$re\$" in > out || fail=1
-+ compare in out || fail=1
-+ done
-+
-+ printf 'X\n' > in || framework_failure_
-+
-+ for re in '\S\+' '\S*' '\S\?' '\S\{1\}'; do
-+ grep "^$re\$" in > out || fail=1
-+ compare in out || fail=1
-+ done
-+done
-+
-+Exit $fail
---
-cgit v0.9.0.2
diff --git a/sys-apps/grep/files/grep-2.15-fix_pcre_abort_regression.patch b/sys-apps/grep/files/grep-2.15-fix_pcre_abort_regression.patch
deleted file mode 100644
index f2bc4afd3486..000000000000
--- a/sys-apps/grep/files/grep-2.15-fix_pcre_abort_regression.patch
+++ /dev/null
@@ -1,115 +0,0 @@
-From 9a9b4c59babc60e15a79cf7db8167d42e68e44b9 Mon Sep 17 00:00:00 2001
-From: Jim Meyering <meyering@fb.com>
-Date: Sat, 02 Nov 2013 19:15:48 +0000
-Subject: grep: fix regression with -P vs. invalid UTF-8 input
-
-* src/pcresearch.c (Pexecute): Don't abort upon unexpected
-PCRE-specific error code. Explicitly handle PCRE_ERROR_BADUTF8,
-and change the default to print a diagnostic including the unhandled
-integer PCRE error code and exit with status 2.
-* tests/pcre-invalid-utf8-input: New file.
-* tests/Makefile.am (TESTS): Add it.
-* NEWS (Bug fixes): Mention it.
-* THANKS: Update.
-Reported by Dave Reisner in http://bugs.gnu.org/15758.
----
-diff --git a/NEWS b/NEWS
-index 078d13b..e974f29 100644
---- a/NEWS 2013-10-26 18:51:55.000000000 +0200
-+++ b/NEWS 2013-10-26 18:51:55.000000000 +0200
-@@ -14,6 +14,12 @@ GNU grep NEWS -*- outline -*-
- For example, \s*, \s+, \s? and \s{3} would all malfunction in a
- multi-byte locale. [bug introduced in grep-2.15]
-
-+ The fix to make grep -P work better with UTF-8 made it possible for
-+ grep to evoke a larger set of PCRE errors, some of which could trigger
-+ an abort. E.g., this would abort:
-+ printf '\x82'|LC_ALL=en_US.UTF-8 grep -P y
-+ Now grep handles arbitrary PCRE errors. [bug introduced in grep-2.15]
-+
-
- * Noteworthy changes in release 2.15 (2013-10-26) [stable]
-
-diff --git a/THANKS b/THANKS
-index 475c51e..02ef246 100644
---- a/THANKS 2013-06-11 15:33:31.000000000 +0200
-+++ b/THANKS 2013-06-11 15:33:31.000000000 +0200
-@@ -20,6 +20,7 @@ Christian Groessler <cpg@aladdin.de>
- Corinna Vinschen <vinschen@redhat.com>
- Dagobert Michelsen <dam@opencsw.org>
- Daisuke GOTO <gotoh@m-design.com>
-+Dave Reisner <d@falconindy.com>
- David Clissold <cliss@austin.ibm.com>
- David J MacKenzie <djm@catapult.va.pubnix.com>
- David O'Brien <obrien@freebsd.org>
-diff --git a/src/pcresearch.c b/src/pcresearch.c
-index ad5999d..9ba1227 100644
---- a/src/pcresearch.c 2013-06-11 15:33:31.000000000 +0200
-+++ b/src/pcresearch.c 2013-06-11 15:33:31.000000000 +0200
-@@ -185,9 +185,20 @@ Pexecute (char const *buf, size_t size, size_t *match_size,
- error (EXIT_TROUBLE, 0,
- _("exceeded PCRE's backtracking limit"));
-
-+ case PCRE_ERROR_BADUTF8:
-+ error (EXIT_TROUBLE, 0,
-+ _("invalid UTF-8 byte sequence in input"));
-+
- default:
-- abort ();
-+ /* For now, we lump all remaining PCRE failures into this basket.
-+ If anyone cares to provide sample grep usage that can trigger
-+ particular PCRE errors, we can add to the list (above) of more
-+ detailed diagnostics. */
-+ error (EXIT_TROUBLE, 0, _("internal PCRE error: %d"), e);
- }
-+
-+ /* NOTREACHED */
-+ return -1;
- }
- else
- {
-diff --git a/tests/Makefile.am b/tests/Makefile.am
-index 970a9de..76b8c52 100644
---- a/tests/Makefile.am 2013-10-20 19:08:06.000000000 +0200
-+++ b/tests/Makefile.am 2013-10-20 19:08:06.000000000 +0200
-@@ -79,6 +79,7 @@ TESTS = \
- options \
- pcre \
- pcre-abort \
-+ pcre-invalid-utf8-input \
- pcre-utf8 \
- pcre-z \
- prefix-of-multibyte \
-diff --git a/tests/pcre-invalid-utf8-input b/tests/pcre-invalid-utf8-input
-new file mode 100755
-index 0000000..52a5432
---- a/dev/null
-+++ b/tests/pcre-invalid-utf8-input
-@@ -0,0 +1,25 @@
-+#! /bin/sh
-+# Ensure that grep -P doesn't abort for invalid multi-byte input
-+#
-+# Copyright (C) 2013 Free Software Foundation, Inc.
-+#
-+# Copying and distribution of this file, with or without modification,
-+# are permitted in any medium without royalty provided the copyright
-+# notice and this notice are preserved.
-+
-+. "${srcdir=.}/init.sh"; path_prepend_ ../src
-+require_pcre_
-+require_en_utf8_locale_
-+
-+fail=0
-+
-+printf '\202\n' > in || framework_failure_
-+printf 'grep: invalid UTF-8 byte sequence in input\n' \
-+ > exp-err || framework_failure_
-+
-+LC_ALL=en_US.UTF-8 grep -P anything in > out 2> err
-+test $? = 2 || fail=1
-+compare /dev/null out || fail=1
-+compare exp-err err || fail=1
-+
-+Exit $fail
---
-cgit v0.9.0.2
diff --git a/sys-apps/grep/grep-2.18.ebuild b/sys-apps/grep/grep-2.18.ebuild
deleted file mode 100644
index dd05b1e3e35b..000000000000
--- a/sys-apps/grep/grep-2.18.ebuild
+++ /dev/null
@@ -1,40 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/grep/grep-2.18.ebuild,v 1.1 2014/02/25 09:07:42 polynomial-c Exp $
-
-EAPI="4"
-
-inherit flag-o-matic toolchain-funcs
-
-DESCRIPTION="GNU regular expression matcher"
-HOMEPAGE="http://www.gnu.org/software/grep/"
-SRC_URI="mirror://gnu/${PN}/${P}.tar.xz
- mirror://gentoo/${P}.tar.xz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="nls pcre static"
-
-LIB_DEPEND="pcre? ( >=dev-libs/libpcre-7.8-r1[static-libs(+)] )"
-RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
- nls? ( virtual/libintl )
- virtual/libiconv"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- nls? ( sys-devel/gettext )
- static? ( ${LIB_DEPEND} )"
-
-DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
-
-src_configure() {
- use static && append-ldflags -static
- # Always use pkg-config to get lib info for pcre.
- export ac_cv_search_pcre_compile=$(
- usex pcre "$($(tc-getPKG_CONFIG) --libs $(usex static --static '') libpcre)" ''
- )
- econf \
- --bindir="${EPREFIX}"/bin \
- $(use_enable nls) \
- $(use_enable pcre perl-regexp)
-}
diff --git a/sys-apps/grep/grep-2.19.ebuild b/sys-apps/grep/grep-2.19.ebuild
deleted file mode 100644
index d3ee44b6a1fc..000000000000
--- a/sys-apps/grep/grep-2.19.ebuild
+++ /dev/null
@@ -1,40 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/grep/grep-2.19.ebuild,v 1.1 2014/05/23 07:53:01 polynomial-c Exp $
-
-EAPI="4"
-
-inherit flag-o-matic toolchain-funcs
-
-DESCRIPTION="GNU regular expression matcher"
-HOMEPAGE="http://www.gnu.org/software/grep/"
-SRC_URI="mirror://gnu/${PN}/${P}.tar.xz
- mirror://gentoo/${P}.tar.xz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="nls pcre static"
-
-LIB_DEPEND="pcre? ( >=dev-libs/libpcre-7.8-r1[static-libs(+)] )"
-RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
- nls? ( virtual/libintl )
- virtual/libiconv"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- nls? ( sys-devel/gettext )
- static? ( ${LIB_DEPEND} )"
-
-DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
-
-src_configure() {
- use static && append-ldflags -static
- # Always use pkg-config to get lib info for pcre.
- export ac_cv_search_pcre_compile=$(
- usex pcre "$($(tc-getPKG_CONFIG) --libs $(usex static --static '') libpcre)" ''
- )
- econf \
- --bindir="${EPREFIX}"/bin \
- $(use_enable nls) \
- $(use_enable pcre perl-regexp)
-}