Skip to content
Snippets Groups Projects
Commit 1c05eb3d authored by nfg's avatar nfg
Browse files

upgpkg: 7.2.1-2

parent 9f9dc927
No related branches found
No related tags found
No related merge requests found
KERNEL=="vhost-net", GROUP="kvm", MODE="0660", TAG+="uaccess", OPTIONS+="static_node=vhost-net"
SUBSYSTEM=="virtio-ports", ATTR{name}=="org.qemu.guest_agent.0", TAG+="systemd" ENV{SYSTEMD_WANTS}="qemu-guest-agent.service"
Copyright (c) 2018-2021 Eric Vidal <eric@obarun.org>
Copyright (c) 2018-2021 Jean-Michel T.Dydak <jean-michel@obarun.org>
All rights reserved.
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
This diff is collapsed.
allow virbr0
From: Michael Tokarev <mjt@tls.msk.ru>
Subject: build most modules statically (hack)
This hack makes the build procedure to build most modules statically,
except block and gui modules which goes into their own packages.
The rest are built into the executables directly in order to make
qemu-system-common package (where all other modules goes) to be
more-or-less version-independent.
There's little reason to build these as modules or to ship them in
separate packages.
diff --git a/meson.build b/meson.build
index e3386196ba..a28f7d10f1 100644
--- a/meson.build
+++ b/meson.build
@@ -1587,13 +1587,19 @@ softmmu_mods = []
foreach d, list : modules
foreach m, module_ss : list
if enable_modules and targetos != 'windows'
- module_ss = module_ss.apply(config_all, strict: false)
- sl = static_library(d + '-' + m, [genh, module_ss.sources()],
- dependencies: [modulecommon, module_ss.dependencies()], pic: true)
+ module_dn = module_ss.apply(config_all, strict: false)
+ sl = static_library(d + '-' + m, [genh, module_dn.sources()],
+ dependencies: [modulecommon, module_dn.dependencies()], pic: true)
if d == 'block'
block_mods += sl
else
- softmmu_mods += sl
+ # we only build 2 non-block modules as modules: it is the gui part
+ if d + '-' + m in [ 'ui-gtk', 'ui-sdl', 'audio-pa' ]
+ softmmu_mods += sl
+ else
+ warning('Compiling module statically: ' + d + '-' + m)
+ softmmu_ss.add_all(module_ss)
+ endif
endif
else
if d == 'block'
post_install() {
if [[ -d /run/udev ]]; then
local file files=(
/sys/devices/virtual/misc/vhost-net
)
# trigger change event when modules are already loaded
for file in "${files[@]}"; do
if [[ -d $file ]]; then
udevadm trigger --action=change "$file"
fi
done
fi
}
[general]
daemonize = 0
fsfreeze-hook = /etc/qemu/fsfreeze-hook
method = virtio-serial
path = /dev/virtio-ports/org.qemu.guest_agent.0
pidfile = /run/qemu-ga.pid
statedir = /run
verbose = 0
# blacklist =
# logfile =
u qemu - "QEMU user" - -
m qemu kvm
# Arg 1: the new package version
post_install() {
# trigger events on modules files when already loaded
for _f in /sys/devices/virtual/misc/vhost-net; do
[[ -e "$_f" ]] && udevadm trigger "$_f"
done
:
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment