[Bug 292544] sysutils/edk2: failed to build edk2-bhyve g202508.

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 27 May 2026 18:30:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292544

--- Comment #21 from Michael Osipov <michaelo@FreeBSD.org> ---
I can confirm that this fix works for me:
root@deblndw011x:/var/poudriere/ports/latest (main *=)
# git diff
diff --git a/sysutils/edk2/Makefile b/sysutils/edk2/Makefile
index 6b1f07fde4..5cb4cd885d 100644
--- a/sysutils/edk2/Makefile
+++ b/sysutils/edk2/Makefile
@@ -53,6 +53,8 @@ GH_TUPLE= tianocore:edk2-platforms:${PLATFORM_TAG}:platforms
\

 # Heavily dependent on bsd.port.pre.mk definitions for lang/gcc* details:
 BINARY_ALIAS=  make=${GMAKE} \
+       ar=${AR} \
+       dtc=${LOCALBASE}/bin/dtc \
        gcc=${LOCALBASE}/bin/${CC} \
        g++=${LOCALBASE}/bin/${CXX} \
        gcc-nm=${LOCALBASE}/bin/${CC:S/gcc/&-nm/} \

I cannot tell whether dtc is truly required since there is dtc in base, but it
is a build time dependency:
root@deblndw011x:/var/poudriere/ports/latest (main *=)
# grep -r bin/dtc --include=pkg-plist* .
./sysutils/dtc/pkg-plist:bin/dtc

Until someone can profoundly explain that the dtc port isn't required I will
retain it.

Preparing review...

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