[neon/backports-noble/packagekit-noble/Neon/release] debian: workaround msvc compile error and --buildtype=debugoptimized
Carlos De Maine
null at kde.org
Sat Sep 26 06:59:59 BST 2026
Git commit 0aca1e6cf46d6e3eb102ede314eb6863fb583ff9 by Carlos De Maine.
Committed on 26/09/2026 at 05:59.
Pushed by carlosdem into branch 'Neon/release'.
workaround msvc compile error and --buildtype=debugoptimized
M +6 -1 debian/rules
https://invent.kde.org/neon/backports-noble/packagekit-noble/-/commit/0aca1e6cf46d6e3eb102ede314eb6863fb583ff9
diff --git a/debian/rules b/debian/rules
index 9ed66c9..78ee214 100755
--- a/debian/rules
+++ b/debian/rules
@@ -40,8 +40,13 @@ extrainstallfiles-stamp:
touch $@
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
cp -dpr $(CURDIR)/docs/api $(CURDIR)/docs/api.orig
- dh_auto_configure -- $(PK_CONFIGURE_FLAGS)
+ dh_auto_configure -- $(PK_CONFIGURE_FLAGS) --buildtype=debugoptimized
override_dh_auto_install:
dh_auto_install --destdir=$(INSTALLDIR)
More information about the Neon-commits
mailing list