Skip to content

Commit 05c4a05

Browse files
committed
emulators/qemu7: Update version 7.0.0=>7.2.1
Merge the relevant port files from emulators/qemu. This is most probably going to be the last version update untill Qemu releases version 9 and we phase this out.
1 parent 2cc4a16 commit 05c4a05

File tree

7 files changed

+26
-37
lines changed

7 files changed

+26
-37
lines changed

‎emulators/qemu7/Makefile‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
PORTNAME= qemu
2-
PORTVERSION= 7.0.0
2+
PORTVERSION= 7.2.1
33
CATEGORIES= emulators
44
MASTER_SITES= https://download.qemu.org/
55
DIST_SUBDIR= qemu/${PORTVERSION}
66

77
MAINTAINER= bofh@FreeBSD.org
8-
COMMENT= QEMU CPU Emulator ${${FLAVOR}_COMMENT} - 7.X.x
8+
COMMENT= QEMU CPU Emulator ${${FLAVOR}_COMMENT} - 7.X.X
99
WWW= https://www.qemu.org/
1010

1111
LICENSE= GPLv2
1212

1313
.if ${FLAVOR:U} != tools
14-
ONLY_FOR_ARCHS= aarch64 amd64 powerpc64 powerpc64le
14+
ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc64 powerpc64le
1515
# We need to check if it build with other ARCHS
16-
# For i386 we have unknown type name 'vm_page_t'
1716
.endif
1817

1918
BUILD_DEPENDS= bash:shells/bash
2019
.if ${FLAVOR:U} != tools
2120
LIB_DEPENDS+= libfdt.so:sysutils/dtc \
22-
libzstd.so:archivers/zstd
21+
libzstd.so:archivers/zstd \
22+
libslirp.so:net/libslirp
2323
.endif
2424
.if (${FLAVOR:U} != nox11 && ${FLAVOR:U} != tools)
2525
LIB_DEPENDS+= libepoxy.so:graphics/libepoxy
@@ -35,7 +35,8 @@ nox11_CONFLICTS_INSTALL= qemu qemu-devel qemu6*
3535
nox11_COMMENT= (without X11)
3636
tools_PKGNAMESUFFIX= 7-tools
3737
tools_COMMENT= (tools only)
38-
tools_CONFLICTS_INSTALL= qemu qemu-devel qemu-nox11 qemu-utils qemu6*
38+
tools_CONFLICTS_INSTALL= qemu qemu-devel qemu-nox11 qemu-utils qemu6* \
39+
qemu-guest-agent
3940
tools_DESCR= ${.CURDIR}/pkg-descr-tools
4041
tools_PLIST= ${.CURDIR}/pkg-plist-tools
4142

@@ -51,6 +52,7 @@ USE_GNOME+= cairo
5152

