git: bsd.crunchgen.mk: Add CRUNCH_HOSTPROGS_${P} and fix awk in rescue
Aaron LI
aly at crater.dragonflybsd.org
Fri Sep 4 02:42:52 PDT 2026
commit 6e9501b248604a58ac739b86af2caa727d73d7e6
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/6e9501b248604a58ac739b86af2caa727d73d7e6
--
DragonFly BSD source repository
More information about the Commits
mailing list