From 5a930a4c50a6475439c88269d7e5150f07938a8b Mon Sep 17 00:00:00 2001 From: workingwei Date: Fri, 14 Nov 2025 14:48:35 +0800 Subject: [PATCH] lvmdbusd fix python script --- 0037-lvmdbusd-fix-Python-script.patch | 27 +++++++++++++++++++++++++++ lvm2.spec | 6 +++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 0037-lvmdbusd-fix-Python-script.patch diff --git a/0037-lvmdbusd-fix-Python-script.patch b/0037-lvmdbusd-fix-Python-script.patch new file mode 100644 index 0000000..b1b3aab --- /dev/null +++ b/0037-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 03abdc9..80851e2 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -43,7 +43,7 @@ Name: lvm2 Version: 2.03.09 -Release: 27 +Release: 28 Epoch: 8 Summary: Tools for logical volume management License: GPLv2+ and LGPLv2.1 and BSD @@ -85,6 +85,7 @@ Patch33: 0033-fix-pv_major-and-pv_minor-report-field-type.patch Patch34: 0034-fix-buffer-size-usage.patch Patch35: 0035-add-internal-error-for-missing-vg.patch Patch36: 0036-enhance-pointer-safe.patch +Patch37: 0037-lvmdbusd-fix-Python-script.patch BuildRequires: gcc BuildRequires: gcc-c++ @@ -510,6 +511,9 @@ fi %changelog +* Fri Nov 14 2025 weishuaihao - 8:2.03.09-28 +- lvmdbusd: Fix Python script + * Thu Nov 13 2025 weishuaihao - 8:2.03.09-27 - enhance pointer safe -- Gitee