portupgrade bug: -M no longer works after v2.1.0

Matthias Andree matthias.andree at gmx.de
Tue Jul 11 20:48:14 UTC 2006


Atanas <atanas at asd.aplus.net> writes:

> Recent portupgrade versions no longer obey the -M command line switch,
> i.e. any optional arguments to be prepended to each make command.
>
> How to reproduce:
>
> # portinstall -M "APACHE_HARD_SERVER_LIMIT=1024" www/apache13
> ...
> ===> src/ap
> cc -c  -I../os/unix -I../include -I/usr/local/include  -funsigned-char
> -O2 -fno-strict-aliasing -pipe
> -DDOCUMENT_LOCATION=\"/usr/local/www/data\"
> -DDEFAULT_PATH=\"/bin:/usr/bin:/usr/local/bin\" -DHARD_SERVER_LIMIT=512
> `../apaci` ap_cpystrn.c
> ...
>
> Note the -DHARD_SERVER_LIMIT=512 above.

Does it work if you type (you can omit the env in /bin/sh, bash, (pd)ksh
and other Bourne-like shells):

env APACHE_HARD_SERVER_LIMIT=1024 portinstall www/apache13

(Isn't it time to migrate to a newer Apache version anyways? 8-) )

-- 
Matthias Andree


More information about the freebsd-stable mailing list