diff options
Diffstat (limited to 'external/meta-openembedded/meta-python/recipes-extended')
29 files changed, 112 insertions, 203 deletions
diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0001-comment-out-selinux.patch b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0001-comment-out-selinux.patch index c77b86a4..90fa387b 100644 --- a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0001-comment-out-selinux.patch +++ b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0001-comment-out-selinux.patch @@ -1,6 +1,6 @@ -From 648a18bfc447f076d48ae4147d984b8ef56e37aa Mon Sep 17 00:00:00 2001 +From fc8e93530ba017ecfe111e53d3cbdc3a5b3ac286 Mon Sep 17 00:00:00 2001 From: Hongxu Jia <hongxu.jia@windriver.com> -Date: Mon, 30 Jul 2018 16:13:40 +0800 +Date: Fri, 23 Nov 2018 16:58:38 +0800 Subject: [PATCH 01/11] comment out selinux Upstream-Status: Inappropriate [oe specific] @@ -12,7 +12,7 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/blivet/flags.py b/blivet/flags.py -index 1840121..8789390 100644 +index 4e26d82..94324ff 100644 --- a/blivet/flags.py +++ b/blivet/flags.py @@ -20,7 +20,7 @@ @@ -35,7 +35,7 @@ index 1840121..8789390 100644 self.dmraid = True self.ibft = True diff --git a/blivet/util.py b/blivet/util.py -index 7334ff6..0f2a995 100644 +index 9daf151..4eac8b9 100644 --- a/blivet/util.py +++ b/blivet/util.py @@ -3,7 +3,7 @@ import functools @@ -47,7 +47,7 @@ index 7334ff6..0f2a995 100644 import subprocess import re import sys -@@ -430,6 +430,8 @@ def get_cow_sysfs_path(dev_path, dev_sysfsPath): +@@ -444,6 +444,8 @@ def get_cow_sysfs_path(dev_path, dev_sysfsPath): def match_path_context(path): """ Return the default SELinux context for the given path. """ context = None @@ -56,7 +56,7 @@ index 7334ff6..0f2a995 100644 try: context = selinux.matchpathcon(os.path.normpath(path), 0)[1] except OSError as e: -@@ -454,6 +456,8 @@ def set_file_context(path, context, root=None): +@@ -468,6 +470,8 @@ def set_file_context(path, context, root=None): True if successful, False if not. """ diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0002-run_program-support-timeout.patch b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0002-run_program-support-timeout.patch index fea22540..5b388599 100644 --- a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0002-run_program-support-timeout.patch +++ b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0002-run_program-support-timeout.patch @@ -1,20 +1,20 @@ -From 596979ed58109141a7fee680ab95b27296c022b1 Mon Sep 17 00:00:00 2001 +From 713cf821ebe17f9e1771502a85e0905ea04dafae Mon Sep 17 00:00:00 2001 From: Hongxu Jia <hongxu.jia@windriver.com> -Date: Mon, 8 May 2017 14:39:56 +0800 +Date: Fri, 23 Nov 2018 17:03:58 +0800 Subject: [PATCH 02/11] run_program support timeout Upstream-Status: Pending Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> --- - blivet/util.py | 68 +++++++++++++++++++++++++++++++++------------------------- - 1 file changed, 39 insertions(+), 29 deletions(-) + blivet/util.py | 70 ++++++++++++++++++++++++++++++++++------------------------ + 1 file changed, 41 insertions(+), 29 deletions(-) diff --git a/blivet/util.py b/blivet/util.py -index 0f2a995..05a253c 100644 +index 4eac8b9..4f05076 100644 --- a/blivet/util.py +++ b/blivet/util.py -@@ -157,6 +157,30 @@ class Path(str): +@@ -158,6 +158,30 @@ class Path(str): def __hash__(self): return self._path.__hash__() @@ -45,12 +45,12 @@ index 0f2a995..05a253c 100644 def _run_program(argv, root='/', stdin=None, env_prune=None, stderr_to_stdout=False, binary_output=False): if env_prune is None: -@@ -179,36 +203,22 @@ def _run_program(argv, root='/', stdin=None, env_prune=None, stderr_to_stdout=Fa +@@ -180,35 +204,23 @@ def _run_program(argv, root='/', stdin=None, env_prune=None, stderr_to_stdout=Fa stderr_dir = subprocess.STDOUT else: stderr_dir = subprocess.PIPE - try: -- proc = subprocess.Popen(argv, +- proc = subprocess.Popen(argv, # pylint: disable=subprocess-popen-preexec-fn - stdin=stdin, - stdout=subprocess.PIPE, - stderr=stderr_dir, @@ -78,7 +78,7 @@ index 0f2a995..05a253c 100644 - program_log.debug("Return code: %d", proc.returncode) - - return (proc.returncode, out) - ++ + res, out = timeout_command(argv, 10, + stdin=stdin, + stdout=subprocess.PIPE, @@ -94,9 +94,10 @@ index 0f2a995..05a253c 100644 + program_log.info("%s", line) + + return (res, out) ++ + def run_program(*args, **kwargs): - return _run_program(*args, **kwargs)[0] -- 2.7.4 diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0003-support-infinit-timeout.patch b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0003-support-infinit-timeout.patch index 38f061ed..861b2cdd 100644 --- a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0003-support-infinit-timeout.patch +++ b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0003-support-infinit-timeout.patch @@ -1,4 +1,4 @@ -From 325898f3f2951bbde07da47888175c427b11ddc3 Mon Sep 17 00:00:00 2001 +From 5d5436dfa3bdde7b4e87ce5a40cbc724199847d6 Mon Sep 17 00:00:00 2001 From: Hongxu Jia <hongxu.jia@windriver.com> Date: Mon, 8 May 2017 16:18:02 +0800 Subject: [PATCH 03/11] support infinit timeout @@ -11,10 +11,10 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/blivet/util.py b/blivet/util.py -index 05a253c..d6804be 100644 +index 4f05076..7e89949 100644 --- a/blivet/util.py +++ b/blivet/util.py -@@ -157,6 +157,7 @@ class Path(str): +@@ -158,6 +158,7 @@ class Path(str): def __hash__(self): return self._path.__hash__() @@ -22,7 +22,7 @@ index 05a253c..d6804be 100644 def timeout_command(argv, timeout, *args, **kwargs): """call shell-command and either return its output or kill it if it doesn't normally exit within timeout seconds and return None""" -@@ -168,7 +169,7 @@ def timeout_command(argv, timeout, *args, **kwargs): +@@ -169,7 +170,7 @@ def timeout_command(argv, timeout, *args, **kwargs): while proc.poll() is None: time.sleep(0.1) now = datetime.datetime.now() @@ -31,7 +31,7 @@ index 05a253c..d6804be 100644 os.kill(proc.pid, signal.SIGKILL) os.waitpid(-1, os.WNOHANG) program_log.debug("%d seconds timeout" % timeout) -@@ -182,7 +183,7 @@ def timeout_command(argv, timeout, *args, **kwargs): +@@ -183,7 +184,7 @@ def timeout_command(argv, timeout, *args, **kwargs): program_log.debug("Return code: %d", proc.returncode) return (proc.returncode, proc.stdout.read()) @@ -40,7 +40,7 @@ index 05a253c..d6804be 100644 if env_prune is None: env_prune = [] -@@ -191,7 +192,10 @@ def _run_program(argv, root='/', stdin=None, env_prune=None, stderr_to_stdout=Fa +@@ -192,7 +193,10 @@ def _run_program(argv, root='/', stdin=None, env_prune=None, stderr_to_stdout=Fa os.chroot(root) with program_log_lock: # pylint: disable=not-context-manager @@ -52,7 +52,7 @@ index 05a253c..d6804be 100644 env = os.environ.copy() env.update({"LC_ALL": "C", -@@ -204,7 +208,7 @@ def _run_program(argv, root='/', stdin=None, env_prune=None, stderr_to_stdout=Fa +@@ -205,7 +209,7 @@ def _run_program(argv, root='/', stdin=None, env_prune=None, stderr_to_stdout=Fa else: stderr_dir = subprocess.PIPE diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0004-fix-new.roots-object-is-not-iterable.patch b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0004-fix-new.roots-object-is-not-iterable.patch index be997ac4..526a3b1f 100644 --- a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0004-fix-new.roots-object-is-not-iterable.patch +++ b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0004-fix-new.roots-object-is-not-iterable.patch @@ -1,4 +1,4 @@ -From c31df1c0f5323ddc70e0d1c6d11db2fbf7a024ad Mon Sep 17 00:00:00 2001 +From 3bb8d08bdec2f79bb13c0a44b81718d26e5bdabc Mon Sep 17 00:00:00 2001 From: Hongxu Jia <hongxu.jia@windriver.com> Date: Mon, 8 May 2017 16:30:20 +0800 Subject: [PATCH 04/11] fix new.roots object is not iterable @@ -11,10 +11,10 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blivet/blivet.py b/blivet/blivet.py -index 3405810..f42b73b 100644 +index ea08837..91c92b2 100644 --- a/blivet/blivet.py +++ b/blivet/blivet.py -@@ -1198,7 +1198,7 @@ class Blivet(object): +@@ -1206,7 +1206,7 @@ class Blivet(object): p = partition.disk.format.parted_disk.getPartitionByPath(partition.path) partition.parted_partition = p diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0005-fix-incorrect-timeout-while-system-time-changed.patch b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0005-fix-incorrect-timeout-while-system-time-changed.patch index ecb95039..9c5d53b4 100644 --- a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0005-fix-incorrect-timeout-while-system-time-changed.patch +++ b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0005-fix-incorrect-timeout-while-system-time-changed.patch @@ -1,4 +1,4 @@ -From b30a74671ca603e6bfd514f72d4fd7fd6fceef54 Mon Sep 17 00:00:00 2001 +From f783b9b00da5df176fcd7927b752f574ca6db319 Mon Sep 17 00:00:00 2001 From: Hongxu Jia <hongxu.jia@windriver.com> Date: Fri, 26 Aug 2016 02:02:49 -0400 Subject: [PATCH 05/11] fix incorrect timeout while system time changed @@ -22,10 +22,10 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blivet/util.py b/blivet/util.py -index d6804be..bc08af5 100644 +index 7e89949..5571e73 100644 --- a/blivet/util.py +++ b/blivet/util.py -@@ -162,14 +162,14 @@ def timeout_command(argv, timeout, *args, **kwargs): +@@ -163,14 +163,14 @@ def timeout_command(argv, timeout, *args, **kwargs): """call shell-command and either return its output or kill it if it doesn't normally exit within timeout seconds and return None""" import subprocess, datetime, os, time, signal diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0006-tweak-btrfs-packages.patch b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0006-tweak-btrfs-packages.patch index da568a4b..2e53a647 100644 --- a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0006-tweak-btrfs-packages.patch +++ b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0006-tweak-btrfs-packages.patch @@ -1,4 +1,4 @@ -From 0659d8a85bcdd76c0b23b8b5af6958783d35ac65 Mon Sep 17 00:00:00 2001 +From 8932ae933f2b6acf5e98c9956beff69ae430eed2 Mon Sep 17 00:00:00 2001 From: Hongxu Jia <hongxu.jia@windriver.com> Date: Mon, 8 May 2017 16:33:15 +0800 Subject: [PATCH 06/11] tweak btrfs packages diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0007-invoking-mount-with-infinite-timeout.patch b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0007-invoking-mount-with-infinite-timeout.patch index e3012194..b2606d76 100644 --- a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0007-invoking-mount-with-infinite-timeout.patch +++ b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0007-invoking-mount-with-infinite-timeout.patch @@ -1,6 +1,6 @@ -From 9c7a15312259854f12137a30229e52c30fb7c770 Mon Sep 17 00:00:00 2001 +From f53481dc4a56b8a996628733553e080bb0aafdd7 Mon Sep 17 00:00:00 2001 From: Hongxu Jia <hongxu.jia@windriver.com> -Date: Wed, 31 Aug 2016 21:30:32 -0400 +Date: Fri, 23 Nov 2018 17:07:22 +0800 Subject: [PATCH 07/11] invoking mount with infinite timeout This large timeout is needed when running on machines with @@ -14,18 +14,18 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blivet/util.py b/blivet/util.py -index bc08af5..b672787 100644 +index 5571e73..02c8033 100644 --- a/blivet/util.py +++ b/blivet/util.py -@@ -256,7 +256,7 @@ def mount(device, mountpoint, fstype, options=None): +@@ -258,7 +258,7 @@ def mount(device, mountpoint, fstype, options=None): + makedirs(mountpoint) argv = ["mount", "-t", fstype, "-o", options, device, mountpoint] - try: -- rc = run_program(argv) -+ rc = run_program(argv, timeout=-1) - except OSError: - raise +- return run_program(argv) ++ return run_program(argv, timeout=-1) + + def umount(mountpoint): -- 2.7.4 diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0008-use-oe-variable-to-replace-hardcoded-dir.patch b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0008-use-oe-variable-to-replace-hardcoded-dir.patch index feb5647c..ade1862d 100644 --- a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0008-use-oe-variable-to-replace-hardcoded-dir.patch +++ b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0008-use-oe-variable-to-replace-hardcoded-dir.patch @@ -1,4 +1,4 @@ -From 7f57b2cd145d67c20beb02d5495b502f7af012cd Mon Sep 17 00:00:00 2001 +From 12e2579333258d1a690f8718e91b0f217078e886 Mon Sep 17 00:00:00 2001 From: Hongxu Jia <hongxu.jia@windriver.com> Date: Mon, 8 May 2017 03:54:12 -0400 Subject: [PATCH 08/11] use oe variable to replace hardcoded dir @@ -11,7 +11,7 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py -index 7edab2c..9be3187 100644 +index b745a79..b5b4258 100644 --- a/setup.py +++ b/setup.py @@ -61,10 +61,10 @@ class blivet_sdist(sdist): diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0009-invoking-fsck-with-infinite-timeout.patch b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0009-invoking-fsck-with-infinite-timeout.patch index 30d2d3ec..f4778779 100644 --- a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0009-invoking-fsck-with-infinite-timeout.patch +++ b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0009-invoking-fsck-with-infinite-timeout.patch @@ -1,4 +1,4 @@ -From c757666f42f543baeed5df61269798c085665d9b Mon Sep 17 00:00:00 2001 +From 9624b6d0dda40aaecbaf9530be819943575a2ec6 Mon Sep 17 00:00:00 2001 From: Hongxu Jia <hongxu.jia@windriver.com> Date: Thu, 1 Jun 2017 16:05:27 +0800 Subject: [PATCH 09/11] invoking fsck with infinite timeout diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0010-invoking-mkfs-with-infinite-timeout.patch b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0010-invoking-mkfs-with-infinite-timeout.patch index b2f45014..f1284904 100644 --- a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0010-invoking-mkfs-with-infinite-timeout.patch +++ b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0010-invoking-mkfs-with-infinite-timeout.patch @@ -1,4 +1,4 @@ -From 42d8e57c748951098534bf7f52c4ebc790ef66e9 Mon Sep 17 00:00:00 2001 +From 33844f6773a676bd57240954e402ae9a843663a4 Mon Sep 17 00:00:00 2001 From: Hongxu Jia <hongxu.jia@windriver.com> Date: Fri, 16 Jun 2017 15:43:00 +0800 Subject: [PATCH 10/11] invoking mkfs with infinite timeout diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0011-invoking-dd-with-infinite-timeout.patch b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0011-invoking-dd-with-infinite-timeout.patch index f24ce0a8..13c2933f 100644 --- a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0011-invoking-dd-with-infinite-timeout.patch +++ b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0011-invoking-dd-with-infinite-timeout.patch @@ -1,4 +1,4 @@ -From a4753b3cbbd5aee59dc53eb16564cafd9862763e Mon Sep 17 00:00:00 2001 +From 21ca2b859a49e96a230d55a7866dfc7ed5d1366c Mon Sep 17 00:00:00 2001 From: Hongxu Jia <hongxu.jia@windriver.com> Date: Tue, 6 Mar 2018 17:28:56 +0800 Subject: [PATCH 11/11] invoking dd with infinite timeout @@ -14,10 +14,10 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blivet/devices/partition.py b/blivet/devices/partition.py -index 47ff547..0cd1614 100644 +index 623e1c9..141d8ad 100644 --- a/blivet/devices/partition.py +++ b/blivet/devices/partition.py -@@ -621,7 +621,7 @@ class PartitionDevice(StorageDevice): +@@ -618,7 +618,7 @@ class PartitionDevice(StorageDevice): cmd = ["dd", "if=/dev/zero", "of=%s" % device, "bs=%d" % bs, "seek=%d" % start, "count=%d" % count] try: diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0012-remove-dmraid-dependency-check.patch b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0012-remove-dmraid-dependency-check.patch deleted file mode 100644 index 886e3ff9..00000000 --- a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0012-remove-dmraid-dependency-check.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 4476e846a1e64dde17df2e2370c803ce695514f9 Mon Sep 17 00:00:00 2001 -From: Hongxu Jia <hongxu.jia@windriver.com> -Date: Mon, 6 Aug 2018 17:18:27 +0800 -Subject: [PATCH] remove dmraid dependency check - -OE does not support dmraid, remove it from dependency check - -Upstream-Status: Inappropriate [oe specific] - -Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> ---- - blivet/tasks/availability.py | 3 +-- - 1 file changed, 1 insertion(+), 2 deletions(-) - -diff --git a/blivet/tasks/availability.py b/blivet/tasks/availability.py -index 9a87cfd..843cf6a 100644 ---- a/blivet/tasks/availability.py -+++ b/blivet/tasks/availability.py -@@ -316,8 +316,7 @@ BLOCKDEV_DM_ALL_MODES = (blockdev.DMTechMode.CREATE_ACTIVATE | - blockdev.DMTechMode.QUERY) - BLOCKDEV_DM = BlockDevTechInfo(plugin_name="dm", - check_fn=blockdev.dm_is_tech_avail, -- technologies={blockdev.DMTech.MAP: BLOCKDEV_DM_ALL_MODES, -- blockdev.DMTech.RAID: BLOCKDEV_DM_ALL_MODES}) -+ technologies={blockdev.DMTech.MAP: BLOCKDEV_DM_ALL_MODES}) - BLOCKDEV_DM_TECH = BlockDevMethod(BLOCKDEV_DM) - - # libblockdev loop plugin required technologies and modes --- -2.7.4 - diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0013-add-Z-y-and-y-to-lvm.pvcreate.patch b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0013-add-Z-y-and-y-to-lvm.pvcreate.patch deleted file mode 100644 index 33b5f51f..00000000 --- a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/0013-add-Z-y-and-y-to-lvm.pvcreate.patch +++ /dev/null @@ -1,41 +0,0 @@ -From bddbfa499df16b108f2d892ee48d65617523c33d Mon Sep 17 00:00:00 2001 -From: Hongxu Jia <hongxu.jia@windriver.com> -Date: Thu, 9 Aug 2018 11:00:39 +0800 -Subject: [PATCH] add `-Z y' and `-y' to lvm.pvcreate - -While reinstall a crypt fs, it occasionally failed -[snip] -|gi.overrides.BlockDev.LVMError: Process reported exit code 5: -WARNING: atari signature detected on /dev/mapper/luks-0e5f891c --7701-48bc-a41e-8d626b6ef953 at offset 466. Wipe it? [y/n]: -[snip] - -Add `-Z y' and `-y' to lvm.pvcreate - -Upstream-Status: Submitted [https://github.com/storaged-project/blivet/pull/714] - -Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> ---- - blivet/formats/lvmpv.py | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/blivet/formats/lvmpv.py b/blivet/formats/lvmpv.py -index 260cc0b..4bbb46f 100644 ---- a/blivet/formats/lvmpv.py -+++ b/blivet/formats/lvmpv.py -@@ -120,9 +120,9 @@ class LVMPhysicalVolume(DeviceFormat): - log_method_call(self, device=self.device, - type=self.type, status=self.status) - -- # Consider use of -Z|--zero -- # -f|--force or -y|--yes may be required -- blockdev.lvm.pvcreate(self.device, data_alignment=self.data_alignment) -+ ea_zero = blockdev.ExtraArg.new("-Z", "y") -+ ea_yes = blockdev.ExtraArg.new("-y", "") -+ blockdev.lvm.pvcreate(self.device, data_alignment=self.data_alignment, extra=[ea_zero, ea_yes]) - - def _destroy(self, **kwargs): - log_method_call(self, device=self.device, --- -2.7.4 - diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet_3.0.1.bb b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet_3.1.4.bb index 75f02f13..2b5b253b 100644 --- a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet_3.0.1.bb +++ b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet_3.1.4.bb @@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" S = "${WORKDIR}/git" B = "${S}" -SRCREV = "ddc24c71bad10208b11ea0c45853898fadd7030b" +SRCREV = "9b5ad2d5b5df159963e1c6c24523e1dfe1f71435" SRC_URI = "git://github.com/rhinstaller/blivet;branch=3.1-release \ file://0001-comment-out-selinux.patch \ file://0002-run_program-support-timeout.patch \ @@ -21,18 +21,16 @@ SRC_URI = "git://github.com/rhinstaller/blivet;branch=3.1-release \ file://0009-invoking-fsck-with-infinite-timeout.patch \ file://0010-invoking-mkfs-with-infinite-timeout.patch \ file://0011-invoking-dd-with-infinite-timeout.patch \ - file://0012-remove-dmraid-dependency-check.patch \ - file://0013-add-Z-y-and-y-to-lvm.pvcreate.patch \ " UPSTREAM_CHECK_GITTAGREGEX = "blivet-(?P<pver>\d+(\.\d+)+)$" -inherit distro_features_check +inherit features_check REQUIRED_DISTRO_FEATURES = "systemd" inherit setuptools3 python3native -RDEPENDS_${PN} = "python3-pykickstart python3-pyudev \ +RDEPENDS_${PN} += "python3-pykickstart python3-pyudev \ parted python3-pyparted multipath-tools \ lsof cryptsetup libblockdev \ libbytesize \ diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivetgui/0001-Fix-return-type-of-BlivetUtils.get_disks-1658893.patch b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivetgui/0001-Fix-return-type-of-BlivetUtils.get_disks-1658893.patch new file mode 100644 index 00000000..cf805668 --- /dev/null +++ b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivetgui/0001-Fix-return-type-of-BlivetUtils.get_disks-1658893.patch @@ -0,0 +1,32 @@ +From 4d0f9f961704bc1dd83fdf6808fb6ab91dc6a768 Mon Sep 17 00:00:00 2001 +From: Vojtech Trefny <vtrefny@redhat.com> +Date: Thu, 13 Dec 2018 13:39:03 +0100 +Subject: [PATCH] Fix return type of BlivetUtils.get_disks (#1658893) + +This must be a list, not a generator, because we are iterating +over it multiple times in some cases. + +Upstream-Status: Backport[git://github.com/rhinstaller/blivet-gui] + +Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> + +--- + blivetgui/blivet_utils.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/blivetgui/blivet_utils.py b/blivetgui/blivet_utils.py +index e2bd802..ddb04fc 100644 +--- a/blivetgui/blivet_utils.py ++++ b/blivetgui/blivet_utils.py +@@ -204,7 +204,7 @@ class BlivetUtils(object): + + """ + +- return (device for device in self.storage.disks if device.type != "mdarray") ++ return [device for device in self.storage.disks if device.type != "mdarray"] + + def get_group_devices(self): + """ Return list of LVM2 Volume Group devices +-- +2.7.4 + diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivetgui/0001-Set-_supported_filesystems-in-BlivetGUIAnaconda-init.patch b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivetgui/0001-Set-_supported_filesystems-in-BlivetGUIAnaconda-init.patch deleted file mode 100644 index 25a71d4a..00000000 --- a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivetgui/0001-Set-_supported_filesystems-in-BlivetGUIAnaconda-init.patch +++ /dev/null @@ -1,39 +0,0 @@ -From a7b76f783608033e449ba1e33d040c2b40c01a4d Mon Sep 17 00:00:00 2001 -From: Adam Williamson <awilliam@redhat.com> -Date: Wed, 17 Jan 2018 10:38:18 -0800 -Subject: [PATCH] Set _supported_filesystems in BlivetGUIAnaconda init - -BlivetGUIAnaconda subclasses BlivetGUI, but doesn't call the -parent class's __init__. c4b6e174 added supported_filesystems -to BlivetGUI and set _supported_filesystems for caching during -__init__, but this was not also added to BlivetGUIAnaconda, so -when anything tries to use the supported_filesystems property -of a BlivetGUIAnaconda instance, it will crash. This is causing -all attempts to use blivet-gui in anaconda to crash since 2.1.8 -landed in Rawhide. - -Upstream-Status: Backport [https://github.com/storaged-project/blivet-gui] - -Signed-off-by: Adam Williamson <awilliam@redhat.com> -Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> ---- - blivetgui/osinstall.py | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/blivetgui/osinstall.py b/blivetgui/osinstall.py -index 21806ca..32ff66b 100644 ---- a/blivetgui/osinstall.py -+++ b/blivetgui/osinstall.py -@@ -94,6 +94,9 @@ class BlivetGUIAnaconda(BlivetGUI): - self.builder.set_translation_domain("blivet-gui") - self.builder.add_from_file(locate_ui_file("blivet-gui.ui")) - -+ # supported filesystems -+ self._supported_filesystems = [] -+ - # CSS styles - css_provider = Gtk.CssProvider() - css_provider.load_from_path(locate_css_file("rectangle.css")) --- -2.20.1 - diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivetgui_2.1.8.bb b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivetgui_2.1.10.bb index 5f62b9e5..92402bee 100644 --- a/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivetgui_2.1.8.bb +++ b/external/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivetgui_2.1.10.bb @@ -8,12 +8,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" S = "${WORKDIR}/git" B = "${S}" -SRCREV = "a4fd427ee2acc5a8f5fb030bf7816917cee63bd8" +SRCREV = "67ec0b7a0e065ba24ab87963409bfb21b2aac6dd" SRC_URI = "git://github.com/rhinstaller/blivet-gui;branch=master \ - file://0001-Set-_supported_filesystems-in-BlivetGUIAnaconda-init.patch \ + file://0001-Fix-return-type-of-BlivetUtils.get_disks-1658893.patch \ " -inherit distro_features_check +inherit features_check REQUIRED_DISTRO_FEATURES = "x11 systemd" inherit setuptools3 python3native diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-cson/python-cson_git.bb b/external/meta-openembedded/meta-python/recipes-extended/python-cson/python3-cson_git.bb index efb338cf..5c74c7a3 100644 --- a/external/meta-openembedded/meta-python/recipes-extended/python-cson/python-cson_git.bb +++ b/external/meta-openembedded/meta-python/recipes-extended/python-cson/python3-cson_git.bb @@ -15,7 +15,7 @@ S = "${WORKDIR}/git" RDEPENDS_${PN}_class-native = "" DEPENDS_append_class-native = " python-native " -inherit setuptools +inherit setuptools3 BBCLASSEXTEND = "native" diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-meh/python3-meh_0.47.bb b/external/meta-openembedded/meta-python/recipes-extended/python-meh/python3-meh_0.48.bb index 95d6d183..9ca7a56b 100644 --- a/external/meta-openembedded/meta-python/recipes-extended/python-meh/python3-meh_0.47.bb +++ b/external/meta-openembedded/meta-python/recipes-extended/python-meh/python3-meh_0.48.bb @@ -10,7 +10,7 @@ S = "${WORKDIR}/git" SRC_URI = "git://github.com/rhinstaller/python-meh.git;protocol=https;branch=master \ " -SRCREV = "78d868d99104317ce8820f39f61d207566e61a55" +SRCREV = "760f78a634ecf0e2380abcbd751bc233d29300ef" LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" FILES_${PN} += "${datadir}/*" diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-pyephem/python-pyephem_3.7.6.0.bb b/external/meta-openembedded/meta-python/recipes-extended/python-pyephem/python3-pyephem_3.7.7.0.bb index e28ce6cc..38b3c0a4 100644 --- a/external/meta-openembedded/meta-python/recipes-extended/python-pyephem/python-pyephem_3.7.6.0.bb +++ b/external/meta-openembedded/meta-python/recipes-extended/python-pyephem/python3-pyephem_3.7.7.0.bb @@ -4,12 +4,12 @@ HOMEPAGE = "http://rhodesmill.org/pyephem/" LICENSE = "LGPL-3.0" LIC_FILES_CHKSUM = "file://COPYING;md5=f288303760f6e5ceaafe3aaa32186ab1" -SRC_URI[md5sum] = "405a109f3017251ecd8c2890d850f649" -SRC_URI[sha256sum] = "7a4c82b1def2893e02aec0394f108d24adb17bd7b0ca6f4bc78eb7120c0212ac" +SRC_URI[md5sum] = "46c035b4a903ff26e0d8ad0f1fe6cc35" +SRC_URI[sha256sum] = "607148429f85412915e32265779c0cf6d09f73aa97cf1ff0d101ac22c69c4436" PYPI_PACKAGE = "ephem" -inherit pypi setuptools +inherit pypi setuptools3 RDEPENDS_${PN} += "\ ${PYTHON_PN}-datetime \ diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-pykickstart/files/0003-comment-out-sections-shutdown-and-environment-in-gen.patch b/external/meta-openembedded/meta-python/recipes-extended/python-pykickstart/files/0003-comment-out-sections-shutdown-and-environment-in-gen.patch index 81e351b1..7ab73468 100644 --- a/external/meta-openembedded/meta-python/recipes-extended/python-pykickstart/files/0003-comment-out-sections-shutdown-and-environment-in-gen.patch +++ b/external/meta-openembedded/meta-python/recipes-extended/python-pykickstart/files/0003-comment-out-sections-shutdown-and-environment-in-gen.patch @@ -17,7 +17,7 @@ fixup! add comments of shutdown for user 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pykickstart/commands/reboot.py b/pykickstart/commands/reboot.py -index 2c1b1c0..b3ec717 100644 +index 75a6d916..edfe83ff 100644 --- a/pykickstart/commands/reboot.py +++ b/pykickstart/commands/reboot.py @@ -43,6 +43,9 @@ class FC3_Reboot(KickstartCommand): @@ -31,18 +31,18 @@ index 2c1b1c0..b3ec717 100644 return retval diff --git a/pykickstart/parser.py b/pykickstart/parser.py -index e68174d..efd78a6 100644 +index bc59131b..b2d09d45 100644 --- a/pykickstart/parser.py +++ b/pykickstart/parser.py -@@ -385,7 +385,7 @@ class Packages(KickstartObject): +@@ -428,7 +428,7 @@ class Packages(KickstartObject): if not self.default: if self.environment: - pkgs += "@^%s\n" % self.environment + pkgs += "#@^%s\n" % self.environment - grps = self.groupList - grps.sort() + grps = self.groupList + grps.sort() -- 2.7.4 diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.15.bb b/external/meta-openembedded/meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.22.bb index 07876a98..041abd3e 100644 --- a/external/meta-openembedded/meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.15.bb +++ b/external/meta-openembedded/meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.22.bb @@ -18,7 +18,7 @@ SRC_URI = "git://github.com/rhinstaller/pykickstart.git;protocol=https;branch=ma file://0003-comment-out-sections-shutdown-and-environment-in-gen.patch \ file://0004-load.py-retry-to-invoke-request-with-timeout.patch \ " -SRCREV = "07c4d89129fa6b460acc86daf58eb5ff64cdc832" +SRCREV = "674c17b1e231f56a0d8a5ced4a204cdbc4c1edf3" UPSTREAM_CHECK_GITTAGREGEX = "r(?P<pver>\d+(\.\d+)+(-\d+)*)" diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-pyparted/python-pyparted.inc b/external/meta-openembedded/meta-python/recipes-extended/python-pyparted/python-pyparted.inc index a0ec0281..97054487 100644 --- a/external/meta-openembedded/meta-python/recipes-extended/python-pyparted/python-pyparted.inc +++ b/external/meta-openembedded/meta-python/recipes-extended/python-pyparted/python-pyparted.inc @@ -11,7 +11,7 @@ LIC_FILES_CHKSUM = "\ DEPENDS += "parted" # upstream only publishes releases in github archives which are discouraged -SRCREV = "1fdb15120f35f5da1dc7ec116522f0c796a8376a" +SRCREV = "481510c10866851844b19f3d2ffcdaa37efc0cf8" SRC_URI = "git://github.com/rhinstaller/pyparted.git;protocol=https" S = "${WORKDIR}/git" diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-pyparted/python-pyparted_3.11.1.bb b/external/meta-openembedded/meta-python/recipes-extended/python-pyparted/python-pyparted_3.11.1.bb deleted file mode 100644 index 32aa378c..00000000 --- a/external/meta-openembedded/meta-python/recipes-extended/python-pyparted/python-pyparted_3.11.1.bb +++ /dev/null @@ -1,8 +0,0 @@ -require python-pyparted.inc - -inherit distutils - -RDEPENDS_${PN} += "python-stringold python-codecs python-math python-subprocess" -RDEPENDS_${PN}_class-native = "" - -BBCLASSEXTEND = "native" diff --git a/external/meta-openembedded/meta-python/recipes-extended/python-pyparted/python3-pyparted_3.11.1.bb b/external/meta-openembedded/meta-python/recipes-extended/python-pyparted/python3-pyparted_3.11.3.bb index d83901ff..d83901ff 100644 --- a/external/meta-openembedded/meta-python/recipes-extended/python-pyparted/python3-pyparted_3.11.1.bb +++ b/external/meta-openembedded/meta-python/recipes-extended/python-pyparted/python3-pyparted_3.11.3.bb diff --git a/external/meta-openembedded/meta-python/recipes-extended/pywbem/python-pywbem.inc b/external/meta-openembedded/meta-python/recipes-extended/pywbem/python-pywbem.inc index 5151c33e..98508b0c 100644 --- a/external/meta-openembedded/meta-python/recipes-extended/pywbem/python-pywbem.inc +++ b/external/meta-openembedded/meta-python/recipes-extended/pywbem/python-pywbem.inc @@ -14,12 +14,15 @@ It also provides a Python provider interface, and is the fastest and easiest \ way to write providers on the planet." HOMEPAGE = "http://pywbem.github.io" LICENSE = "LGPLv2.1" -LIC_FILES_CHKSUM = "file://pywbem/LICENSE.txt;md5=fbc093901857fcd118f065f900982c24" -SRC_URI[md5sum] = "1465dfa92e4cbe558c773838b9b00711" -SRC_URI[sha256sum] = "2a05f2c1a6ab4b08560a6da55fdaabd0f52f4d1e6df6e288b9ed927bf5c289ed" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=fbc093901857fcd118f065f900982c24" inherit pypi +SRCREV = "b3386b3bee8876d15f0745147c0b08937d8ab18e" +PYPI_SRC_URI = "git://github.com/pywbem/pywbem;protocol=https;branch=stable_0.15" + +S = "${WORKDIR}/git" + DEPENDS += " \ ${PYTHON_PN}-ply-native \ ${PYTHON_PN}-pyyaml-native \ diff --git a/external/meta-openembedded/meta-python/recipes-extended/pywbem/python-pywbem_0.11.0.bb b/external/meta-openembedded/meta-python/recipes-extended/pywbem/python-pywbem_0.11.0.bb deleted file mode 100644 index 74107490..00000000 --- a/external/meta-openembedded/meta-python/recipes-extended/pywbem/python-pywbem_0.11.0.bb +++ /dev/null @@ -1,13 +0,0 @@ -require python-pywbem.inc -inherit setuptools - -DEPENDS += " \ - ${PYTHON_PN}-m2crypto-native \ - ${PYTHON_PN}-typing-native \ -" - -RDEPENDS_${PN}_class-target += "\ - ${PYTHON_PN}-argparse \ - ${PYTHON_PN}-m2crypto \ - ${PYTHON_PN}-subprocess \ -" diff --git a/external/meta-openembedded/meta-python/recipes-extended/pywbem/python3-pywbem_0.11.0.bb b/external/meta-openembedded/meta-python/recipes-extended/pywbem/python3-pywbem_0.11.0.bb deleted file mode 100644 index 6a35a874..00000000 --- a/external/meta-openembedded/meta-python/recipes-extended/pywbem/python3-pywbem_0.11.0.bb +++ /dev/null @@ -1,2 +0,0 @@ -require python-pywbem.inc -inherit setuptools3 diff --git a/external/meta-openembedded/meta-python/recipes-extended/pywbem/python3-pywbem_0.15.0.bb b/external/meta-openembedded/meta-python/recipes-extended/pywbem/python3-pywbem_0.15.0.bb new file mode 100644 index 00000000..abfb8d92 --- /dev/null +++ b/external/meta-openembedded/meta-python/recipes-extended/pywbem/python3-pywbem_0.15.0.bb @@ -0,0 +1,9 @@ +require python-pywbem.inc +inherit setuptools3 update-alternatives + +ALTERNATIVE_${PN} = "mof_compiler pywbemcli wbemcli" +ALTERNATIVE_TARGET[mof_compiler] = "${bindir}/mof_compiler" +ALTERNATIVE_TARGET[pywbemcli] = "${bindir}/pywbemcli" +ALTERNATIVE_TARGET[wbemcli] = "${bindir}/wbemcli" + +ALTERNATIVE_PRIORITY = "60" |