[bsdgrep] -w option matches part of words (Was: Apache 2.2 port and missing modules on current.)

From: Anonymous <swell.k_at_gmail.com>
Date: Tue, 10 Aug 2010 21:45:06 +0400
Bartosz Stec <admin_at_kkip.pl> writes:

>    # /usr/local/etc/rc.d/apache22 start
>    Performing sanity check on apache22 configuration:
>    httpd: Syntax error on line 68 of
>    /usr/local/etc/apache22/httpd.conf: Cannot load
>    /usr/local/libexec/apache22/mod_cache.so into server: Cannot open
>    "/usr/local/libexec/apache22/mod_cache.so"
[...]
> Problem seems to be connected with ./configure script:
>
>    # make configure &> build.log
>    # grep -i cache build.log
>    (...)
>    checking whether to enable mod_file_cache... shared
>    checking whether to enable mod_cache... no
>    checking whether to enable mod_disk_cache... shared
>    checking whether to enable mod_mem_cache... no
>    (...)

Seems like APACHE_MODULES is incorrectly populated.

  $ make -V APACHE_MODULES BATCH= GREP=${LOCALBASE-/usr/local}/bin/grep | fgrep cache
  ...cache disk_cache file_cache...
  $ make -V APACHE_MODULES BATCH= | fgrep cache
  ...disk_cache file_cache...

I guess the failing line is below in bsd.apache.mk

  ${ECHO_CMD} ${WITHOUT_MODULES} | ${GREP} -wq $${module} 2> /dev/null || \

It can be reduced to

  $ echo mem_cache | grep --color -w cache
Received on Tue Aug 10 2010 - 15:45:29 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:06 UTC