libvirt: 11.0.0 -> 11.4.0 (#417265)

authored by philiptaron.tngl.sh and committed by GitHub 2e99aa1e 4011114b

+29 -36
+23 -30
pkgs/by-name/li/libvirt/0001-meson-patch-in-an-install-prefix-for-building-on-nix.patch
··· 402 ] 403 endif 404 diff --git a/src/security/apparmor/meson.build b/src/security/apparmor/meson.build 405 - index b9257c816d..98701755d8 100644 406 --- a/src/security/apparmor/meson.build 407 +++ b/src/security/apparmor/meson.build 408 - @@ -57,7 +57,7 @@ foreach name : apparmor_gen_profiles 409 output: name, 410 configuration: apparmor_gen_profiles_conf, 411 install: true, ··· 413 + install_dir: install_prefix + apparmor_dir, 414 ) 415 endforeach 416 - 417 - @@ -68,13 +68,13 @@ foreach name : apparmor_gen_abstractions 418 - command: apparmor_gen_cmd, 419 - capture: true, 420 - install: true, 421 - - install_dir: apparmor_dir / 'abstractions', 422 - + install_dir: install_prefix + apparmor_dir / 'abstractions', 423 - ) 424 - endforeach 425 - 426 install_data( 427 [ 'TEMPLATE.qemu', 'TEMPLATE.lxc' ], 428 - install_dir: apparmor_dir / 'libvirt', 429 + install_dir: install_prefix + apparmor_dir / 'libvirt', 430 ) 431 - 432 - if not conf.has('WITH_APPARMOR_3') 433 - @@ -83,7 +83,7 @@ if not conf.has('WITH_APPARMOR_3') 434 - # files in order to limit the amount of filesystem clutter. 435 - install_data( 436 - 'usr.lib.libvirt.virt-aa-helper.local', 437 - - install_dir: apparmor_dir / 'local', 438 - + install_dir: install_prefix + apparmor_dir / 'local', 439 - rename: 'usr.lib.libvirt.virt-aa-helper', 440 - ) 441 - endif 442 diff --git a/src/storage/meson.build b/src/storage/meson.build 443 index 404d6a6941..fb4e67a0a8 100644 444 --- a/src/storage/meson.build 445 +++ b/src/storage/meson.build 446 @@ -126,9 +126,9 @@ if conf.has('WITH_STORAGE') 447 } 448 - 449 virt_install_dirs += [ 450 - confdir / 'storage', 451 - confdir / 'storage' / 'autostart', ··· 455 + install_prefix + runstatedir / 'libvirt' / 'storage', 456 ] 457 endif 458 - 459 diff --git a/tools/meson.build b/tools/meson.build 460 - index 1bb84be0be..e04a4e986d 100644 461 --- a/tools/meson.build 462 +++ b/tools/meson.build 463 - @@ -121,7 +121,7 @@ if conf.has('WITH_LOGIN_SHELL') 464 install_rpath: libvirt_rpath, 465 ) 466 - 467 - install_data('virt-login-shell.conf', install_dir: sysconfdir / 'libvirt') 468 + install_data('virt-login-shell.conf', install_dir: install_prefix + sysconfdir / 'libvirt') 469 endif 470 - 471 - if host_machine.system() == 'windows' 472 diff --git a/tools/ssh-proxy/meson.build b/tools/ssh-proxy/meson.build 473 index e9f312fa25..95d5d8fe0b 100644 474 --- a/tools/ssh-proxy/meson.build
··· 402 ] 403 endif 404 diff --git a/src/security/apparmor/meson.build b/src/security/apparmor/meson.build 405 + index 09d9fac02c..ee0c74ceec 100644 406 --- a/src/security/apparmor/meson.build 407 +++ b/src/security/apparmor/meson.build 408 + @@ -20,16 +20,16 @@ foreach name : apparmor_gen_profiles 409 output: name, 410 configuration: apparmor_gen_profiles_conf, 411 install: true, ··· 413 + install_dir: install_prefix + apparmor_dir, 414 ) 415 endforeach 416 + 417 + install_data( 418 + [ 'libvirt-qemu', 'libvirt-lxc' ], 419 + - install_dir: apparmor_dir / 'abstractions', 420 + + install_dir: install_prefix + apparmor_dir / 'abstractions', 421 + ) 422 + 423 install_data( 424 [ 'TEMPLATE.qemu', 'TEMPLATE.lxc' ], 425 - install_dir: apparmor_dir / 'libvirt', 426 + install_dir: install_prefix + apparmor_dir / 'libvirt', 427 ) 428 diff --git a/src/storage/meson.build b/src/storage/meson.build 429 index 404d6a6941..fb4e67a0a8 100644 430 --- a/src/storage/meson.build 431 +++ b/src/storage/meson.build 432 @@ -126,9 +126,9 @@ if conf.has('WITH_STORAGE') 433 } 434 + 435 virt_install_dirs += [ 436 - confdir / 'storage', 437 - confdir / 'storage' / 'autostart', ··· 441 + install_prefix + runstatedir / 'libvirt' / 'storage', 442 ] 443 endif 444 + 445 diff --git a/tools/meson.build b/tools/meson.build 446 + index a099148d3c..d0d6510f17 100644 447 --- a/tools/meson.build 448 +++ b/tools/meson.build 449 + @@ -123,12 +123,12 @@ if conf.has('WITH_LOGIN_SHELL') 450 install_rpath: libvirt_rpath, 451 ) 452 + 453 - install_data('virt-login-shell.conf', install_dir: sysconfdir / 'libvirt') 454 + install_data('virt-login-shell.conf', install_dir: install_prefix + sysconfdir / 'libvirt') 455 + 456 + # Install the sysuser config for the setgid binary 457 + install_data( 458 + 'libvirt-login-shell.sysusers.conf', 459 + - install_dir: sysusersdir, 460 + + install_dir: install_prefix + sysusersdir, 461 + rename: [ 'libvirt-login-shell.conf' ], 462 + ) 463 endif 464 + 465 diff --git a/tools/ssh-proxy/meson.build b/tools/ssh-proxy/meson.build 466 index e9f312fa25..95d5d8fe0b 100644 467 --- a/tools/ssh-proxy/meson.build
+2 -2
pkgs/by-name/li/libvirt/package.nix
··· 115 stdenv.mkDerivation rec { 116 pname = "libvirt"; 117 # if you update, also bump <nixpkgs/pkgs/development/python-modules/libvirt/default.nix> and SysVirt in <nixpkgs/pkgs/top-level/perl-packages.nix> 118 - version = "11.0.0"; 119 120 src = fetchFromGitLab { 121 owner = "libvirt"; 122 repo = "libvirt"; 123 tag = "v${version}"; 124 fetchSubmodules = true; 125 - hash = "sha256-QxyOc/RbWZnjA4XIDNK7xZqBcP2ciHsOlszaa5pl6XA="; 126 }; 127 128 patches =
··· 115 stdenv.mkDerivation rec { 116 pname = "libvirt"; 117 # if you update, also bump <nixpkgs/pkgs/development/python-modules/libvirt/default.nix> and SysVirt in <nixpkgs/pkgs/top-level/perl-packages.nix> 118 + version = "11.4.0"; 119 120 src = fetchFromGitLab { 121 owner = "libvirt"; 122 repo = "libvirt"; 123 tag = "v${version}"; 124 fetchSubmodules = true; 125 + hash = "sha256-0bOX95Ly8d1/XZan/EyxI6JaACJvOu9QsTkFNQTreqI="; 126 }; 127 128 patches =
+2 -2
pkgs/development/python-modules/libvirt/default.nix
··· 12 13 buildPythonPackage rec { 14 pname = "libvirt"; 15 - version = "11.0.0"; 16 pyproject = true; 17 18 src = fetchFromGitLab { 19 owner = "libvirt"; 20 repo = "libvirt-python"; 21 tag = "v${version}"; 22 - hash = "sha256-c6viZTQFpLB+k/f45m/AZe+ggDxQbGjQgD51yCuyepc="; 23 }; 24 25 postPatch = ''
··· 12 13 buildPythonPackage rec { 14 pname = "libvirt"; 15 + version = "11.4.0"; 16 pyproject = true; 17 18 src = fetchFromGitLab { 19 owner = "libvirt"; 20 repo = "libvirt-python"; 21 tag = "v${version}"; 22 + hash = "sha256-jI14/lBuqSqI8mnTa7dqa+B+6tU2erW6wlT8E0eTgtY="; 23 }; 24 25 postPatch = ''
+2 -2
pkgs/top-level/perl-packages.nix
··· 32322 32323 SysVirt = buildPerlModule rec { 32324 pname = "Sys-Virt"; 32325 - version = "11.0.0"; 32326 src = fetchFromGitLab { 32327 owner = "libvirt"; 32328 repo = "libvirt-perl"; 32329 tag = "v${version}"; 32330 - hash = "sha256-k1fpVLWbFgZOUvCPLN6EpYgSfpwig5mHiWMRo8iRvZc="; 32331 }; 32332 nativeBuildInputs = [ pkgs.pkg-config ]; 32333 buildInputs = [
··· 32322 32323 SysVirt = buildPerlModule rec { 32324 pname = "Sys-Virt"; 32325 + version = "11.2.0"; 32326 src = fetchFromGitLab { 32327 owner = "libvirt"; 32328 repo = "libvirt-perl"; 32329 tag = "v${version}"; 32330 + hash = "sha256-e/Zb9ox/ehfybpxiCAsEl97T1vjBNpRYJK/kmehPHsY="; 32331 }; 32332 nativeBuildInputs = [ pkgs.pkg-config ]; 32333 buildInputs = [