git: DragonFly_RELEASE_6_4 bsd.crunchgen.mk: Add CRUNCH_HOSTPROGS_${P} and fix awk in rescue
Aaron LI
aly at crater.dragonflybsd.org
Fri Sep 4 02:49:33 PDT 2026
commit 52ff205633f987ff976f272126a866378f3d14ee
Author: Aaron LI <aly at aaronly.me>
Date: Thu Sep 3 15:23:02 2026 +0800
bsd.crunchgen.mk: Add CRUNCH_HOSTPROGS_${P} and fix awk in rescue
The usr.bin/awk consists of two subdirs: (1) 'awk' the actual program;
(2) 'maketab' a host program to help generate additional source.
Previously, the initrd/rescue/Makefile pointed the awk source to
'usr.bin/awk', and that caused the following warning:
```
crunchgen: rescue.conf: awk: warning: could not find any .o files
```
And pointing the source to 'usr.bin/awk/awk' couldn't fix it because the
required 'maketab' program would be unavailable.
To fix the problem as well as to extend the crunchgen framework, add the
CRUNCH_HOSTPROGS_${P} variable to specify the host programs required by
the build. Implement the rules and specify the dependencies to build
the host programs.
Bug: https://bugs.dragonflybsd.org/issues/3414
Assisted-by: Claude Sonnet 5
Summary of changes:
initrd/rescue/Makefile | 3 +++
share/mk/bsd.crunchgen.mk | 20 ++++++++++++++++++++
2 files changed, 23 insertions(+)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/52ff205633f987ff976f272126a866378f3d14ee
--
DragonFly BSD source repository
More information about the Commits
mailing list