mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
Merge pull request #164140 from lovesegfault/libvirt-8.1.0
libvirt: 7.10.0 -> 8.1.0
This commit is contained in:
commit
462770166e
8 changed files with 235 additions and 109 deletions
|
@ -5,8 +5,8 @@ self: super: {
|
|||
_: {
|
||||
src = pkgs.fetchgit {
|
||||
url = "https://github.com/NixOS/nixops.git";
|
||||
rev = "d939c9bcae184d10583bf48211739b5b6521fc64";
|
||||
sha256 = "111wfph4c737xxs717pz8bnksp8zw0b6zv1il4zzq3fshv2ckd5c";
|
||||
rev = "7220cbdc8a1cf2db5b3ad75b525faf145a5560a3";
|
||||
sha256 = "199cw25cvjb8gxs56nc8ilq7v4560c6vgi1sh1vqrsqxayq1g4cs";
|
||||
};
|
||||
}
|
||||
);
|
||||
|
@ -74,9 +74,9 @@ self: super: {
|
|||
nixops-virtd = super.nixops-virtd.overridePythonAttrs (
|
||||
_: {
|
||||
src = pkgs.fetchgit {
|
||||
url = "https://github.com/nix-community/nixops-libvirtd.git";
|
||||
rev = "1245280d97e0adc4643d02d1cf62ddd582c73e49";
|
||||
sha256 = "1z3zsx54585rcyabj6hrbwbd1c783rrlfj53np1sa3i7m93vmxzc";
|
||||
url = "https://github.com/lovesegfault/nixops-libvirtd.git";
|
||||
rev = "84d1688ee06afff136738b3eaf51f9cc3c08c350";
|
||||
sha256 = "1f3q9bwmdjr3qac7fh9b9hgw7l43hmiixbsmqm2zrnhb7xcyfmfg";
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
|
@ -8,14 +8,14 @@ python-versions = "*"
|
|||
|
||||
[[package]]
|
||||
name = "apache-libcloud"
|
||||
version = "3.4.1"
|
||||
version = "3.5.0"
|
||||
description = "A standard Python library that abstracts away differences among multiple cloud provider APIs. For more information and documentation, please see https://libcloud.apache.org"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = ">=3.5, <4"
|
||||
python-versions = ">=3.6, <4"
|
||||
|
||||
[package.dependencies]
|
||||
requests = ">=2.5.0"
|
||||
requests = ">=2.26.0"
|
||||
|
||||
[[package]]
|
||||
name = "babel"
|
||||
|
@ -38,14 +38,14 @@ python-versions = "*"
|
|||
|
||||
[[package]]
|
||||
name = "boto3"
|
||||
version = "1.21.11"
|
||||
version = "1.21.18"
|
||||
description = "The AWS SDK for Python"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = ">= 3.6"
|
||||
|
||||
[package.dependencies]
|
||||
botocore = ">=1.24.11,<1.25.0"
|
||||
botocore = ">=1.24.18,<1.25.0"
|
||||
jmespath = ">=0.7.1,<1.0.0"
|
||||
s3transfer = ">=0.5.0,<0.6.0"
|
||||
|
||||
|
@ -54,7 +54,7 @@ crt = ["botocore[crt] (>=1.21.0,<2.0a0)"]
|
|||
|
||||
[[package]]
|
||||
name = "botocore"
|
||||
version = "1.24.11"
|
||||
version = "1.24.18"
|
||||
description = "Low-level, data-driven core of boto 3."
|
||||
category = "main"
|
||||
optional = false
|
||||
|
@ -194,7 +194,7 @@ testing = ["pytest (>=3.5,!=3.7.3)", "pytest-checkdocs (>=1.2.3)", "pytest-flake
|
|||
|
||||
[[package]]
|
||||
name = "libvirt-python"
|
||||
version = "7.10.0"
|
||||
version = "8.1.0"
|
||||
description = "The libvirt virtualization API python binding"
|
||||
category = "main"
|
||||
optional = false
|
||||
|
@ -227,7 +227,7 @@ typing-extensions = "^3.7.4"
|
|||
type = "git"
|
||||
url = "https://github.com/NixOS/nixops.git"
|
||||
reference = "master"
|
||||
resolved_reference = "d939c9bcae184d10583bf48211739b5b6521fc64"
|
||||
resolved_reference = "7220cbdc8a1cf2db5b3ad75b525faf145a5560a3"
|
||||
|
||||
[[package]]
|
||||
name = "nixops-aws"
|
||||
|
@ -358,14 +358,14 @@ python-versions = "^3.7"
|
|||
develop = false
|
||||
|
||||
[package.dependencies]
|
||||
libvirt-python = "^7.0"
|
||||
libvirt-python = "^8.0"
|
||||
nixops = {git = "https://github.com/NixOS/nixops.git", branch = "master"}
|
||||
|
||||
[package.source]
|
||||
type = "git"
|
||||
url = "https://github.com/nix-community/nixops-libvirtd.git"
|
||||
reference = "master"
|
||||
resolved_reference = "1245280d97e0adc4643d02d1cf62ddd582c73e49"
|
||||
url = "https://github.com/lovesegfault/nixops-libvirtd.git"
|
||||
reference = "update-libvirt"
|
||||
resolved_reference = "84d1688ee06afff136738b3eaf51f9cc3c08c350"
|
||||
|
||||
[[package]]
|
||||
name = "nixopsvbox"
|
||||
|
@ -677,7 +677,7 @@ socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"]
|
|||
[metadata]
|
||||
lock-version = "1.1"
|
||||
python-versions = "^3.8"
|
||||
content-hash = "e75c6429aa8989659a345f903e2e67d87514b5864751e33890d90aa2d20ef3e2"
|
||||
content-hash = "63b68a38ca6f7b9189d2403c2c6d1ec7af29cc1ccdeab2fbc970b5dbd766c3c6"
|
||||
|
||||
[metadata.files]
|
||||
alabaster = [
|
||||
|
@ -685,8 +685,8 @@ alabaster = [
|
|||
{file = "alabaster-0.7.12.tar.gz", hash = "sha256:a661d72d58e6ea8a57f7a86e37d86716863ee5e92788398526d58b26a4e4dc02"},
|
||||
]
|
||||
apache-libcloud = [
|
||||
{file = "apache-libcloud-3.4.1.tar.gz", hash = "sha256:88f18da0cf3fac0af723e743fb741d9d1be251881edab7a5a0d1629955b5011b"},
|
||||
{file = "apache_libcloud-3.4.1-py2.py3-none-any.whl", hash = "sha256:af1a5b3cda7bc3220093726ff67dbb70928521e2ec19d0e33a31b1e22fde1850"},
|
||||
{file = "apache-libcloud-3.5.0.tar.gz", hash = "sha256:073f10492976faa383a22b13b82c249827cfe90a083c71620e8316e815a6db3b"},
|
||||
{file = "apache_libcloud-3.5.0-py2.py3-none-any.whl", hash = "sha256:3789f4f2464fe18e317cdd3a03eff363268e096bc47f1f5770ee82d6ffe28c40"},
|
||||
]
|
||||
babel = [
|
||||
{file = "Babel-2.9.1-py2.py3-none-any.whl", hash = "sha256:ab49e12b91d937cd11f0b67cb259a57ab4ad2b59ac7a3b41d6c06c0ac5b0def9"},
|
||||
|
@ -697,12 +697,12 @@ boto = [
|
|||
{file = "boto-2.49.0.tar.gz", hash = "sha256:ea0d3b40a2d852767be77ca343b58a9e3a4b00d9db440efb8da74b4e58025e5a"},
|
||||
]
|
||||
boto3 = [
|
||||
{file = "boto3-1.21.11-py3-none-any.whl", hash = "sha256:bf5f6a8997ed11a66280ace67cc25ec31c28525940da91d309c3976a9955d4cf"},
|
||||
{file = "boto3-1.21.11.tar.gz", hash = "sha256:f2cecf5d176f398a39bfde0008df83c03f2142b2be5eabe32bf104961df68810"},
|
||||
{file = "boto3-1.21.18-py3-none-any.whl", hash = "sha256:d857feb6af9932e1ee3a748060a2cd9fd6043dbbccf66976eda54586597efdc0"},
|
||||
{file = "boto3-1.21.18.tar.gz", hash = "sha256:8d6f3c548f0ee03d742f404c96515e7579fc6968135aaa50dd855a046698ff79"},
|
||||
]
|
||||
botocore = [
|
||||
{file = "botocore-1.24.11-py3-none-any.whl", hash = "sha256:b29c2b5906d7f70782634bb8713c77e39f23aafc994bb2f7dccbeb2b36712adc"},
|
||||
{file = "botocore-1.24.11.tar.gz", hash = "sha256:2af93de704f3122878a3233e7cf5de0b02f6c4c9fa993ca853b583f597bb1c38"},
|
||||
{file = "botocore-1.24.18-py3-none-any.whl", hash = "sha256:7ea8ef1ff7c4882ab59b337662f90ddf5ea860e95e7e209dca593a34ea585b1b"},
|
||||
{file = "botocore-1.24.18.tar.gz", hash = "sha256:d2da7ccbc5ddd61fe3cd45fcbd3de380d9e3a15bfa8fbfd2d9259a93dcc60c56"},
|
||||
]
|
||||
certifi = [
|
||||
{file = "certifi-2021.10.8-py2.py3-none-any.whl", hash = "sha256:d62a0163eb4c2344ac042ab2bdf75399a71a2d8c7d47eac2e2ee91b9d6339569"},
|
||||
|
@ -775,6 +775,8 @@ cryptography = [
|
|||
{file = "cryptography-3.4.8-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:34dae04a0dce5730d8eb7894eab617d8a70d0c97da76b905de9efb7128ad7085"},
|
||||
{file = "cryptography-3.4.8-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1eb7bb0df6f6f583dd8e054689def236255161ebbcf62b226454ab9ec663746b"},
|
||||
{file = "cryptography-3.4.8-cp36-abi3-manylinux_2_24_x86_64.whl", hash = "sha256:9965c46c674ba8cc572bc09a03f4c649292ee73e1b683adb1ce81e82e9a6a0fb"},
|
||||
{file = "cryptography-3.4.8-cp36-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:3c4129fc3fdc0fa8e40861b5ac0c673315b3c902bbdc05fc176764815b43dd1d"},
|
||||
{file = "cryptography-3.4.8-cp36-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:695104a9223a7239d155d7627ad912953b540929ef97ae0c34c7b8bf30857e89"},
|
||||
{file = "cryptography-3.4.8-cp36-abi3-win32.whl", hash = "sha256:21ca464b3a4b8d8e86ba0ee5045e103a1fcfac3b39319727bc0fc58c09c6aff7"},
|
||||
{file = "cryptography-3.4.8-cp36-abi3-win_amd64.whl", hash = "sha256:3520667fda779eb788ea00080124875be18f2d8f0848ec00733c0ec3bb8219fc"},
|
||||
{file = "cryptography-3.4.8-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:d2a6e5ef66503da51d2110edf6c403dc6b494cc0082f85db12f54e9c5d4c3ec5"},
|
||||
|
@ -815,7 +817,7 @@ jsonpickle = [
|
|||
{file = "jsonpickle-2.1.0.tar.gz", hash = "sha256:84684cfc5338a534173c8dd69809e40f2865d0be1f8a2b7af8465e5b968dcfa9"},
|
||||
]
|
||||
libvirt-python = [
|
||||
{file = "libvirt-python-7.10.0.tar.gz", hash = "sha256:267774bbdf99d47515274542880499437dc94ae291771f5663c62020a62da975"},
|
||||
{file = "libvirt-python-8.1.0.tar.gz", hash = "sha256:a21ecfab6d29ac1bdd1bfd4aa3ef58447f9f70919aefecd03774613f65914e43"},
|
||||
]
|
||||
markupsafe = [
|
||||
{file = "MarkupSafe-2.1.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:3028252424c72b2602a323f70fbf50aa80a5d3aa616ea6add4ba21ae9cc9da4c"},
|
||||
|
|
|
@ -14,7 +14,10 @@ nixops-gcp = {git = "https://github.com/nix-community/nixops-gce.git"}
|
|||
nixops-hercules-ci = {git = "https://github.com/hercules-ci/nixops-hercules-ci.git"}
|
||||
nixops-hetzner = {git = "https://github.com/NixOS/nixops-hetzner"}
|
||||
nixopsvbox = {git = "https://github.com/nix-community/nixops-vbox.git"}
|
||||
nixops-virtd = {git = "https://github.com/nix-community/nixops-libvirtd.git"}
|
||||
# FIXME: Once #30 lands this can be replaced
|
||||
# https://github.com/nix-community/nixops-libvirtd/pull/30
|
||||
# nixops-virtd = {git = "https://github.com/nix-community/nixops-libvirtd.git"}
|
||||
nixops-virtd = { git = "https://github.com/lovesegfault/nixops-libvirtd.git", branch = "update-libvirt" }
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
sphinx = "^3.1.2"
|
||||
|
|
|
@ -66,8 +66,8 @@ python3.pkgs.buildPythonApplication rec {
|
|||
];
|
||||
|
||||
disabledTests = [
|
||||
"testCLI0001virt_install_many_devices"
|
||||
"test_disk_dir_searchable"
|
||||
"testAlterDisk"
|
||||
"test_misc_nonpredicatble_generate"
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
From a6593bf70dd5f91acc7c2795d658a49eb9d4f672 Mon Sep 17 00:00:00 2001
|
||||
From ad42041cfedcf25716429d2aad16641e0e2a012f Mon Sep 17 00:00:00 2001
|
||||
From: Euan Kemp <euank@euank.com>
|
||||
Date: Thu, 14 Jan 2021 00:32:00 -0800
|
||||
Subject: [PATCH] meson: patch in an install prefix for building on nix
|
||||
|
@ -6,23 +6,28 @@ Subject: [PATCH] meson: patch in an install prefix for building on nix
|
|||
Used in the nixpkgs version of libvirt so that we can install things in
|
||||
the nix store, but read them from the root filesystem.
|
||||
---
|
||||
meson.build | 9 +++++++++
|
||||
meson.build | 9 ++++++++
|
||||
meson_options.txt | 2 ++
|
||||
src/ch/meson.build | 4 ++--
|
||||
src/libxl/meson.build | 6 +++---
|
||||
src/locking/meson.build | 8 ++++----
|
||||
src/lxc/meson.build | 6 +++---
|
||||
src/meson.build | 18 +++++++++---------
|
||||
src/network/meson.build | 10 +++++-----
|
||||
src/ch/meson.build | 6 ++---
|
||||
src/interface/meson.build | 2 +-
|
||||
src/libxl/meson.build | 18 +++++++--------
|
||||
src/locking/meson.build | 8 +++----
|
||||
src/lxc/meson.build | 10 ++++----
|
||||
src/meson.build | 18 +++++++--------
|
||||
src/network/meson.build | 14 ++++++------
|
||||
src/node_device/meson.build | 2 +-
|
||||
src/nwfilter/meson.build | 6 ++---
|
||||
src/nwfilter/xml/meson.build | 2 +-
|
||||
src/qemu/meson.build | 14 +++++++-------
|
||||
src/remote/meson.build | 6 +++---
|
||||
src/security/apparmor/meson.build | 8 ++++----
|
||||
tools/meson.build | 4 ++--
|
||||
13 files changed, 54 insertions(+), 43 deletions(-)
|
||||
src/qemu/meson.build | 38 +++++++++++++++----------------
|
||||
src/remote/meson.build | 10 ++++----
|
||||
src/secret/meson.build | 4 ++--
|
||||
src/security/apparmor/meson.build | 8 +++----
|
||||
src/storage/meson.build | 6 ++---
|
||||
tools/meson.build | 2 +-
|
||||
18 files changed, 88 insertions(+), 77 deletions(-)
|
||||
|
||||
diff --git a/meson.build b/meson.build
|
||||
index ad0cd44aca..bdd87c926a 100644
|
||||
index 9016c0458a..b26e690194 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -39,6 +39,8 @@ if host_machine.system() == 'windows'
|
||||
|
@ -59,40 +64,66 @@ index 5b43cdbd6b..e9dff18441 100644
|
|||
option('packager', type: 'string', value: '', description: 'Extra packager name')
|
||||
option('packager_version', type: 'string', value: '', description: 'Extra packager version')
|
||||
diff --git a/src/ch/meson.build b/src/ch/meson.build
|
||||
index e34974d56c..4767763c2c 100644
|
||||
index 66b77907b0..6aa9bbc548 100644
|
||||
--- a/src/ch/meson.build
|
||||
+++ b/src/ch/meson.build
|
||||
@@ -68,7 +68,7 @@ if conf.has('WITH_CH')
|
||||
@@ -64,8 +64,8 @@ if conf.has('WITH_CH')
|
||||
}
|
||||
|
||||
virt_install_dirs += [
|
||||
- localstatedir / 'lib' / 'libvirt' / 'ch',
|
||||
- localstatedir / 'log' / 'libvirt' / 'ch',
|
||||
- runstatedir / 'libvirt' / 'ch',
|
||||
+ install_prefix + localstatedir / 'lib' / 'libvirt' / 'ch',
|
||||
+ install_prefix + localstatedir / 'log' / 'libvirt' / 'ch',
|
||||
+ install_prefix + runstatedir / 'libvirt' / 'ch',
|
||||
]
|
||||
endif
|
||||
diff --git a/src/libxl/meson.build b/src/libxl/meson.build
|
||||
index 9793899106..4904387162 100644
|
||||
--- a/src/libxl/meson.build
|
||||
+++ b/src/libxl/meson.build
|
||||
@@ -84,8 +84,8 @@ if conf.has('WITH_LIBXL')
|
||||
diff --git a/src/interface/meson.build b/src/interface/meson.build
|
||||
index 828f274422..2a6b1f8c5e 100644
|
||||
--- a/src/interface/meson.build
|
||||
+++ b/src/interface/meson.build
|
||||
@@ -56,6 +56,6 @@ if conf.has('WITH_INTERFACE')
|
||||
}
|
||||
|
||||
virt_install_dirs += [
|
||||
- runstatedir / 'libvirt' / 'interface',
|
||||
+ install_prefix + runstatedir / 'libvirt' / 'interface',
|
||||
]
|
||||
endif
|
||||
diff --git a/src/libxl/meson.build b/src/libxl/meson.build
|
||||
index 0cc277db82..48d8c5b962 100644
|
||||
--- a/src/libxl/meson.build
|
||||
+++ b/src/libxl/meson.build
|
||||
@@ -79,14 +79,14 @@ if conf.has('WITH_LIBXL')
|
||||
}
|
||||
|
||||
virt_install_dirs += [
|
||||
- confdir / 'libxl',
|
||||
- confdir / 'libxl' / 'autostart',
|
||||
- localstatedir / 'lib' / 'libvirt' / 'libxl',
|
||||
- runstatedir / 'libvirt' / 'libxl',
|
||||
- localstatedir / 'lib' / 'libvirt' / 'libxl' / 'channel',
|
||||
- localstatedir / 'lib' / 'libvirt' / 'libxl' / 'channel' / 'target',
|
||||
- localstatedir / 'lib' / 'libvirt' / 'libxl' / 'dump',
|
||||
- localstatedir / 'lib' / 'libvirt' / 'libxl' / 'save',
|
||||
- localstatedir / 'log' / 'libvirt' / 'libxl',
|
||||
- runstatedir / 'libvirt' / 'libxl',
|
||||
+ install_prefix + confdir / 'libxl',
|
||||
+ install_prefix + confdir / 'libxl' / 'autostart',
|
||||
+ install_prefix + localstatedir / 'lib' / 'libvirt' / 'libxl',
|
||||
+ install_prefix + runstatedir / 'libvirt' / 'libxl',
|
||||
+ install_prefix + localstatedir / 'lib' / 'libvirt' / 'libxl' / 'channel',
|
||||
+ install_prefix + localstatedir / 'lib' / 'libvirt' / 'libxl' / 'channel' / 'target',
|
||||
+ install_prefix + localstatedir / 'lib' / 'libvirt' / 'libxl' / 'dump',
|
||||
+ install_prefix + localstatedir / 'lib' / 'libvirt' / 'libxl' / 'save',
|
||||
+ install_prefix + localstatedir / 'log' / 'libvirt' / 'libxl',
|
||||
+ install_prefix + runstatedir / 'libvirt' / 'libxl',
|
||||
]
|
||||
endif
|
||||
diff --git a/src/locking/meson.build b/src/locking/meson.build
|
||||
index 184d3c3f56..7ffd3740e3 100644
|
||||
index 72f7780438..abe70d20d5 100644
|
||||
--- a/src/locking/meson.build
|
||||
+++ b/src/locking/meson.build
|
||||
@@ -243,14 +243,14 @@ if conf.has('WITH_LIBVIRTD')
|
||||
@@ -238,14 +238,14 @@ if conf.has('WITH_LIBVIRTD')
|
||||
}
|
||||
|
||||
virt_install_dirs += [
|
||||
|
@ -112,26 +143,39 @@ index 184d3c3f56..7ffd3740e3 100644
|
|||
endif
|
||||
endif
|
||||
diff --git a/src/lxc/meson.build b/src/lxc/meson.build
|
||||
index ad5c659dba..8010dfbf02 100644
|
||||
index 99d4a34213..aae477c1ee 100644
|
||||
--- a/src/lxc/meson.build
|
||||
+++ b/src/lxc/meson.build
|
||||
@@ -181,8 +181,8 @@ if conf.has('WITH_LXC')
|
||||
@@ -176,10 +176,10 @@ if conf.has('WITH_LXC')
|
||||
}
|
||||
|
||||
virt_install_dirs += [
|
||||
- confdir / 'lxc',
|
||||
- confdir / 'lxc' / 'autostart',
|
||||
- localstatedir / 'lib' / 'libvirt' / 'lxc',
|
||||
- runstatedir / 'libvirt' / 'lxc',
|
||||
- localstatedir / 'log' / 'libvirt' / 'lxc',
|
||||
- runstatedir / 'libvirt' / 'lxc',
|
||||
+ install_prefix + confdir / 'lxc',
|
||||
+ install_prefix + confdir / 'lxc' / 'autostart',
|
||||
+ install_prefix + localstatedir / 'lib' / 'libvirt' / 'lxc',
|
||||
+ install_prefix + runstatedir / 'libvirt' / 'lxc',
|
||||
+ install_prefix + localstatedir / 'log' / 'libvirt' / 'lxc',
|
||||
+ install_prefix + runstatedir / 'libvirt' / 'lxc',
|
||||
]
|
||||
endif
|
||||
diff --git a/src/meson.build b/src/meson.build
|
||||
index 2bd88e6699..76df507968 100644
|
||||
index b2d951d36c..305716010f 100644
|
||||
--- a/src/meson.build
|
||||
+++ b/src/meson.build
|
||||
@@ -669,7 +669,7 @@ endforeach
|
||||
@@ -210,7 +210,7 @@ openrc_init_files = []
|
||||
|
||||
# virt_install_dirs:
|
||||
# list of directories to create during installation
|
||||
-virt_install_dirs = [ confdir ]
|
||||
+virt_install_dirs = [ install_prefix + confdir ]
|
||||
|
||||
# driver_source_files:
|
||||
# driver source files to check
|
||||
@@ -663,7 +663,7 @@ endforeach
|
||||
|
||||
virt_conf_files += 'libvirt.conf'
|
||||
|
||||
|
@ -140,7 +184,7 @@ index 2bd88e6699..76df507968 100644
|
|||
install_data(virt_aug_files, install_dir: virt_aug_dir)
|
||||
|
||||
# augeas_test_data:
|
||||
@@ -729,7 +729,7 @@ foreach data : virt_daemon_confs
|
||||
@@ -723,7 +723,7 @@ foreach data : virt_daemon_confs
|
||||
output: '@0@.conf'.format(data['name']),
|
||||
configuration: daemon_conf,
|
||||
install: true,
|
||||
|
@ -149,15 +193,16 @@ index 2bd88e6699..76df507968 100644
|
|||
)
|
||||
|
||||
if data.get('with_ip', false)
|
||||
@@ -853,14 +853,14 @@ if conf.has('WITH_LIBVIRTD')
|
||||
@@ -847,7 +847,7 @@ if conf.has('WITH_LIBVIRTD')
|
||||
|
||||
install_data(
|
||||
init_file,
|
||||
- install_dir: sysconfdir / 'init.d',
|
||||
+ install_dir: install_prefix + sysconfdir / 'init.d',
|
||||
install_mode: 'rwxr-xr-x',
|
||||
rename: [ init['name'] ],
|
||||
)
|
||||
|
||||
@@ -855,7 +855,7 @@ if conf.has('WITH_LIBVIRTD')
|
||||
if init.has_key('confd')
|
||||
install_data(
|
||||
init['confd'],
|
||||
|
@ -166,16 +211,7 @@ index 2bd88e6699..76df507968 100644
|
|||
rename: [ init['name'] ],
|
||||
)
|
||||
endif
|
||||
@@ -872,7 +872,7 @@ if init_script != 'none'
|
||||
foreach sysconf : sysconf_files
|
||||
install_data(
|
||||
sysconf['file'],
|
||||
- install_dir: sysconfdir / 'sysconfig',
|
||||
+ install_dir: install_prefix + sysconfdir / 'sysconfig',
|
||||
rename: [ sysconf['name'] ],
|
||||
)
|
||||
endforeach
|
||||
@@ -897,10 +897,10 @@ endif
|
||||
@@ -882,10 +882,10 @@ endif
|
||||
# Install empty directories
|
||||
|
||||
virt_install_dirs += [
|
||||
|
@ -191,23 +227,27 @@ index 2bd88e6699..76df507968 100644
|
|||
|
||||
meson.add_install_script(
|
||||
diff --git a/src/network/meson.build b/src/network/meson.build
|
||||
index d6fb624bb7..96b757b144 100644
|
||||
index b5eff0c3ab..a0f26d624e 100644
|
||||
--- a/src/network/meson.build
|
||||
+++ b/src/network/meson.build
|
||||
@@ -78,9 +78,9 @@ if conf.has('WITH_NETWORK')
|
||||
@@ -73,11 +73,11 @@ if conf.has('WITH_NETWORK')
|
||||
}
|
||||
|
||||
virt_install_dirs += [
|
||||
- confdir / 'qemu' / 'networks',
|
||||
- confdir / 'qemu' / 'networks' / 'autostart',
|
||||
- localstatedir / 'lib' / 'libvirt' / 'network',
|
||||
- localstatedir / 'lib' / 'libvirt' / 'dnsmasq',
|
||||
- runstatedir / 'libvirt' / 'network',
|
||||
+ install_prefix + confdir / 'qemu' / 'networks',
|
||||
+ install_prefix + confdir / 'qemu' / 'networks' / 'autostart',
|
||||
+ install_prefix + localstatedir / 'lib' / 'libvirt' / 'network',
|
||||
+ install_prefix + localstatedir / 'lib' / 'libvirt' / 'dnsmasq',
|
||||
+ install_prefix + runstatedir / 'libvirt' / 'network',
|
||||
]
|
||||
|
||||
configure_file(
|
||||
@@ -88,12 +88,12 @@ if conf.has('WITH_NETWORK')
|
||||
@@ -85,12 +85,12 @@ if conf.has('WITH_NETWORK')
|
||||
output: '@BASENAME@',
|
||||
copy: true,
|
||||
install: true,
|
||||
|
@ -222,6 +262,35 @@ index d6fb624bb7..96b757b144 100644
|
|||
'../default.xml', 'default.xml',
|
||||
)
|
||||
|
||||
diff --git a/src/node_device/meson.build b/src/node_device/meson.build
|
||||
index 1c95975c37..a7831242db 100644
|
||||
--- a/src/node_device/meson.build
|
||||
+++ b/src/node_device/meson.build
|
||||
@@ -64,6 +64,6 @@ if conf.has('WITH_NODE_DEVICES')
|
||||
}
|
||||
|
||||
virt_install_dirs += [
|
||||
- runstatedir / 'libvirt' / 'nodedev',
|
||||
+ install_prefix + runstatedir / 'libvirt' / 'nodedev',
|
||||
]
|
||||
endif
|
||||
diff --git a/src/nwfilter/meson.build b/src/nwfilter/meson.build
|
||||
index 55cf8fcce4..d331086f2e 100644
|
||||
--- a/src/nwfilter/meson.build
|
||||
+++ b/src/nwfilter/meson.build
|
||||
@@ -62,9 +62,9 @@ if conf.has('WITH_NWFILTER')
|
||||
}
|
||||
|
||||
virt_install_dirs += [
|
||||
- confdir / 'nwfilter',
|
||||
- runstatedir / 'libvirt' / 'nwfilter-binding',
|
||||
- runstatedir / 'libvirt' / 'nwfilter',
|
||||
+ install_prefix + confdir / 'nwfilter',
|
||||
+ install_prefix + runstatedir / 'libvirt' / 'nwfilter-binding',
|
||||
+ install_prefix + runstatedir / 'libvirt' / 'nwfilter',
|
||||
]
|
||||
|
||||
subdir('xml')
|
||||
diff --git a/src/nwfilter/xml/meson.build b/src/nwfilter/xml/meson.build
|
||||
index 0d96c54ebe..66c92a1016 100644
|
||||
--- a/src/nwfilter/xml/meson.build
|
||||
|
@ -233,43 +302,71 @@ index 0d96c54ebe..66c92a1016 100644
|
|||
-install_data(nwfilter_xml_files, install_dir: sysconfdir / 'libvirt' / 'nwfilter')
|
||||
+install_data(nwfilter_xml_files, install_dir: install_prefix + sysconfdir / 'libvirt' / 'nwfilter')
|
||||
diff --git a/src/qemu/meson.build b/src/qemu/meson.build
|
||||
index 3898d23877..c2a2675187 100644
|
||||
index 39f0f615cc..5f6f30f82b 100644
|
||||
--- a/src/qemu/meson.build
|
||||
+++ b/src/qemu/meson.build
|
||||
@@ -171,12 +171,12 @@ if conf.has('WITH_QEMU')
|
||||
}
|
||||
@@ -175,24 +175,24 @@ if conf.has('WITH_QEMU')
|
||||
endif
|
||||
|
||||
virt_install_dirs += [
|
||||
- localstatedir / 'lib' / 'libvirt' / 'qemu',
|
||||
- runstatedir / 'libvirt' / 'qemu',
|
||||
- confdir / 'qemu',
|
||||
- confdir / 'qemu' / 'autostart',
|
||||
- localstatedir / 'cache' / 'libvirt' / 'qemu',
|
||||
- localstatedir / 'log' / 'libvirt' / 'qemu',
|
||||
- localstatedir / 'lib' / 'libvirt' / 'qemu',
|
||||
- localstatedir / 'lib' / 'libvirt' / 'qemu' / 'channel',
|
||||
- localstatedir / 'lib' / 'libvirt' / 'qemu' / 'channel' / 'target',
|
||||
- localstatedir / 'lib' / 'libvirt' / 'qemu' / 'checkpoint',
|
||||
- localstatedir / 'lib' / 'libvirt' / 'qemu' / 'dump',
|
||||
- localstatedir / 'lib' / 'libvirt' / 'qemu' / 'nvram',
|
||||
- localstatedir / 'lib' / 'libvirt' / 'qemu' / 'ram',
|
||||
- localstatedir / 'lib' / 'libvirt' / 'qemu' / 'save',
|
||||
- localstatedir / 'lib' / 'libvirt' / 'qemu' / 'snapshot',
|
||||
- localstatedir / 'lib' / 'libvirt' / 'swtpm',
|
||||
- runstatedir / 'libvirt' / 'qemu' / 'swtpm',
|
||||
- localstatedir / 'log' / 'libvirt' / 'qemu',
|
||||
- localstatedir / 'log' / 'swtpm' / 'libvirt' / 'qemu',
|
||||
+ install_prefix + localstatedir / 'lib' / 'libvirt' / 'qemu',
|
||||
+ install_prefix + runstatedir / 'libvirt' / 'qemu',
|
||||
- runstatedir / 'libvirt' / 'qemu',
|
||||
- runstatedir / 'libvirt' / 'qemu' / 'dbus',
|
||||
- runstatedir / 'libvirt' / 'qemu' / 'slirp',
|
||||
- runstatedir / 'libvirt' / 'qemu' / 'swtpm',
|
||||
+ install_prefix + confdir / 'qemu',
|
||||
+ install_prefix + confdir / 'qemu' / 'autostart',
|
||||
+ install_prefix + localstatedir / 'cache' / 'libvirt' / 'qemu',
|
||||
+ install_prefix + localstatedir / 'log' / 'libvirt' / 'qemu',
|
||||
+ install_prefix + localstatedir / 'lib' / 'libvirt' / 'qemu',
|
||||
+ install_prefix + localstatedir / 'lib' / 'libvirt' / 'qemu' / 'channel',
|
||||
+ install_prefix + localstatedir / 'lib' / 'libvirt' / 'qemu' / 'channel' / 'target',
|
||||
+ install_prefix + localstatedir / 'lib' / 'libvirt' / 'qemu' / 'checkpoint',
|
||||
+ install_prefix + localstatedir / 'lib' / 'libvirt' / 'qemu' / 'dump',
|
||||
+ install_prefix + localstatedir / 'lib' / 'libvirt' / 'qemu' / 'nvram',
|
||||
+ install_prefix + localstatedir / 'lib' / 'libvirt' / 'qemu' / 'ram',
|
||||
+ install_prefix + localstatedir / 'lib' / 'libvirt' / 'qemu' / 'save',
|
||||
+ install_prefix + localstatedir / 'lib' / 'libvirt' / 'qemu' / 'snapshot',
|
||||
+ install_prefix + localstatedir / 'lib' / 'libvirt' / 'swtpm',
|
||||
+ install_prefix + runstatedir / 'libvirt' / 'qemu' / 'swtpm',
|
||||
+ install_prefix + localstatedir / 'log' / 'libvirt' / 'qemu',
|
||||
+ install_prefix + localstatedir / 'log' / 'swtpm' / 'libvirt' / 'qemu',
|
||||
+ install_prefix + runstatedir / 'libvirt' / 'qemu',
|
||||
+ install_prefix + runstatedir / 'libvirt' / 'qemu' / 'dbus',
|
||||
+ install_prefix + runstatedir / 'libvirt' / 'qemu' / 'slirp',
|
||||
+ install_prefix + runstatedir / 'libvirt' / 'qemu' / 'swtpm',
|
||||
]
|
||||
endif
|
||||
diff --git a/src/remote/meson.build b/src/remote/meson.build
|
||||
index 0a188268b5..702822612e 100644
|
||||
index b2aafe6320..6972d254ca 100644
|
||||
--- a/src/remote/meson.build
|
||||
+++ b/src/remote/meson.build
|
||||
@@ -245,7 +245,7 @@ if conf.has('WITH_REMOTE')
|
||||
@@ -235,9 +235,9 @@ if conf.has('WITH_REMOTE')
|
||||
}
|
||||
|
||||
virt_install_dirs += [
|
||||
- localstatedir / 'log' / 'libvirt',
|
||||
- runstatedir / 'libvirt',
|
||||
- runstatedir / 'libvirt' / 'common',
|
||||
+ install_prefix + localstatedir / 'log' / 'libvirt',
|
||||
+ install_prefix + runstatedir / 'libvirt',
|
||||
+ install_prefix + runstatedir / 'libvirt' / 'common',
|
||||
]
|
||||
|
||||
logrotate_conf = configuration_data()
|
||||
@@ -259,7 +259,7 @@ if conf.has('WITH_REMOTE')
|
||||
@@ -251,7 +251,7 @@ if conf.has('WITH_REMOTE')
|
||||
)
|
||||
install_data(
|
||||
log_file,
|
||||
|
@ -278,7 +375,7 @@ index 0a188268b5..702822612e 100644
|
|||
rename: [ name ],
|
||||
)
|
||||
endforeach
|
||||
@@ -309,7 +309,7 @@ endif
|
||||
@@ -301,7 +301,7 @@ endif
|
||||
if conf.has('WITH_SASL')
|
||||
install_data(
|
||||
'libvirtd.sasl',
|
||||
|
@ -287,6 +384,20 @@ index 0a188268b5..702822612e 100644
|
|||
rename: [ 'libvirt.conf' ],
|
||||
)
|
||||
endif
|
||||
diff --git a/src/secret/meson.build b/src/secret/meson.build
|
||||
index 1bda59849b..392bc2cb2e 100644
|
||||
--- a/src/secret/meson.build
|
||||
+++ b/src/secret/meson.build
|
||||
@@ -45,7 +45,7 @@ if conf.has('WITH_SECRETS')
|
||||
}
|
||||
|
||||
virt_install_dirs += [
|
||||
- confdir / 'secrets',
|
||||
- runstatedir / 'libvirt' / 'secrets',
|
||||
+ install_prefix + confdir / 'secrets',
|
||||
+ install_prefix + runstatedir / 'libvirt' / 'secrets',
|
||||
]
|
||||
endif
|
||||
diff --git a/src/security/apparmor/meson.build b/src/security/apparmor/meson.build
|
||||
index 990f00b4f3..e5a7a14e1d 100644
|
||||
--- a/src/security/apparmor/meson.build
|
||||
|
@ -318,8 +429,25 @@ index 990f00b4f3..e5a7a14e1d 100644
|
|||
+ install_dir: install_prefix + apparmor_dir / 'local',
|
||||
rename: 'usr.lib.libvirt.virt-aa-helper',
|
||||
)
|
||||
diff --git a/src/storage/meson.build b/src/storage/meson.build
|
||||
index 26e7ff1a1a..ad5c6eddc3 100644
|
||||
--- a/src/storage/meson.build
|
||||
+++ b/src/storage/meson.build
|
||||
@@ -127,9 +127,9 @@ if conf.has('WITH_STORAGE')
|
||||
}
|
||||
|
||||
virt_install_dirs += [
|
||||
- confdir / 'storage',
|
||||
- confdir / 'storage' / 'autostart',
|
||||
- runstatedir / 'libvirt' / 'storage',
|
||||
+ install_prefix + confdir / 'storage',
|
||||
+ install_prefix + confdir / 'storage' / 'autostart',
|
||||
+ install_prefix + runstatedir / 'libvirt' / 'storage',
|
||||
]
|
||||
endif
|
||||
|
||||
diff --git a/tools/meson.build b/tools/meson.build
|
||||
index 3fba313e5f..a2b891b86c 100644
|
||||
index f4b4a16c29..059c73a955 100644
|
||||
--- a/tools/meson.build
|
||||
+++ b/tools/meson.build
|
||||
@@ -120,7 +120,7 @@ if conf.has('WITH_LOGIN_SHELL')
|
||||
|
@ -331,15 +459,6 @@ index 3fba313e5f..a2b891b86c 100644
|
|||
endif
|
||||
|
||||
if host_machine.system() == 'windows'
|
||||
@@ -307,7 +307,7 @@ configure_file(
|
||||
if init_script == 'systemd'
|
||||
install_data(
|
||||
'libvirt-guests.sysconf',
|
||||
- install_dir: sysconfdir / 'sysconfig',
|
||||
+ install_dir: install_prefix + sysconfdir / 'sysconfig',
|
||||
rename: 'libvirt-guests',
|
||||
)
|
||||
|
||||
--
|
||||
2.35.1
|
||||
|
||||
|
|
|
@ -109,14 +109,14 @@ stdenv.mkDerivation rec {
|
|||
# NOTE: You must also bump:
|
||||
# <nixpkgs/pkgs/development/python-modules/libvirt/default.nix>
|
||||
# SysVirt in <nixpkgs/pkgs/top-level/perl-packages.nix>
|
||||
version = "7.10.0";
|
||||
version = "8.1.0";
|
||||
|
||||
src =
|
||||
if isDarwin then
|
||||
fetchurl
|
||||
{
|
||||
url = "https://libvirt.org/sources/${pname}-${version}.tar.xz";
|
||||
sha256 = "sha256-yzGAFK8JcyeSjG49cpIuO+AqPmQBJHsqpS2auOC0gPk=";
|
||||
sha256 = "sha256-PGxDvs/+s0o/OXxhYgaqaaiT/4v16CCDk8hOjnU1KTQ=";
|
||||
}
|
||||
else
|
||||
fetchFromGitLab
|
||||
|
@ -124,7 +124,7 @@ stdenv.mkDerivation rec {
|
|||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-bB8LsjZFeJbMmmC0YRPyMag2MBhwagUFC7aB1KhZEkA=";
|
||||
sha256 = "sha256-nk8pBlss+g4EMy+RnAOyz6YlGGvlBvl5aBpcytsK1wY=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
|
@ -138,6 +138,8 @@ stdenv.mkDerivation rec {
|
|||
sed -i '/virnetsockettest/d' tests/meson.build
|
||||
# delete only the first occurrence of this
|
||||
sed -i '0,/qemuxml2argvtest/{/qemuxml2argvtest/d;}' tests/meson.build
|
||||
'' + optionalString isDarwin ''
|
||||
sed -i '/qemucapabilitiestest/d' tests/meson.build
|
||||
'';
|
||||
|
||||
|
||||
|
@ -228,7 +230,7 @@ stdenv.mkDerivation rec {
|
|||
''
|
||||
+ (lib.concatStringsSep "\n" (lib.mapAttrsToList patchBuilder overrides));
|
||||
|
||||
mesonAutoFeatures = "auto";
|
||||
mesonAutoFeatures = "disabled";
|
||||
|
||||
mesonFlags =
|
||||
let
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "libvirt";
|
||||
version = "7.10.0";
|
||||
version = "8.1.0";
|
||||
|
||||
src = assert version == libvirt.version; fetchFromGitLab {
|
||||
owner = "libvirt";
|
||||
repo = "libvirt-python";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-I1FNjNwWRyDAUSq2Co9EnjAbzKQtS0Rx8vHgPsFzSYw=";
|
||||
sha256 = "sha256-/uGxjptiqm5B823z4mcjredj9ZLZC2WTTqhQrQPVfDU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
|
|
@ -20782,12 +20782,12 @@ let
|
|||
|
||||
SysVirt = buildPerlModule rec {
|
||||
pname = "Sys-Virt";
|
||||
version = "7.10.0";
|
||||
version = "8.1.0";
|
||||
src = fetchFromGitLab {
|
||||
owner = "libvirt";
|
||||
repo = "libvirt-perl";
|
||||
rev = "v7.10.0";
|
||||
sha256 = "sha256-cXuzg4bBwCftdZhz3e50L+4fO0RWX5Tl8zDOoydECd4=";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-9cjH4hIIxB+Pv9+ck6xg8KmfM8jtVFKVQNGLYr2AnAM=";
|
||||
};
|
||||
nativeBuildInputs = [ pkgs.pkg-config ];
|
||||
buildInputs = [ pkgs.libvirt CPANChanges TestPod TestPodCoverage XMLXPath ];
|
||||
|
|
Loading…
Reference in a new issue