git: c70c004f34b8 - main - emulators/qemu-user-static: Fix build on main

From: Dag-Erling Smørgrav <des_at_FreeBSD.org>
Date: Fri, 10 Jul 2026 16:28:17 UTC
The branch main has been updated by des:

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

commit c70c004f34b8afa268d8dce2ee7b1622f55f052d
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-07-10 16:28:08 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-07-10 16:28:08 +0000

    emulators/qemu-user-static: Fix build on main
    
    MFH:            2026Q3
    Reviewed by:    imp
    Differential Revision:  https://reviews.freebsd.org/D58153
---
 emulators/qemu-user-static/Makefile                           |  4 ++--
 emulators/qemu-user-static/distinfo                           |  6 +++---
 .../qemu-user-static/files/patch-bsd-user_freebsd_os-stat.h   | 11 -----------
 3 files changed, 5 insertions(+), 16 deletions(-)

diff --git a/emulators/qemu-user-static/Makefile b/emulators/qemu-user-static/Makefile
index 9521422f9f6b..24caaf8d4cb5 100644
--- a/emulators/qemu-user-static/Makefile
+++ b/emulators/qemu-user-static/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	qemu
 PORTVERSION=	3.1.0
-PORTREVISION=	15
+PORTREVISION=	16
 CATEGORIES=	emulators
 PKGNAMESUFFIX=	-user-static
 DIST_SUBDIR=	qemu/${PORTVERSION}
@@ -17,7 +17,7 @@ CONFLICTS_INSTALL=	qemu-user-static-devel
 
 USES=		bison compiler:c11 cpe elfctl gmake perl5 pkgconfig python:build
 USE_GITHUB=	yes
-GH_TUPLE=	qemu-bsd-user:qemu-bsd-user:527096e0c8	\
+GH_TUPLE=	qemu-bsd-user:qemu-bsd-user:f7eaacf0bd	\
 		qemu:keycodemapdb:10739aa:keycodemapdb/ui/keycodemapdb
 HAS_CONFIGURE=	yes
 USE_PERL5=	build
diff --git a/emulators/qemu-user-static/distinfo b/emulators/qemu-user-static/distinfo
index a2c585e7eedd..8f295a5c0fb8 100644
--- a/emulators/qemu-user-static/distinfo
+++ b/emulators/qemu-user-static/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1641593695
-SHA256 (qemu/3.1.0/qemu-bsd-user-qemu-bsd-user-3.1.0-527096e0c8_GH0.tar.gz) = bf0d139a962d69fbbf2a5834e9906c283e7f300e2620051a9a3910e5bd9dc17f
-SIZE (qemu/3.1.0/qemu-bsd-user-qemu-bsd-user-3.1.0-527096e0c8_GH0.tar.gz) = 16904103
+TIMESTAMP = 1783691020
+SHA256 (qemu/3.1.0/qemu-bsd-user-qemu-bsd-user-3.1.0-f7eaacf0bd_GH0.tar.gz) = 5238b524333767edf3d6bf21240112d1fbdece995d60d8944544874d303725d8
+SIZE (qemu/3.1.0/qemu-bsd-user-qemu-bsd-user-3.1.0-f7eaacf0bd_GH0.tar.gz) = 16902515
 SHA256 (qemu/3.1.0/qemu-keycodemapdb-10739aa_GH0.tar.gz) = ae43fb1e2b07b78be88a7882306b6e71383eb77472a35d7d78fed21e345d134a
 SIZE (qemu/3.1.0/qemu-keycodemapdb-10739aa_GH0.tar.gz) = 47895
diff --git a/emulators/qemu-user-static/files/patch-bsd-user_freebsd_os-stat.h b/emulators/qemu-user-static/files/patch-bsd-user_freebsd_os-stat.h
deleted file mode 100644
index cec077643992..000000000000
--- a/emulators/qemu-user-static/files/patch-bsd-user_freebsd_os-stat.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- bsd-user/freebsd/os-stat.h.orig
-+++ bsd-user/freebsd/os-stat.h
-@@ -702,7 +702,7 @@
-         return -TARGET_EFAULT;
-     }
- 
--    ret = get_errno(__realpathat(arg1, p, b, arg4, arg5));
-+    ret = get_errno(__sys___realpathat(arg1, p, b, arg4, arg5));
-     UNLOCK_PATH(p, arg2);
-     unlock_user(b, arg3, ret);
-