Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jul 2006 08:27:03 -0600
From:      John E Hein <jhein@timing.com>
To:        Sergey Matveychuk <sem@FreeBSD.org>
Cc:        freebsd-stable@FreeBSD.org
Subject:   Re: portupgrade bug: -M no longer works after v2.1.0
Message-ID:  <17589.1719.666455.768409@gromit.timing.com>
In-Reply-To: <44B4CDE3.60205@FreeBSD.org>
References:  <44B40863.9060403@asd.aplus.net> <44B483B8.6000005@FreeBSD.org> <44B4A164.50003@asd.aplus.net> <44B4CDE3.60205@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Sergey Matveychuk wrote at 14:24 +0400 on Jul 12, 2006:
 > Both -m and -M works fine but do different things. -m pass its argument
 > as make file argument(s) and -M pass its argument as environment
 > variable(s). You can't set make variable with environment variable. They
 > are different!
 >
 > -M has never worked as you expected. You can test it with a command:
 > %cd /usr/ports/www/apache13
 > %env APACHE_HARD_SERVER_LIMIT=1024 make
 > against of
 > % make APACHE_HARD_SERVER_LIMIT=1024
 > 
 > I think you confuse the two variables types.

This is incorrect.
make(1) looks at the environment for variables.
See the man page.

If you tested your example, you'd see that it works fine.

make APACHE_HARD_SERVER_LIMIT=22 -V CFLAGS
-O2 -fno-strict-aliasing -pipe  -DDOCUMENT_LOCATION=\\\\\"/usr/local/www/data\\\\\"  -DDEFAULT_PATH=\\\\\"/bin:/usr/bin:/usr/local/bin\\\\\" -DHARD_SERVER_LIMIT=22

env APACHE_HARD_SERVER_LIMIT=22 make -V CFLAGS
-O2 -fno-strict-aliasing -pipe  -DDOCUMENT_LOCATION=\\\\\"/usr/local/www/data\\\\\"  -DDEFAULT_PATH=\\\\\"/bin:/usr/bin:/usr/local/bin\\\\\" -DHARD_SERVER_LIMIT=22




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17589.1719.666455.768409>