[Bug 266806] www/bozohttpd: Fails to compile if Lua support is disabled

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 04 Oct 2022 01:54:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266806

            Bug ID: 266806
           Summary: www/bozohttpd: Fails to compile if Lua support is
                    disabled
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: freebsd@kumba.dev
                CC: jmohacsi@bsd.hu
                CC: jmohacsi@bsd.hu
             Flags: maintainer-feedback?(jmohacsi@bsd.hu)

The www/bozohttpd port will not build if Lua support is disabled.  It looks
like the -DNO_LUA_SUPPORT compiler flag is not getting passed down to the
various make calls, causing the conditional #include <lua.h> in bozohttpd.h to
generate the error.  I tried playing around with the port's make file, but as
far as I can tell, it appears to be fine, so I think it is an issue with the
package's own makefile, and makefiles aren't one of my strong points.

I also tried updating the package to the latest bozohttpd release (20220517),
but that has the same issue.  I suspect the NO_LUA_SUPPORT flag may not be the
only one affected, so the other NO_XXX_SUPPORT flags probably need to be
checked as well.

# cat /var/db/ports/www_bozohttpd/options
# This file is auto-generated by 'make config'.
# Options for bozohttpd-20210227
_OPTIONS_READ=bozohttpd-20210227
_FILE_COMPLETE_OPTIONS_LIST=BLACKLIST CGI DAEMON DEBUG DIRINDEX DYNAMIC
HTPASSWD LUA SSL USER
OPTIONS_FILE_UNSET+=BLACKLIST
OPTIONS_FILE_UNSET+=CGI
OPTIONS_FILE_SET+=DAEMON
OPTIONS_FILE_SET+=DEBUG
OPTIONS_FILE_SET+=DIRINDEX
OPTIONS_FILE_UNSET+=DYNAMIC
OPTIONS_FILE_UNSET+=HTPASSWD
OPTIONS_FILE_UNSET+=LUA
OPTIONS_FILE_UNSET+=SSL
OPTIONS_FILE_UNSET+=USER


> # make package
> ===>  License BSD2CLAUSE accepted by the user
> ===>   bozohttpd-20210227 depends on file: /usr/local/sbin/pkg - found
> ===> Fetching all distfiles required by bozohttpd-20210227 for building
> ===>  Extracting for bozohttpd-20210227
> => SHA256 Checksum OK for bozohttpd-20210227.tar.bz2.
> ===>  Patching for bozohttpd-20210227
> ===>  Applying FreeBSD patches for bozohttpd-20210227 from /usr/ports/www/bozohttpd/files
> ===>  Configuring for bozohttpd-20210227
> ===>  Building for bozohttpd-20210227
> --- objwarn ---
> --- .depend ---
> --- objwarn ---
> Warning: Object directory not changed from original /usr/ports/www/bozohttpd/work/bozohttpd-20210227
> --- .depend ---
> echo bozohttpd: /usr/lib/libc.a  >> .depend
> --- bozohttpd.o ---
> --- ssl-bozo.o ---
> --- auth-bozo.o ---
> --- cgi-bozo.o ---
> --- bozohttpd.o ---
> cc  -O2 -pipe -fno-strict-aliasing -march=native  -fPIE -MD  -MF.depend.bozohttpd.o -MTbozohttpd.o -std=gnu99 -Wno-format-zero-length -nobuiltininc -idirafter /usr/lib/clang/13.0.0/include -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-variable  -Qunused-arguments    -c bozohttpd.c -o bozohttpd.o
> --- ssl-bozo.o ---
> cc  -O2 -pipe -fno-strict-aliasing -march=native  -fPIE -MD  -MF.depend.ssl-bozo.o -MTssl-bozo.o -std=gnu99 -Wno-format-zero-length -nobuiltininc -idirafter /usr/lib/clang/13.0.0/include -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-variable  -Qunused-arguments    -c ssl-bozo.c -o ssl-bozo.o
> --- auth-bozo.o ---
> cc  -O2 -pipe -fno-strict-aliasing -march=native  -fPIE -MD  -MF.depend.auth-bozo.o -MTauth-bozo.o -std=gnu99 -Wno-format-zero-length -nobuiltininc -idirafter /usr/lib/clang/13.0.0/include -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-variable  -Qunused-arguments    -c auth-bozo.c -o auth-bozo.o
> --- cgi-bozo.o ---
> cc  -O2 -pipe -fno-strict-aliasing -march=native  -fPIE -MD  -MF.depend.cgi-bozo.o -MTcgi-bozo.o -std=gnu99 -Wno-format-zero-length -nobuiltininc -idirafter /usr/lib/clang/13.0.0/include -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-variable  -Qunused-arguments    -c cgi-bozo.c -o cgi-bozo.o
> --- daemon-bozo.o ---
> cc  -O2 -pipe -fno-strict-aliasing -march=native  -fPIE -MD  -MF.depend.daemon-bozo.o -MTdaemon-bozo.o -std=gnu99 -Wno-format-zero-length -nobuiltininc -idirafter /usr/lib/clang/13.0.0/include -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-variable  -Qunused-arguments    -c daemon-bozo.c -o daemon-bozo.o
> --- ssl-bozo.o ---
> In file included from ssl-bozo.c:41:
> ./bozohttpd.h:44:10: fatal error: 'lua.h' file not found
> #include <lua.h>
>          ^~~~~~~
> --- bozohttpd.o ---
> In file included from bozohttpd.c:147:
> ./bozohttpd.h:44:10: fatal error: 'lua.h' file not found
> #include <lua.h>
>          ^~~~~~~
> --- cgi-bozo.o ---
> In file included from cgi-bozo.c:52:
> ./bozohttpd.h:44:10: fatal error: 'lua.h' file not found
> #include <lua.h>
>          ^~~~~~~
> --- daemon-bozo.o ---
> In file included from daemon-bozo.c:52:
> ./bozohttpd.h:44:10: fatal error: 'lua.h' file not found
> #include <lua.h>
>          ^~~~~~~
> --- cgi-bozo.o ---
> 1 error generated.
> *** [cgi-bozo.o] Error code 1
> 
> make[2]: stopped in /usr/ports/www/bozohttpd/work/bozohttpd-20210227
> --- daemon-bozo.o ---
> 1 error generated.
> *** [daemon-bozo.o] Error code 1
> 
> make[2]: stopped in /usr/ports/www/bozohttpd/work/bozohttpd-20210227
> --- bozohttpd.o ---
> 1 error generated.
> *** [bozohttpd.o] Error code 1
> 
> make[2]: stopped in /usr/ports/www/bozohttpd/work/bozohttpd-20210227
> --- ssl-bozo.o ---
> 1 error generated.
> *** [ssl-bozo.o] Error code 1
> 
> make[2]: stopped in /usr/ports/www/bozohttpd/work/bozohttpd-20210227
> 4 errors
> 
> make[2]: stopped in /usr/ports/www/bozohttpd/work/bozohttpd-20210227
> ===> Compilation failed unexpectedly.
> Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
> the maintainer.
> *** Error code 1
> 
> Stop.
> make[1]: stopped in /usr/ports/www/bozohttpd
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/ports/www/bozohttpd

-- 
You are receiving this mail because:
You are the assignee for the bug.