There's a weird side-effect of bsdgrep though. For some reason with bsdgrep mod_alias never gets built with www/apache22. You can enable the option all day long but it's always disabled when building. There are a few other issues as well.kpa said:
SirDice said:There's a weird side-effect of bsdgrep though.
% echo foobar bar | gnugrep -w bar; echo $?
foobar bar
0
% echo foobar bar | bsdgrep -w bar; echo $?
1
BSD-licensed versions of ar(1) and ranlib(1), based on libarchive(3), have replaced the GNU Binutils versions of these utilities.
BSD-licensed versions of bc(1) and dc(1) have replaced their GNU counterparts.
Add WITH_BSD_GREP to src.conf(5) and rebuild world. But do note the weird side-effects I mentioned earlier.ethoms said:I did not know that GNU grep was still the default grep. How does one replace it with bsdgrep?
[~]% ls /usr/src/gnu/*
/src/src/gnu/COPYING /src/src/gnu/Makefile
/src/src/gnu/COPYING.LIB /src/src/gnu/Makefile.inc
/src/src/gnu/lib:
Makefile libdialog/ libgomp/ libssp/
Makefile.inc libgcc/ libreadline/ libstdc++/
csu/ libgcov/ libregex/ libsupc++/
/src/src/gnu/usr.bin:
Makefile dialog/ gdb/ rcs/
Makefile.inc diff/ gperf/ sdiff/
binutils/ diff3/ grep/ send-pr/
cc/ dtc/ groff/ texinfo/
worldi said:I wouldn't recommend using bsdgrep yet. The code is awful and it's likely that it contains more bugs.
make -C /usr/ports/www/apache22 rmconfig config and check /var/db/ports/www_apache22/options. Look for the ALIAS option. If you run make -C /usr/ports/www/apache22 config again you'll notice ALIAS has suddenly been turned off. The result of this was that without editing the options file by hand I always ended up with a missing mod_alias in my packages. SirDice said:For me it was easy to test. Just runmake -C /usr/ports/www/apache22 rmconfig configand check /var/db/ports/www_apache22/options. Look for the ALIAS option. If you runmake -C /usr/ports/www/apache22 configagain you'll notice ALIAS has suddenly been turned off. The result of this was that without editing the options file by hand I always ended up with a missing mod_alias in my packages.
That was the only issue I noticed using BSD grep and why I stopped using it. It may have been fixed in the mean time though. I haven't tried it in a while.
--- options 2014-02-05 22:56:58.000000000 +0100
+++ /var/db/ports/www_apache22/options 2014-02-05 22:58:02.000000000 +0100
@@ -27,7 +27,7 @@
OPTIONS_FILE_SET+=DAV_FS
OPTIONS_FILE_UNSET+=DAV_LOCK
OPTIONS_FILE_SET+=ACTIONS
-OPTIONS_FILE_SET+=ALIAS
+OPTIONS_FILE_UNSET+=ALIAS
OPTIONS_FILE_SET+=ASIS
OPTIONS_FILE_SET+=AUTOINDEX
OPTIONS_FILE_SET+=CERN_META
<nitpick>kpa said: