Bug 259788 - misc/help2man (probably others?) make -B in ports tree breaks gmake build.
Summary: misc/help2man (probably others?) make -B in ports tree breaks gmake build.
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-12 00:44 UTC by Edward.Sanford.Sutton, III
Modified: 2021-11-12 00:44 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Edward.Sanford.Sutton, III 2021-11-12 00:44:36 UTC
-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.