diff --git a/0005-fix-msvccompiler-module-not-found.patch b/0005-fix-msvccompiler-module-not-found.patch new file mode 100644 index 0000000000000000000000000000000000000000..d606d60be4026bee29ae42ddacc9d3f4c0aebceb --- /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 + diff --git a/udisks2.spec b/udisks2.spec index 048f389a5be07b128402e364d47e9ae36a279c7a..794776a2be3b3bb9ce90805e9dc514ca13019d50 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