Source: opencpn
Version: 1:5.14.2+dfsg-1
Tags: patch
User: [email protected]
Usertags: ftcbfs

opencpn fails to cross build from source, because it fails running tests
despite DEB_BUILD_OPTIONS containing nocheck. As host code cannot be
run, there is no expectation of tests succeeding, but we actively need
to skip them to support cross builds. Please find a patch attached that
implements this. I've verified that a native nocheck build exactly
reproduces a full build (i.e. it does not break reproducibility).

Helmut
diff -Nru opencpn-5.14.2+dfsg/debian/changelog 
opencpn-5.14.2+dfsg/debian/changelog
--- opencpn-5.14.2+dfsg/debian/changelog        2026-09-25 10:19:49.000000000 
+0200
+++ opencpn-5.14.2+dfsg/debian/changelog        2026-10-26 11:58:18.000000000 
+0100
@@ -1,3 +1,10 @@
+opencpn (1:5.14.2+dfsg-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Honour DEB_BUILD_OPTIONS=nocheck. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Mon, 26 Oct 2026 11:58:18 +0100
+
 opencpn (1:5.14.2+dfsg-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru opencpn-5.14.2+dfsg/debian/rules opencpn-5.14.2+dfsg/debian/rules
--- opencpn-5.14.2+dfsg/debian/rules    2026-09-25 10:19:49.000000000 +0200
+++ opencpn-5.14.2+dfsg/debian/rules    2026-10-26 11:58:18.000000000 +0100
@@ -20,7 +20,8 @@
             -DOCPN_USE_NEWSERIAL=ON \
             -DOCPN_PLUGIN_CONTENTS_WARN=ON \
             -DOCPN_FORCE_GTK3=ON \
-            -DOCPN_DISTRO_BUILD=ON
+            -DOCPN_DISTRO_BUILD=ON \
+           -DOCPN_BUILD_TEST=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS) 
$(DEB_BUILD_PROFILES)),OFF,ON)
 
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))

Reply via email to