Bug 282786 - devel/libvirt: build fails on missing 'bhyveload' (15/aarch64)
Summary: devel/libvirt: build fails on missing 'bhyveload' (15/aarch64)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm64 Any
: --- Affects Only Me
Assignee: Ronald Klop
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-15 15:59 UTC by Ronald Klop
Modified: 2024-12-03 23:03 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (novel)


Attachments
git diff fixing the build (593 bytes, patch)
2024-11-15 15:59 UTC, Ronald Klop
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ronald Klop freebsd_committer freebsd_triage 2024-11-15 15:59:24 UTC
Created attachment 255200 [details]
git diff fixing the build

The build fails in configure:

Program bhyve found: YES (/usr/sbin/bhyve)
Program bhyvectl found: YES (/usr/sbin/bhyvectl)
Program bhyveload found: NO

meson.build:1490:19: ERROR: Program 'bhyveload' not found or not executable

See:
https://pkg-status.freebsd.org/ampere2/data/main-arm64-default/p380be9c7980a_s5036d9652a5/logs/libvirt-10.9.0.log

Support for bhyve is new in 15/aarch64.
But the ports OPTION BHYVE is not enabled in the port for aarch64. It isn't even defined.

I think on runtime it does detect some bhyve artifacts because this does not disable driver_bhyve on aarch64.

.if exists(/usr/sbin/bhyve)
OPTIONS_DEFINE_amd64+=  BHYVE
OPTIONS_DEFAULT_amd64+= BHYVE
.else
PLIST_SUB+=             BHYVE="@comment "
SUB_LIST+=              BHYVE="@comment "
MESON_ARGS+=    -Ddriver_bhyve=disabled
.endif
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-12-03 22:58:42 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=751fd2a4a2fcd48fc1f80b1a2d20848f35a924a3

commit 751fd2a4a2fcd48fc1f80b1a2d20848f35a924a3
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2024-11-15 20:16:13 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2024-12-03 22:57:21 +0000

    devel/libvirt: fix build on 15/aarch64

    The build picked up BHYVE option while it does not have the
    /usr/sbin/bhyveload executable which is needed by the build.

    PR:     282786
    Reported by:    https://lists.freebsd.org/archives/freebsd-pkg-fallout/2024-December/690521.html
    Approved by:    novel@ (maintainer timeout)

 devel/libvirt/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)