diff options
Diffstat (limited to 'meta-python/recipes-extended/python-blivet')
-rw-r--r-- | meta-python/recipes-extended/python-blivet/python3-blivet/0002-run_program-support-timeout.patch | 18 | ||||
-rw-r--r-- | meta-python/recipes-extended/python-blivet/python3-blivet_3.12.1.bb (renamed from meta-python/recipes-extended/python-blivet/python3-blivet_3.9.2.bb) | 6 | ||||
-rw-r--r-- | meta-python/recipes-extended/python-blivet/python3-blivetgui_2.6.0.bb (renamed from meta-python/recipes-extended/python-blivet/python3-blivetgui_2.5.0.bb) | 3 |
3 files changed, 15 insertions, 12 deletions
diff --git a/meta-python/recipes-extended/python-blivet/python3-blivet/0002-run_program-support-timeout.patch b/meta-python/recipes-extended/python-blivet/python3-blivet/0002-run_program-support-timeout.patch index d277e8b0f7..b577cd4bd4 100644 --- a/meta-python/recipes-extended/python-blivet/python3-blivet/0002-run_program-support-timeout.patch +++ b/meta-python/recipes-extended/python-blivet/python3-blivet/0002-run_program-support-timeout.patch | |||
@@ -6,15 +6,19 @@ Subject: [PATCH 02/11] run_program support timeout | |||
6 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
7 | 7 | ||
8 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 8 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
9 | |||
10 | Rebase for blivet 3.12.1. | ||
11 | |||
12 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
9 | --- | 13 | --- |
10 | blivet/util.py | 70 +++++++++++++++++++++++++++++--------------------- | 14 | blivet/util.py | 70 ++++++++++++++++++++++++++++++++++------------------------ |
11 | 1 file changed, 41 insertions(+), 29 deletions(-) | 15 | 1 file changed, 41 insertions(+), 29 deletions(-) |
12 | 16 | ||
13 | diff --git a/blivet/util.py b/blivet/util.py | 17 | diff --git a/blivet/util.py b/blivet/util.py |
14 | index f8a8f88..a5da7b6 100644 | 18 | index d194a5b..5985164 100644 |
15 | --- a/blivet/util.py | 19 | --- a/blivet/util.py |
16 | +++ b/blivet/util.py | 20 | +++ b/blivet/util.py |
17 | @@ -171,6 +171,30 @@ class Path(str): | 21 | @@ -169,6 +169,30 @@ class Path(str): |
18 | def __hash__(self): | 22 | def __hash__(self): |
19 | return self._path.__hash__() | 23 | return self._path.__hash__() |
20 | 24 | ||
@@ -45,7 +49,7 @@ index f8a8f88..a5da7b6 100644 | |||
45 | 49 | ||
46 | def _run_program(argv, root='/', stdin=None, env_prune=None, stderr_to_stdout=False, binary_output=False): | 50 | def _run_program(argv, root='/', stdin=None, env_prune=None, stderr_to_stdout=False, binary_output=False): |
47 | if env_prune is None: | 51 | if env_prune is None: |
48 | @@ -193,35 +217,23 @@ def _run_program(argv, root='/', stdin=None, env_prune=None, stderr_to_stdout=Fa | 52 | @@ -191,35 +215,23 @@ def _run_program(argv, root='/', stdin=None, env_prune=None, stderr_to_stdout=Fa |
49 | stderr_dir = subprocess.STDOUT | 53 | stderr_dir = subprocess.STDOUT |
50 | else: | 54 | else: |
51 | stderr_dir = subprocess.PIPE | 55 | stderr_dir = subprocess.PIPE |
@@ -58,7 +62,7 @@ index f8a8f88..a5da7b6 100644 | |||
58 | - preexec_fn=chroot, cwd=root, env=env) | 62 | - preexec_fn=chroot, cwd=root, env=env) |
59 | - | 63 | - |
60 | - out, err = proc.communicate() | 64 | - out, err = proc.communicate() |
61 | - if not binary_output and six.PY3: | 65 | - if not binary_output: |
62 | - out = out.decode("utf-8") | 66 | - out = out.decode("utf-8") |
63 | - if out: | 67 | - if out: |
64 | - if not stderr_to_stdout: | 68 | - if not stderr_to_stdout: |
@@ -85,7 +89,8 @@ index f8a8f88..a5da7b6 100644 | |||
85 | + stderr=stderr_dir, | 89 | + stderr=stderr_dir, |
86 | + close_fds=True, | 90 | + close_fds=True, |
87 | + preexec_fn=chroot, cwd=root, env=env) | 91 | + preexec_fn=chroot, cwd=root, env=env) |
88 | + if not binary_output and six.PY3: | 92 | + |
93 | + if not binary_output: | ||
89 | + out = out.decode("utf-8") | 94 | + out = out.decode("utf-8") |
90 | + if out: | 95 | + if out: |
91 | + if not stderr_to_stdout: | 96 | + if not stderr_to_stdout: |
@@ -94,7 +99,6 @@ index f8a8f88..a5da7b6 100644 | |||
94 | + program_log.info("%s", line) | 99 | + program_log.info("%s", line) |
95 | + | 100 | + |
96 | + return (res, out) | 101 | + return (res, out) |
97 | + | ||
98 | 102 | ||
99 | 103 | ||
100 | def run_program(*args, **kwargs): | 104 | def run_program(*args, **kwargs): |
diff --git a/meta-python/recipes-extended/python-blivet/python3-blivet_3.9.2.bb b/meta-python/recipes-extended/python-blivet/python3-blivet_3.12.1.bb index f0ce981480..bf492b3d57 100644 --- a/meta-python/recipes-extended/python-blivet/python3-blivet_3.9.2.bb +++ b/meta-python/recipes-extended/python-blivet/python3-blivet_3.12.1.bb | |||
@@ -1,5 +1,5 @@ | |||
1 | DESCRIPTION = "A python module for system storage configuration" | 1 | DESCRIPTION = "A python module for system storage configuration" |
2 | HOMEPAGE = "http://fedoraproject.org/wiki/blivet" | 2 | HOMEPAGE = "https://fedoraproject.org/wiki/blivet" |
3 | LICENSE = "LGPL-2.0-or-later" | 3 | LICENSE = "LGPL-2.0-or-later" |
4 | SECTION = "devel/python" | 4 | SECTION = "devel/python" |
5 | 5 | ||
@@ -16,7 +16,7 @@ SRC_URI += "\ | |||
16 | file://0010-invoking-mkfs-with-infinite-timeout.patch \ | 16 | file://0010-invoking-mkfs-with-infinite-timeout.patch \ |
17 | file://0011-invoking-dd-with-infinite-timeout.patch \ | 17 | file://0011-invoking-dd-with-infinite-timeout.patch \ |
18 | " | 18 | " |
19 | SRC_URI[sha256sum] = "9d97e37ebba01db28a1e6155cbd71c54fb55e9c2be5921982dc85bed316d8cfe" | 19 | SRC_URI[sha256sum] = "54775ba212d1574b1b0750ce147f0d3cf3b5d73aaf040d172283edb57db4ba15" |
20 | 20 | ||
21 | inherit pypi features_check systemd setuptools3_legacy | 21 | inherit pypi features_check systemd setuptools3_legacy |
22 | 22 | ||
@@ -24,7 +24,7 @@ REQUIRED_DISTRO_FEATURES = "systemd" | |||
24 | 24 | ||
25 | RDEPENDS:${PN} += "python3-pykickstart python3-pyudev \ | 25 | RDEPENDS:${PN} += "python3-pykickstart python3-pyudev \ |
26 | parted python3-pyparted multipath-tools \ | 26 | parted python3-pyparted multipath-tools \ |
27 | lsof cryptsetup libblockdev \ | 27 | lsof cryptsetup libblockdev libblockdev-bin \ |
28 | libbytesize \ | 28 | libbytesize \ |
29 | " | 29 | " |
30 | 30 | ||
diff --git a/meta-python/recipes-extended/python-blivet/python3-blivetgui_2.5.0.bb b/meta-python/recipes-extended/python-blivet/python3-blivetgui_2.6.0.bb index 124f36c6e0..79bee63d08 100644 --- a/meta-python/recipes-extended/python-blivet/python3-blivetgui_2.5.0.bb +++ b/meta-python/recipes-extended/python-blivet/python3-blivetgui_2.6.0.bb | |||
@@ -6,9 +6,8 @@ SECTION = "devel/python" | |||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
7 | 7 | ||
8 | SRC_URI = "git://github.com/storaged-project/blivet-gui.git;branch=main;protocol=https" | 8 | SRC_URI = "git://github.com/storaged-project/blivet-gui.git;branch=main;protocol=https" |
9 | SRCREV = "626b44610a30ad26734dd20642538caab5a9178a" | 9 | SRCREV = "7cec4bd48af4c8f7beb1a74bac751c3d520dedf1" |
10 | 10 | ||
11 | S = "${WORKDIR}/git" | ||
12 | 11 | ||
13 | inherit features_check setuptools3 | 12 | inherit features_check setuptools3 |
14 | REQUIRED_DISTRO_FEATURES = "x11 systemd gobject-introspection-data" | 13 | REQUIRED_DISTRO_FEATURES = "x11 systemd gobject-introspection-data" |