[Bug 259788] misc/help2man (probably others?) make -B in ports tree breaks gmake build.

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 12 Nov 2021 00:44:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259788

            Bug ID: 259788
           Summary: misc/help2man (probably others?) make -B in ports tree
                    breaks gmake build.
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: mirror176@hotmail.com
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)
          Assignee: sunpoet@FreeBSD.org

-B causes failure during build of misc/help2man. -B has a different meaning for
gmake telling it to unconditionally make all targets. I presume -B was to try
to get -jN kernel builds to not try to build multiple ports simultaneously as
building dependencies may happen and that would lead to possible collisions. My
build attempts have been on a -stable and ports tree updated with git within
the past two weeks.

  Following build(7) to use PORTS_MODULES lead me to discover this problem:
`make PORTS_MODULES=emulators/virtualbox-ose-kmod buildkernel`
which executes:
`cd ${PORTSDIR:-/usr/ports}/emulators/virtualbox-ose-kmod; env  -u CC  -u CXX 
-u CPP  -u MAKESYSPATH  -u MK_AUTO_OBJ  -u MAKEOBJDIR  MAKEFLAGS="-D
NO_MODULES_OBJ KERNEL=kernel TARGET=amd64 TARGET_ARCH=amd64" 
SYSDIR=/usr/src/sys 
PATH=/usr/obj/usr/src/amd64.amd64/tmp/bin:/usr/obj/usr/src/amd64.amd64/tmp/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/libexec::/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
 SRC_BASE=/usr/src  OSVERSION=1300520 
WRKDIRPREFIX=/usr/obj/usr/src/amd64.amd64/sys/GENERIC make -B clean build`.
  I tried removing the -B from /usr/src/sys/conf/kern.post.mk (lines 132 and
140) but leads to a failure earlier up the chain in devel/kBuild though I may
have tested with -jN type of setting during buildkernel. This is repeatable by
merely having -B on the command line when in the ports tree normally.

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