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

Anonymous swell.k at gmail.com
Tue Aug 10 17:45:29 UTC 2010


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


More information about the freebsd-current mailing list