libvirt: 11.0.0 -> 11.4.0 (#417265)

Changed files
+29 -36
pkgs
by-name
development
python-modules
libvirt
top-level
+23 -30
pkgs/by-name/li/libvirt/0001-meson-patch-in-an-install-prefix-for-building-on-nix.patch
···
]
endif
diff --git a/src/security/apparmor/meson.build b/src/security/apparmor/meson.build
-
index b9257c816d..98701755d8 100644
+
index 09d9fac02c..ee0c74ceec 100644
--- a/src/security/apparmor/meson.build
+++ b/src/security/apparmor/meson.build
-
@@ -57,7 +57,7 @@ foreach name : apparmor_gen_profiles
+
@@ -20,16 +20,16 @@ foreach name : apparmor_gen_profiles
output: name,
configuration: apparmor_gen_profiles_conf,
install: true,
···
+ install_dir: install_prefix + apparmor_dir,
)
endforeach
-
-
@@ -68,13 +68,13 @@ foreach name : apparmor_gen_abstractions
-
command: apparmor_gen_cmd,
-
capture: true,
-
install: true,
-
- install_dir: apparmor_dir / 'abstractions',
-
+ install_dir: install_prefix + apparmor_dir / 'abstractions',
-
)
-
endforeach
-
+
+
install_data(
+
[ 'libvirt-qemu', 'libvirt-lxc' ],
+
- install_dir: apparmor_dir / 'abstractions',
+
+ install_dir: install_prefix + apparmor_dir / 'abstractions',
+
)
+
install_data(
[ 'TEMPLATE.qemu', 'TEMPLATE.lxc' ],
- install_dir: apparmor_dir / 'libvirt',
+ install_dir: install_prefix + apparmor_dir / 'libvirt',
)
-
-
if not conf.has('WITH_APPARMOR_3')
-
@@ -83,7 +83,7 @@ if not conf.has('WITH_APPARMOR_3')
-
# files in order to limit the amount of filesystem clutter.
-
install_data(
-
'usr.lib.libvirt.virt-aa-helper.local',
-
- install_dir: apparmor_dir / 'local',
-
+ install_dir: install_prefix + apparmor_dir / 'local',
-
rename: 'usr.lib.libvirt.virt-aa-helper',
-
)
-
endif
diff --git a/src/storage/meson.build b/src/storage/meson.build
index 404d6a6941..fb4e67a0a8 100644
--- a/src/storage/meson.build
+++ b/src/storage/meson.build
@@ -126,9 +126,9 @@ if conf.has('WITH_STORAGE')
}
-
+
virt_install_dirs += [
- confdir / 'storage',
- confdir / 'storage' / 'autostart',
···
+ install_prefix + runstatedir / 'libvirt' / 'storage',
]
endif
-
+
diff --git a/tools/meson.build b/tools/meson.build
-
index 1bb84be0be..e04a4e986d 100644
+
index a099148d3c..d0d6510f17 100644
--- a/tools/meson.build
+++ b/tools/meson.build
-
@@ -121,7 +121,7 @@ if conf.has('WITH_LOGIN_SHELL')
+
@@ -123,12 +123,12 @@ if conf.has('WITH_LOGIN_SHELL')
install_rpath: libvirt_rpath,
)
-
+
- install_data('virt-login-shell.conf', install_dir: sysconfdir / 'libvirt')
+ install_data('virt-login-shell.conf', install_dir: install_prefix + sysconfdir / 'libvirt')
+
+
# Install the sysuser config for the setgid binary
+
install_data(
+
'libvirt-login-shell.sysusers.conf',
+
- install_dir: sysusersdir,
+
+ install_dir: install_prefix + sysusersdir,
+
rename: [ 'libvirt-login-shell.conf' ],
+
)
endif
-
-
if host_machine.system() == 'windows'
+
diff --git a/tools/ssh-proxy/meson.build b/tools/ssh-proxy/meson.build
index e9f312fa25..95d5d8fe0b 100644
--- a/tools/ssh-proxy/meson.build
+2 -2
pkgs/by-name/li/libvirt/package.nix
···
stdenv.mkDerivation rec {
pname = "libvirt";
# if you update, also bump <nixpkgs/pkgs/development/python-modules/libvirt/default.nix> and SysVirt in <nixpkgs/pkgs/top-level/perl-packages.nix>
-
version = "11.0.0";
+
version = "11.4.0";
src = fetchFromGitLab {
owner = "libvirt";
repo = "libvirt";
tag = "v${version}";
fetchSubmodules = true;
-
hash = "sha256-QxyOc/RbWZnjA4XIDNK7xZqBcP2ciHsOlszaa5pl6XA=";
+
hash = "sha256-0bOX95Ly8d1/XZan/EyxI6JaACJvOu9QsTkFNQTreqI=";
};
patches =
+2 -2
pkgs/development/python-modules/libvirt/default.nix
···
buildPythonPackage rec {
pname = "libvirt";
-
version = "11.0.0";
+
version = "11.4.0";
pyproject = true;
src = fetchFromGitLab {
owner = "libvirt";
repo = "libvirt-python";
tag = "v${version}";
-
hash = "sha256-c6viZTQFpLB+k/f45m/AZe+ggDxQbGjQgD51yCuyepc=";
+
hash = "sha256-jI14/lBuqSqI8mnTa7dqa+B+6tU2erW6wlT8E0eTgtY=";
};
postPatch = ''
+2 -2
pkgs/top-level/perl-packages.nix
···
SysVirt = buildPerlModule rec {
pname = "Sys-Virt";
-
version = "11.0.0";
+
version = "11.2.0";
src = fetchFromGitLab {
owner = "libvirt";
repo = "libvirt-perl";
tag = "v${version}";
-
hash = "sha256-k1fpVLWbFgZOUvCPLN6EpYgSfpwig5mHiWMRo8iRvZc=";
+
hash = "sha256-e/Zb9ox/ehfybpxiCAsEl97T1vjBNpRYJK/kmehPHsY=";
nativeBuildInputs = [ pkgs.pkg-config ];
buildInputs = [