Bug#1023942: kglobalaccel FTCBFS: building tests fails
Source: kglobalaccel
Version: 5.98.0-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs
kglobalaccel fails to cross build from source, because building tests
fails. However, cross builds are performed with the nocheck option, so
they should not be building tests. I'm attaching a patch to disable
building tests for nocheck builds for your convenience. With this patch,
it cross builds successfully.
Helmut
diff --minimal -Nru kglobalaccel-5.98.0/debian/changelog kglobalaccel-5.98.0/debian/changelog
--- kglobalaccel-5.98.0/debian/changelog 2022-09-18 23:11:44.000000000 +0200
+++ kglobalaccel-5.98.0/debian/changelog 2022-11-12 19:49:39.000000000 +0100
@@ -1,3 +1,10 @@
+kglobalaccel (5.98.0-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Disable tests during nocheck. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de> Sat, 12 Nov 2022 19:49:39 +0100
+
kglobalaccel (5.98.0-1) unstable; urgency=medium
[ Aurélien COUDERC ]
diff --minimal -Nru kglobalaccel-5.98.0/debian/rules kglobalaccel-5.98.0/debian/rules
--- kglobalaccel-5.98.0/debian/rules 2022-07-28 00:29:58.000000000 +0200
+++ kglobalaccel-5.98.0/debian/rules 2022-11-12 19:49:39.000000000 +0100
@@ -7,7 +7,7 @@
dh $@ --with pkgkde_symbolshelper
override_dh_auto_configure:
- dh_auto_configure -- -DBUILD_QCH=ON
+ dh_auto_configure -- -DBUILD_QCH=ON $(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),-DBUILD_TESTING=OFF)
override_dh_shlibdeps:
dh_shlibdeps -- -xlibkf5globalaccel-bin
Reply to: