From 4752b01cc0ddf7e447b23fbc71f201d4fb2c49d6 Mon Sep 17 00:00:00 2001 From: zilidang Date: Sun, 27 Jul 2025 15:59:07 +0800 Subject: [PATCH 1/2] fix: msvccompiler module not found --- 0005-fix-msvccompiler-module-not-found.patch | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 0005-fix-msvccompiler-module-not-found.patch diff --git a/0005-fix-msvccompiler-module-not-found.patch b/0005-fix-msvccompiler-module-not-found.patch new file mode 100644 index 0000000..d606d60 --- /dev/null +++ b/0005-fix-msvccompiler-module-not-found.patch @@ -0,0 +1,23 @@ +diff --git a/usr/lib64/gobject-introspection/giscanner/ccompiler.py b/usr/lib64/gobject-introspection/giscanner/ccompiler.py +index 0000000..1111111 100644 +--- a/usr/lib64/gobject-introspection/giscanner/ccompiler.py ++++ b/usr/lib64/gobject-introspection/giscanner/ccompiler.py +@@ -1,6 +1,12 @@ +- from distutils.msvccompiler import MSVCCompiler ++try: ++ from distutils.msvccompiler import MSVCCompiler ++except ModuleNotFoundError: ++ MSVCCompiler = None + +@@ -7,9 +13,17 @@ +-try: +- from distutils.msvccompiler import MSVCCompiler +-except ModuleNotFoundError: +- MSVCCompiler = None ++try: ++ from distutils.msvccompiler import MSVCCompiler ++except ModuleNotFoundError: ++ class DummyMSVCCompiler: ++ pass ++ MSVCCompiler = DummyMSVCCompiler + -- Gitee From 825737f7a47b895b3b99e64a5fdeb70691ede896 Mon Sep 17 00:00:00 2001 From: zilidang Date: Sun, 27 Jul 2025 16:16:54 +0800 Subject: [PATCH 2/2] fix: msvccompiler module not found --- udisks2.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/udisks2.spec b/udisks2.spec index 048f389..794776a 100644 --- a/udisks2.spec +++ b/udisks2.spec @@ -19,7 +19,7 @@ Name: udisks2 Summary: Disk Manager Version: 2.10.1 -Release: 5 +Release: 6 License: GPL-2.0+ and LGPL-2.0+ Group: System Environment/Libraries URL: https://github.com/storaged-project/udisks @@ -319,6 +319,9 @@ fi %changelog +*Fri Jul 25 2025 Zili Dang -2.10.1-6 +- fix :msvccompiler module not found + * Mon Jun 23 2025 zhangjian - 2.10.1-5 - fix CVE-2025-6019 -- Gitee