WITHOUT_MODULES in make.conf causes www/apache24 to fail

From: Michael Jung <jammin2night_at_gmail.com>
Date: Thu, 24 Nov 2022 15:22:01 UTC

This has been an issue for several weeks(months?) and I'm just getting 
around to digging into the issue.

As of 2022-11-24 ~10:00 AM EST if you have /usr/ports made using 
portsnap or poudriere  tracking main

[root@firewall /usr/local/poudriere/ports/default]# git remote get-url 
[root@firewall /usr/local/poudriere/ports/default]# git branch
* main
[root@firewall /usr/local/poudriere/ports/default]#

you get the following error:


root@firewall /usr/ports/www/apache24]#make
apache24-2.4.54 : Error from apache.mk. WITH(OUT)_MODULES has been


===>  apache24-2.4.54 : Error from apache.mk. WITH(OUT)_MODULES has been
removed, use www_apache24_(UN)SET.
*** Error code 1

I have determined that if you have "WITHOUT_MODULES" in make.conf to 
exclude modules from a kernel build you get this error.  I have not 
found any documentation that you should use "UNSET_MODULES" in make.conf.

I build a wide range or packages and this so far this has only been 
problematic for  www/apache24.

I am currently running stable/13-af3ccd7b6d: in the base system and my 
jail is 13.1-STABLE 1301509 a41a9e01c

Removing or remarking out "WITHOUT_MODULES" in /etc/make.conf allow 
apache24 to build.

In /usr/ports/Mk/Uses/apache.bsd if you remark out:

.  if defined(WITH_MODULES) || defined(WITHOUT_MODULES)
IGNORE= ${_ERROR_MSG} WITH(OUT)_MODULES has been removed, use 
.  endif

The error does not occur.

I am not a Make expert by any means but wanted to report the issue.