[neon/backports-noble/modemmanager-noble/Neon/release] debian: work around silly mscv build error
Carlos De Maine
null at kde.org
Wed Sep 30 15:33:27 BST 2026
Git commit 87482fcb1c0eb4913a90ef982ec13ae6b01649e5 by Carlos De Maine.
Committed on 30/09/2026 at 14:33.
Pushed by carlosdem into branch 'Neon/release'.
work around silly mscv build error
M +6 -0 debian/rules
https://invent.kde.org/neon/backports-noble/modemmanager-noble/-/commit/87482fcb1c0eb4913a90ef982ec13ae6b01649e5
diff --git a/debian/rules b/debian/rules
index f406451..c1c14a0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,6 +19,12 @@ endif
override_dh_autoreconf:
override_dh_auto_configure:
+ @SETUPTOOLS_DISTUTILS=$$(python3 -c "import os, setuptools; print(os.path.join(os.path.dirname(setuptools.__file__), '_distutils'))" 2>/dev/null); \
+ if [ -d "$$SETUPTOOLS_DISTUTILS" ]; then \
+ echo "Injecting shim into setuptools vendored path: $$SETUPTOOLS_DISTUTILS"; \
+ echo "class MSVCCompiler: pass" > "$$SETUPTOOLS_DISTUTILS/msvccompiler.py"; \
+ fi
+
dh_auto_configure -- $(configure_flags) \
-Ddbus_policy_dir=/usr/share/dbus-1/system.d \
-Dpolkit=permissive \
More information about the Neon-commits
mailing list