cb0b65eca2
Changelog: * Noteworthy changes in release 2.22 (2015-11-01) [stable] ** Improvements Performance has improved for patterns containing very long strings, reducing preprocessing time for an N-byte regexp from O(N^2) to only slightly superlinear for most patterns. Before, a command like the following would take over a minute, but now, it takes less than a second: : | grep -f <(seq -s '' 99999) When building grep, 'configure' now uses PCRE's pkg-config module for configuration information, rather than attempting to guess it by hand. ** Bug fixes A DFA matcher bug made this command mistakenly print its input line: echo axb | grep -E '^x|x$' Likewise for this equivalent command: echo axb | grep -e '^x' -e 'x$' [bug introduced in grep-2.19 ] grep no longer reads from uninitialized memory or from beyond the end of the heap-allocated input buffer. This fix addressed CVE-2015-1345. [bug introduced in grep-2.19 ] With -z, '.' and '[^x]' in a pattern now consistently match newline. Previously, they sometimes matched newline, and sometimes did not. [bug introduced in grep-2.4] When the JIT stack is exhausted, grep -P now grows the stack rather than reporting an internal PCRE error. 'grep -D skip PATTERN FILE' no longer hangs if FILE is a fifo. [bug introduced in grep-2.12] --exclude and related options are now matched against entire command-line arguments, not against command-line components. [bug introduced in grep-2.6] Fix performance degradation of grep -Fw in unibyte locales. [bug introduced in grep-2.19 ]
41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.44 2015/11/20 19:04:49 ryoon Exp $
|
|
|
|
DISTNAME= grep-2.22
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=grep/}
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= bouyer@NetBSD.org
|
|
HOMEPAGE= http://www.gnu.org/software/grep/grep.html
|
|
COMMENT= GNU grep
|
|
LICENSE= gnu-gpl-v3 # or later
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
USE_TOOLS+= makeinfo msgfmt
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --disable-perl-regexp
|
|
CONFIGURE_ARGS+= --program-prefix=g
|
|
CONFIGURE_ENV+= MKDIR_P=${INSTALL_DATA_DIR:Q}
|
|
INFO_FILES= yes
|
|
TEXINFO_REQD= 4.0
|
|
|
|
INSTALLATION_DIRS= ${PKGGNUDIR}bin ${PKGGNUDIR}${PKGMANDIR}/man1
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OS_VARIANT} == "SCOOSR5"
|
|
# SCO OpenServer 5.0.7/3.2's pthread is builtin GNU pth.
|
|
CONFIGURE_ARGS+= --enable-threads=pth
|
|
.endif
|
|
|
|
post-install:
|
|
.for g n in bin/ggrep ${PKGGNUDIR}bin/grep bin/gegrep ${PKGGNUDIR}bin/egrep \
|
|
bin/gfgrep ${PKGGNUDIR}bin/fgrep \
|
|
man/man1/ggrep.1 ${PKGGNUDIR}${PKGMANDIR}/man1/grep.1 \
|
|
man/man1/ggrep.1 ${PKGGNUDIR}${PKGMANDIR}/man1/egrep.1 \
|
|
man/man1/ggrep.1 ${PKGGNUDIR}${PKGMANDIR}/man1/fgrep.1
|
|
${LN} -sf ${PREFIX}/${g} ${DESTDIR}${PREFIX}/${n}
|
|
.endfor
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|