From 6608cc579e210d6083f73e5c3477e8683a442ae0 Mon Sep 17 00:00:00 2001 From: Gabor Kovesdan Date: Mon, 23 Aug 2010 10:04:26 +0000 Subject: [PATCH] - Change default grep back to GNU version. BSD grep can be built with the WITH_BSD_GREP knob. - Bump __FreeBSD_version Requested by: dougb Approved by: delphij (mentor) --- gnu/usr.bin/Makefile | 8 ++++---- share/mk/bsd.own.mk | 2 +- sys/sys/param.h | 2 +- tools/build/options/WITH_BSD_GREP | 2 ++ tools/build/options/WITH_GNU_GREP | 2 -- usr.bin/Makefile | 8 ++++---- 6 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 tools/build/options/WITH_BSD_GREP delete mode 100644 tools/build/options/WITH_GNU_GREP diff --git a/gnu/usr.bin/Makefile b/gnu/usr.bin/Makefile index 0a6d51fdcdf7..2d9ad7266394 100644 --- a/gnu/usr.bin/Makefile +++ b/gnu/usr.bin/Makefile @@ -28,6 +28,10 @@ _groff= groff .endif .endif +.if ${MK_BSD_GREP} != "yes" +_grep= grep +.endif + .if ${MK_CVS} != "no" _cvs= cvs .endif @@ -36,10 +40,6 @@ _cvs= cvs _dtc= dtc .endif -.if ${MK_GNU_GREP} != "no" -_grep= grep -.endif - .if ${MK_INFO} != "no" _texinfo= texinfo .endif diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index 24b2ca41538b..477a83abf7d1 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -419,9 +419,9 @@ MK_${var}:= yes BIND_LIBS \ BIND_SIGCHASE \ BIND_XML \ + BSD_GREP \ ${_clang_no} \ FDT \ - GNU_GREP \ HESIOD \ IDEA .if defined(WITH_${var}) && defined(WITHOUT_${var}) diff --git a/sys/sys/param.h b/sys/sys/param.h index 7e781d2f5267..8d3e34e28b35 100644 --- a/sys/sys/param.h +++ b/sys/sys/param.h @@ -58,7 +58,7 @@ * in the range 5 to 9. */ #undef __FreeBSD_version -#define __FreeBSD_version 900016 /* Master, propagated to newvers */ +#define __FreeBSD_version 900017 /* Master, propagated to newvers */ #ifndef LOCORE #include diff --git a/tools/build/options/WITH_BSD_GREP b/tools/build/options/WITH_BSD_GREP new file mode 100644 index 000000000000..702ca25f6124 --- /dev/null +++ b/tools/build/options/WITH_BSD_GREP @@ -0,0 +1,2 @@ +.\" $FreeBSD$ +Build BSD-licensed grep instead of GNU grep. diff --git a/tools/build/options/WITH_GNU_GREP b/tools/build/options/WITH_GNU_GREP deleted file mode 100644 index c4bd008bf730..000000000000 --- a/tools/build/options/WITH_GNU_GREP +++ /dev/null @@ -1,2 +0,0 @@ -.\" $FreeBSD$ -Set to build the base system with GNU grep instead of BSD grep diff --git a/usr.bin/Makefile b/usr.bin/Makefile index 08c10c39be9f..3214761f60a4 100644 --- a/usr.bin/Makefile +++ b/usr.bin/Makefile @@ -277,6 +277,10 @@ _bluetooth= bluetooth _cpio= cpio .endif +.if ${MK_BSD_GREP} != "no" +_grep= grep +.endif + .if ${MK_CALENDAR} != "no" _calendar= calendar .endif @@ -285,10 +289,6 @@ _calendar= calendar _clang= clang .endif -.if ${MK_GNU_GREP} != "yes" -_grep= grep -.endif - .if ${MK_HESIOD} != "no" _hesinfo= hesinfo .endif