The following list of changes are roughly what has occurred since the last
update:
Features:
- With bsdgrep -r, the working directory is implied if no directory is
specified
- bsdgrep will now behave as bsdgrep -r does when it's named rgrep
- bsdgrep now understands -z/--null-data to use \0 as EOL
- GNU regex compatibility is now indicated with a "GNU compatible" in
the version string
Fixes:
- --mmap no longer hangs when coming across an EOF without an
accompanying EOL
- -o/--color matching generally improved, now produces earliest /
longest matches
- Context output now more closely aligns with GNU grep
- Zero-length matches no longer exhibit broken behavior
- Every output line now honors -b/-H/-n flags
Other fixes are also present.
While here, move to the version as reported by `grep -V` -- I intend to bump
the version in base sensible as bugfixes/features roll in.
Tested with: Poudriere (amd64, head)
Tested with: Poudriere (amd64, 11.1)
Tested with: Poudriere (amd64, 10.4)
Glanced at by: Portlint -AC
PR: 227639, 197531
Approved by: portmgr (feld)
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.
While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.
Also, replace some EXTRACT_SUFX occurences with USES=tar:*.
Checked by: make fetch-urlall-list
With hat: portmgr
Sponsored by: Absolight
- actually enable NLS in OPTIONS
- change LOCALBASE to PREFIX, as it was attempting to create a directory in
one, and then install a file into another
- this fixes package building
Feature safe: yes
Chabgelog:
+ Rewritten fast matcher code: slight performance improvement and better
scalability, more reliable, more fine-grained (handles a wider scale of
patterns), uses Turbo Boyer-Moore and Quick Search algorithms
+ Readd --mmap, default is still read(2)
+ Support xz/lzma archives
+ Bugfix: support of empty pattern
+ Bugfix: pattern file cannot be a directory
+ Bugfix: proper error handling when using -F / fgrep
+ Bugfix: fix handling of ^$ anchors
+ Bugfix: partly fix content after last match of -m
Changes
- Fix -v flag [1]
- Proper EOF checking [2]
- Better and probable fully GNU-compatible binary checking
- Readd fixed string optimizations from OpenBSD in a
cleaner way; now it works with all the features, like
--color and -o
Reported by: Chuck Swiger <cswiger@mac.com> [1],
Stuart Barkley <stuartb@4gh.net> [2]
contains, because I forgot to make clean before tarballing this
release. For the next update it will be rolled in a clean way.
- Bump PORTREVISION
Reported by: pointyhat (via erwin)
Changes:
- Improved GNU compatibility, e.g. all the returned status codes
should be compatible now
- Added NLS support via catgets()
- Change the way of handling gzip/bzip2 files to get rid of some
limitations, like detecting of binary bzip2 files
- Cleanups in the code
This version is now supposed to be compatible with GNU grep 2.5.1, which
can be found in FreeBSD. According to some preliminary measurements,
they achieve almost the same level of efficiency, this version seem to be
measureably but not significantly faster. Further tests are needed
to test and examine this version of grep.
OpenBSD. It lacks some features of GNU grep. It is a proposed project idea
to replace the GNU grep with this one, but it needs to be completed first.
Patches are highly appreciated.
WWW: http://www.freebsd.org/projects/ideas/#p-bsdtexttools
Obtained from: OpenBSD