Update to 2.24 Changelog: * Noteworthy changes in release 2.24 (2016-03-10) [stable] ** Bug fixes grep -z would match strings it should not. To trigger the bug, you'd have to use a regular expression including an anchor (^ or $) and a feature like a range or a backreference, causing grep to forego its DFA matcher and resort to using re_search. With a multibyte locale, that matcher could mistakenly match a string containing a newline. For example, this command: printf 'a\nb\0' | LC_ALL=en_US.utf-8 grep -z '^[a-b]*b' would mistakenly match and print all four input bytes. After the fix, there is no match, as expected. [bug introduced in grep-2.7] grep -Pz now diagnoses attempts to use patterns containing ^ and $, instead of mishandling these patterns. This problem seems to be inherent to the PCRE API; removing this limitation is on PCRE's maint/README wish list. Patterns can continue to match literal ^ and $ by escaping them with \ (now needed even inside [...]). [bug introduced in grep-2.5]diff -r1.45 -r1.46 pkgsrc/textproc/grep/Makefile
(ryoon)
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | # $NetBSD: Makefile,v 1.45 2016/02/12 23:28:43 ryoon Exp $ | 1 | # $NetBSD: Makefile,v 1.46 2016/03/14 13:16:31 ryoon Exp $ | |
2 | 2 | |||
3 | DISTNAME= grep-2.23 | 3 | DISTNAME= grep-2.24 | |
4 | CATEGORIES= textproc | 4 | CATEGORIES= textproc | |
5 | MASTER_SITES= ${MASTER_SITE_GNU:=grep/} | 5 | MASTER_SITES= ${MASTER_SITE_GNU:=grep/} | |
6 | EXTRACT_SUFX= .tar.xz | 6 | EXTRACT_SUFX= .tar.xz | |
7 | 7 | |||
8 | MAINTAINER= bouyer@NetBSD.org | 8 | MAINTAINER= bouyer@NetBSD.org | |
9 | HOMEPAGE= http://www.gnu.org/software/grep/grep.html | 9 | HOMEPAGE= http://www.gnu.org/software/grep/grep.html | |
10 | COMMENT= GNU grep | 10 | COMMENT= GNU grep | |
11 | LICENSE= gnu-gpl-v3 # or later | 11 | LICENSE= gnu-gpl-v3 # or later | |
12 | 12 | |||
13 | USE_PKGLOCALEDIR= yes | 13 | USE_PKGLOCALEDIR= yes | |
14 | USE_TOOLS+= makeinfo msgfmt | 14 | USE_TOOLS+= makeinfo msgfmt | |
15 | GNU_CONFIGURE= yes | 15 | GNU_CONFIGURE= yes | |
16 | CONFIGURE_ARGS+= --disable-perl-regexp | 16 | CONFIGURE_ARGS+= --disable-perl-regexp |
@@ -1,6 +1,6 @@ | @@ -1,6 +1,6 @@ | |||
1 | $NetBSD: distinfo,v 1.19 2016/02/12 23:28:43 ryoon Exp $ | 1 | $NetBSD: distinfo,v 1.20 2016/03/14 13:16:31 ryoon Exp $ | |
2 | 2 | |||
3 | SHA1 (grep-2.23.tar.xz) = 76239b0c7f6d93acc820832b8241227619ff1cdb | 3 | SHA1 (grep-2.24.tar.xz) = 3ecbec7805b8c3082094dc4dd9c4d415c24b9669 | |
4 | RMD160 (grep-2.23.tar.xz) = e44f6a41cfced6cd08f7b0cbb838c63507b16f00 | 4 | RMD160 (grep-2.24.tar.xz) = 79303252099639b42b5bcc01089f060cb281d056 | |
5 | SHA512 (grep-2.23.tar.xz) = 4b1d86bfe46039db6d5e1c773f73a30a1fd21a2bdceba6286df0e6b97d93f01750e9ba3a6363a31c06c9ff9fa3850b0a9bca214d52cccf4d0d27e087208ab3ab | 5 | SHA512 (grep-2.24.tar.xz) = 44dafa41ef74687ef91efdb6fd8e81a1a8469f74ec98a6d681eee304455dd18561abca328b89e22b4b7ba5ce157b1d34cae3251d86354df36807b7042afc3650 | |
6 | Size (grep-2.23.tar.xz) = 1317488 bytes | 6 | Size (grep-2.24.tar.xz) = 1321680 bytes |