#
322584 |
|
16-Aug-2017 |
kevans |
MFC r317678: bsdgrep: Add GNU compatible version string indicator
As reported in r218614 it's useful to have an indication of whether or not BSD grep was built with GNU_GREP_COMPAT.
Approved by: emaste (mentor, blanket MFC)
|
#
322582 |
|
16-Aug-2017 |
kevans |
MFC r317254: bsdgrep: add BSD_GREP_FASTMATCH knob for built-in fastmatch
Bugs have been found in the fastmatch implementation as used in bsdgrep. Some have been fixed (r316495) while fixes for others are in review (D10098).
In comparison with the fastmatch implementation, Kyle Evans found that:
- regex(3)'s performance with literal expressions offers a speed improvement over fastmatch
- regex(3)'s performance, both with simple BREs and EREs, seems to be comparable
The regex implementation was imported in r226035, and the commit message reports:
This is a temporary solution until the whole regex library is not replaced so that BSD grep development can continue and the backported code gets some review and testing. This change only improves scalability slightly, there is no big performance boost yet but several minor bugs have been found and fixed.
Introduce a WITH_/WITHOUT_BSD_GREP_FASTMATCH knob to support testing of both approaches.
Regenerate src.conf(5) as per the original commit
PR: 175314, 194823 Approved by: emaste (mentor, blanket MFC)
|
#
322557 |
|
16-Aug-2017 |
kevans |
MFC r316492: bsdgrep(1): Rip out "xmalloc" bits
xmalloc was a debug malloc implementation, but the x{malloc,calloc,free} functions default to calling the malloc(3) equivalents.
Instead of relying on this malloc shim, we can devise better ways to debug malloc issues that aren't misleading upon initial inspection. (I.e., using jemalloc's various built-in debugging capabilities.)
Approved by: emaste (mentor, blanket MFC)
|
#
322525 |
|
15-Aug-2017 |
kevans |
bsdgrep: treat rgrep as grep -r and install rgrep symlink
MFC r316473: bsdgrep: treat rgrep as grep -r
MFC r316484: bsdgrep(1): create rgrep link
Create a convenience rgrep link for bsdgrep(1) that observes 'grep -r' behavior.
A follow-up to r316473.
Approved by: emaste (mentor)
|
#
302408 |
|
07-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
285884 |
|
25-Jul-2015 |
pfg |
Bump GCC max-inline-insns-single in libiconv_modules and grep
This is required by our FORTIFY_SOURCE implementation as it does more inlining. As a rule of thumb, FORTIFY_SOURCE doubles the number of inlines except that in grep inlining blows up for some reason.
|
#
284345 |
|
13-Jun-2015 |
sjg |
Add META_MODE support.
Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree.
Still need to add real targets under targets/ to build packages.
Differential Revision: D2796 Reviewed by: brooks imp
|
#
277939 |
|
30-Jan-2015 |
ngie |
Create MANLINKS for lzgrep, etc when MK_LZMA_SUPPORT != no
MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
|
#
277273 |
|
16-Jan-2015 |
will |
Add a ${CP} alias for copying files in the build.
Some users build FreeBSD as non-root in Perforce workspaces. By default, Perforce sets files read-only unless they're explicitly being edited. As a result, the -f argument must be used to cp in order to override the read-only flag when copying source files to object directories. Bare use of 'cp' should be avoided in the future.
Update all current users of 'cp' in the src tree.
Reviewed by: emaste MFC after: 1 week Sponsored by: Spectra Logic
|
#
275042 |
|
25-Nov-2014 |
bapt |
Convert to usr.bin/ to LIBADD Reduce overlinking
|
#
272784 |
|
08-Oct-2014 |
ngie |
Integrate usr.bin/grep/tests from NetBSD into atf/kyua
Sponsored by: EMC / Isilon Storage Division
|
#
271771 |
|
18-Sep-2014 |
will |
Fix incremental builds involving non-root users with read-only source files.
Makefiles should not assume that source files can be overwritten. This is the common case for Perforce source trees.
This is a followup commit to r211243 in the same vein.
MFC after: 1 month Sponsored by: Spectra Logic MFSpectraBSD: r1036319 on 2014/01/29, r1046711 on 2014/03/06
|
#
265420 |
|
06-May-2014 |
imp |
Use src.opts.mk in preference to bsd.own.mk except where we need stuff from the latter.
|
#
263997 |
|
01-Apr-2014 |
imp |
Don't test WITHOUT_FOO in program makefiles, test MK_FOO instead.
|
#
251468 |
|
06-Jun-2013 |
jkim |
Adjust CFLAGS to pick up correct regex.h and posix/regex.h. Note this actually reverts r250860 and r250861.
Reported by: gjb, tinderbox
|
#
245171 |
|
08-Jan-2013 |
obrien |
Following r226271, allow disabling lzma support with "WITHOUT_LZMA_SUPPORT". Correct r226271 which should have used WITHOUT_BZIP2_SUPPORT per r166255.
Obtained from: Juniper Networks
|
#
228099 |
|
28-Nov-2011 |
gabor |
- Create links to the xz and lzma versions even if BSD grep is not the default. Nor GNU nor liblzma in base provides such functionality so it may be useful.
MFC after: 3 days
|
#
226664 |
|
23-Oct-2011 |
gabor |
- Fix installation when WITH_BSD_GREP is set to yes
Submitted by: Aleksandr Rybalko <ray@ddteam.net>
|
#
226271 |
|
11-Oct-2011 |
gabor |
- Use getprogname() instead of __progname - Allow disabling bzip2 support with WITHOUT_BZIP2 - Fix handling patterns that start with a dot - Remove superfluous semicolon
Approved by: delphij (mentor)
|
#
226035 |
|
05-Oct-2011 |
gabor |
Update BSD grep to the latest development version. It has some code backported that was written for the TRE integration project in Google Summer of Code 2011. This is a temporary solution until the whole regex library is not replaced so that BSD grep development can continue and the backported code gets some review and testing. This change only improves scalability slightly, there is no big performance boost yet but several minor bugs have been found and fixed.
Approved by: delphij (mentor) Sposored by: Google Summer of Code 2011 MFC after: 1 week
|
#
222772 |
|
06-Jun-2011 |
ed |
Remove redundant assignments to WARNS.
For these directories, WARNS is already implied to be 6.
|
#
222273 |
|
24-May-2011 |
obrien |
Build and install a BSD licensed grep. If WITH_BSD_GREP is not set, it will be 'bsdgrep' and GNUgrep will be '[ef]grep'. Otherwise, BSD-grep will be the grep family, and GNUgrep will be 'gnugrep'.
Discussed with: brooks
|
#
220422 |
|
07-Apr-2011 |
gabor |
- Adjust a comment to actual behaviour - Makefile nit - Add more CVS/SVN keywords to make it easier to track changes from NetBSD in case they add further improvements
Approved by: delphij (mentor) Obtained from: The NetBSD Project
|
#
210389 |
|
22-Jul-2010 |
gabor |
Add BSD grep to the base system and make it our default grep.
Deliverables: Small and clean code (1,4 KSLOC vs GNU's 8,5 KSLOC), lower memory usage than GNU grep, GNU compatibility, BSD license.
TODO: Performance is somewhat behind GNU grep but it is only significant for bigger searches. The reason is complex, the most important factor is that GNU grep uses lots of optimizations to improve the speed of the regex library. First, we need a modern regex library (practically by adopting TRE), add support for GNU-style non-standard regexes and then reevalute the performance issues and look for bottlenecks. In the meantime, for those, who need better performance, it is possible to build GNU grep by setting WITH_GNU_GREP.
Approved by: delphij (mentor) Obtained from: OpenBSD (http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/grep/), freegrep (http://github.com/howardjp/freegrep) Sponsored by: Google SoC 2008 Portbuild tests run by: kris, pav, erwin Acknowledgements to: fjoe (as SoC 2008 mentor), everyone who helped in reviewing and testing
|