5253
HAS_CONFIGURE= yes
5354
CONFIGURE_ARGS+= --cc=${CC} \
55+
--disable-guest-agent \
5456
--disable-kvm \
5557
--disable-linux-aio \
5658
--disable-linux-user \
@@ -77,7 +79,6 @@ CONFIGURE_ARGS+= --disable-attr \
7779
--disable-fdt \
7880
--disable-gcrypt \
7981
--disable-glusterfs \
80-
--disable-guest-agent \
8182
--disable-libnfs \
8283
--disable-libusb \
8384
--disable-lzo \
@@ -139,7 +140,7 @@ USBREDIR_DESC= usb device network redirection (experimental!)
139140
VDE_DESC= vde dependency (for vde networking)
140141
X86_TARGETS_DESC= Build only x86 system targets
141142
CAPSTONE_LIB_DEPENDS= libcapstone.so:devel/capstone4
142-
CAPSTONE_CONFIGURE_ON= --enable-capstone=system \
143+
CAPSTONE_CONFIGURE_ON= --enable-capstone \
143144
--extra-cflags=-I${LOCALBASE}/include/capstone
144145
CAPSTONE_CONFIGURE_OFF= --disable-capstone
145146
CURL_LIB_DEPENDS= libcurl.so:ftp/curl
@@ -167,7 +168,7 @@ OPENGL_USES= gl
167168
OPENGL_USE= GL=gbm,gl
168169
OPENGL_CONFIGURE_OFF= --disable-opengl
169170
PNG_LIB_DEPENDS= libpng.so:graphics/png
170-
PNG_CONFIGURE_OFF= --disable-vnc-png
171+
PNG_CONFIGURE_OFF= --disable-png
171172
SAMBA_USES= samba:run # smbd
172173
SAMBA_CONFIGURE_ON= --smbd=${LOCALBASE}/sbin/smbd
173174
SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
@@ -236,8 +237,8 @@ post-install:
236237
.if ${FLAVOR:U} != tools
237238
${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifup.sample ${STAGEDIR}${PREFIX}/etc
238239
${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifdown.sample ${STAGEDIR}${PREFIX}/etc
239-
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/qemu-*
240240
.endif
241+
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/qemu-*
241242

242243
post-install-DOCS-on:
243244
@(cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${STAGEDIR}${DOCSDIR}/)

‎emulators/qemu7/distinfo‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
TIMESTAMP = 1650583782
2-
SHA256 (qemu/7.0.0/qemu-7.0.0.tar.xz) = f6b375c7951f728402798b0baabb2d86478ca53d44cedbefabbe1c46bf46f839
3-
SIZE (qemu/7.0.0/qemu-7.0.0.tar.xz) = 125117636
1+
TIMESTAMP = 1681497374
2+
SHA256 (qemu/7.2.1/qemu-7.2.1.tar.xz) = 8c85699acf9d7a43a5fe29a64cdd56370b0c2d1ad074baf7098a824d17aad73b
3+
SIZE (qemu/7.2.1/qemu-7.2.1.tar.xz) = 122400592
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
--- bsd-user/host/i386/host-signal.h.orig 2022-09-08 16:00:45 UTC
1+
--- bsd-user/host/i386/host-signal.h.orig 2022-12-14 16:28:45 UTC
22
+++ bsd-user/host/i386/host-signal.h
3-
@@ -9,6 +9,9 @@
4-
#ifndef I386_HOST_SIGNAL_H
5-
#define I386_HOST_SIGNAL_H
6-
7-
+#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__)
8-
+#include <sys/param.h>
9-
+#endif
3+
@@ -12,6 +12,7 @@
4+
#include <sys/param.h>
105
#include <sys/ucontext.h>
116
#include <machine/trap.h>
7+
+#include <vm/vm.h>
128
#include <vm/pmap.h>
9+
#include <machine/pmap.h>
10+

‎emulators/qemu7/files/patch-bsd-user_host_x86__64_host-signal.h‎

Lines changed: 0 additions & 12 deletions
This file was deleted.

‎emulators/qemu7/files/patch-meson.build‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
--- meson.build.orig 2022-04-19 19:10:27 UTC
1+
--- meson.build.orig 2022-12-14 16:28:45 UTC
22
+++ meson.build
3-
@@ -2505,14 +2505,10 @@ if have_system
3+
@@ -2719,14 +2719,10 @@ if have_system
44
fdt_opt = get_option('fdt')
55
if fdt_opt in ['enabled', 'auto', 'system']
66
have_internal = fs.exists(meson.current_source_dir() / 'dtc/libfdt/Makefile.libfdt')

‎emulators/qemu7/files/patch-util_meson.build‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
--- util/meson.build.orig 2022-04-23 11:59:28 UTC
1+
--- util/meson.build.orig 2022-12-14 16:28:45 UTC
22
+++ util/meson.build
3-
@@ -87,10 +87,6 @@ if have_block
3+
@@ -97,10 +97,6 @@ if have_block
44
util_ss.add(files('readline.c'))
55
util_ss.add(files('throttle.c'))
66
util_ss.add(files('timed-average.c'))

‎emulators/qemu7/pkg-plist‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ bin/qemu-storage-daemon
1414
%%NO_X86_TARGETS%%bin/qemu-system-cris
1515
%%NO_X86_TARGETS%%bin/qemu-system-hppa
1616
bin/qemu-system-i386
17+
%%NO_X86_TARGETS%%bin/qemu-system-loongarch64
1718
%%NO_X86_TARGETS%%bin/qemu-system-m68k
1819
%%NO_X86_TARGETS%%bin/qemu-system-microblaze
1920
%%NO_X86_TARGETS%%bin/qemu-system-microblazeel
@@ -176,4 +177,5 @@ share/applications/qemu.desktop
176177
%%GTK3%%share/locale/it/LC_MESSAGES/qemu.mo
177178
%%GTK3%%share/locale/sv/LC_MESSAGES/qemu.mo
178179
%%GTK3%%share/locale/tr/LC_MESSAGES/qemu.mo
180+
%%GTK3%%share/locale/uk/LC_MESSAGES/qemu.mo
179181
%%GTK3%%share/locale/zh_CN/LC_MESSAGES/qemu.mo

0 commit comments

Comments
 (0)