From 4e6dd6fa56dbb64b667787c68b821e90a1d4148d Mon Sep 17 00:00:00 2001 From: workingwei Date: Fri, 14 Nov 2025 14:40:39 +0800 Subject: [PATCH] lvmdbusd fix python script --- 0041-lvmdbusd-fix-Python-script.patch | 27 +++++++++++++++++++++++++++ lvm2.spec | 6 +++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 0041-lvmdbusd-fix-Python-script.patch diff --git a/0041-lvmdbusd-fix-Python-script.patch b/0041-lvmdbusd-fix-Python-script.patch new file mode 100644 index 0000000..b1b3aab --- /dev/null +++ b/0041-lvmdbusd-fix-Python-script.patch @@ -0,0 +1,27 @@ +From 493d8908fbd859d744941731bda83682817c2e51 Mon Sep 17 00:00:00 2001 +From: Tobias Stoeckmann +Date: Fri, 13 Sep 2024 18:35:18 +0200 +Subject: [PATCH] lvmdbusd: Fix Python script + +The thread does not contain field "damon" but "daemon". + +Actually found with codespell. + +Signed-off-by: Tobias Stoeckmann +--- + daemons/lvmdbusd/main.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/daemons/lvmdbusd/main.py b/daemons/lvmdbusd/main.py +index c9821e07e..b8238df47 100644 +--- a/daemons/lvmdbusd/main.py ++++ b/daemons/lvmdbusd/main.py +@@ -172,7 +172,7 @@ def main(): + cfg.loop = GLib.MainLoop() + + for thread in thread_list: +- thread.damon = True ++ thread.daemon = True + thread.start() + + # Add udev watching diff --git a/lvm2.spec b/lvm2.spec index bf7c4af..2f0deb9 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -43,7 +43,7 @@ Name: lvm2 Version: 2.03.14 -Release: 22 +Release: 23 Epoch: 8 Summary: Tools for logical volume management License: GPLv2+ and LGPLv2.1 and BSD @@ -89,6 +89,7 @@ Patch37: 0037-fix-pv_major-and-pv_minor-report-field-type.patch Patch38: 0038-fix-buffer-size-usage.patch Patch39: 0039-add-internal-error-for-missing-vg.patch Patch40: 0040-enhance-pointer-safe.patch +Patch41: 0041-lvmdbusd-fix-Python-script.patch BuildRequires: gcc BuildRequires: gcc-c++ @@ -515,6 +516,9 @@ fi %changelog +* Fri Nov 14 2025 weishuaihao - 8:2.03.14-23 +- lvmdbusd: Fix Python script + * Thu Nov 13 2025 weishuaihao - 8:2.03.14-22 - enhance pointer safe -- Gitee