[Bug 291283] devel/libvirt qemu support needs shebangfix

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 29 Nov 2025 16:53:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291283

            Bug ID: 291283
           Summary: devel/libvirt qemu support needs shebangfix
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: novel@FreeBSD.org
          Reporter: dhorn2000@gmail.com
             Flags: maintainer-feedback?(novel@FreeBSD.org)
          Assignee: novel@FreeBSD.org

Created attachment 265708
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=265708&action=edit
Makefile patch for SHEBANG_GLOB

While compiling this port with OPTIONS "qemu=on", I get a stage-qa failure:

====> Running Q/A tests (stage-qa)
Error: '/usr/bin/env python3' is an invalid shebang you need USES=shebangfix
for 'bin/virt-qemu-sev-validate'
Error: '/usr/bin/env python3' is an invalid shebang you need USES=shebangfix
for 'bin/virt-qemu-qmp-proxy'
*** Error code 1

Stop.
make: stopped making "all" in /usr/ports/devel/libvirt

Expected:
No failure with "qemu=on"

STR Config:
===> The following configuration options are available for libvirt-11.9.0:
     BHYVE=on: bhyve driver
     DOCS=on: Build and/or install documentation
     LIBSSH=on: libssh remote transport
     LIBSSH2=on: libssh2 remote transport
     NLS=on: Native Language Support
     NSS=off: Name Service Switch plugin
     QEMU=on: QEMU driver
     READLINE=on: Command line editing via libreadline
     SASL=off: SASL authentication support
     XEN=off: Xen support via libxl
     ZFS=on: ZFS storage driver
===> Use 'make config' to modify these settings

FreeBSD freebsd-zfs 16.0-CURRENT FreeBSD 16.0-CURRENT #2
main-n281684-e5ff8e797743: Tue Nov  4 08:27:05 EST 2025    
root@freebsd-zfs:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64

I attached a proposed `Makefile` patch that works for me.   Might also be worth
a pass with  portfmt(1) and/or portlint(1)

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