packages: make bhyve depend on acpi

bhyve(8) on amd64 needs iasl(8) to run, otherwise it fails with:

  /bin/sh: /usr/sbin/iasl: not found
  bhyve: BASL failed @ build_dsdt:484
      Failed to execute basl_compile(ctx, basl_fwrite_dsdt): Unknown
  error: 32512
  bhyve: BASL failed @ acpi_build:899
      Failed to execute build_dsdt(ctx): Unknown error: 32512
  Assertion failed: (error == 0), function bhyve_init_platform_late, file
  /home/pkgbuild/worktrees/main/usr.sbin/bhyve/amd64/bhyverun_machdep.c,
  line 394.

Register the "acpi" package which provides iasl(8) as a dependency for
bhyve on amd64.

Reviewed by:		markj (previous revision), ivy
Differential Revision:	https://reviews.freebsd.org/D56498
Sponsored by:		The FreeBSD Foundation
This commit is contained in:
Roman Bogorodskiy
2026-04-25 18:03:58 +02:00
parent 1abfe75860
commit 8a9c94cd59
+5
View File
@@ -1,3 +1,8 @@
WORLDPACKAGE= bhyve
# bhyve needs iasl(8) on amd64
.if ${MACHINE_ARCH} == "amd64"
PKG_DEPS.bhyve+= acpi
.endif
.include <bsd.pkg.mk>