[Bug 279530] Improved Build Option/src.conf Dependency Support
Date: Tue, 04 Jun 2024 21:30:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279530
Bug ID: 279530
Summary: Improved Build Option/src.conf Dependency Support
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: editor@callfortesting.org
It is above my pay grade to say if this is a bug or feature request.
FreeBSD build options have a limited notion of dependency warning, notably if
you enter a src-env.conf entry in src.conf, you quickly receive the
notification:
make: "/usr/src/share/mk/src.sys.mk" line 27: Option <BUILD OPTION> may only be
defined in /etc/src-env.conf, environment, or make argument, not
<path>/src.conf.
This is an appreciated time saver.
Options such as WITHOUT_SYSTEM_LINKER include dependency information in
src.conf(5) such as, "This option is only relevant when WITH_LLD_BOOTSTRAP is
set.". However, it fails without a warning, and the src.conf(5) entry for
WITH_LLD_BOOTSTRAP reports, "To be able to build the system an alternate linker
must be provided via XLD.".
Having those as machine-mandated rather than manual-mandated dependencies would
be very helpful and time saving when validating the build options. It would be
nice if attempting to build with one minus the other would simply give the
information in the manual page and exit, rather than continue for minutes or
hours, and return an error, which can be particularly confusing when built in
parallel.
Related, example syntax of "an alternative linker" would make the information
more actionable.
--
You are receiving this mail because:
You are the assignee for the bug.