[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#916229: poxml FTCBFS: fails running tests despite DEB_BUILD_OPTIONS=nocheck



Source: poxml
Version: 4:17.08.3-1
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap

poxml fails to cross build from source, because it fails running tests
in the presence of DEB_BUILD_OPTIONS=nocheck. The attached patch adds
support for the nocheck option and thus fixes a cross build. Please
consider applying it.

Helmut
diff --minimal -Nru poxml-17.08.3/debian/changelog poxml-17.08.3/debian/changelog
--- poxml-17.08.3/debian/changelog	2017-11-19 12:54:00.000000000 +0100
+++ poxml-17.08.3/debian/changelog	2018-12-11 07:21:39.000000000 +0100
@@ -1,3 +1,10 @@
+poxml (4:17.08.3-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Support DEB_BUILD_OPTIONS=nocheck. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Tue, 11 Dec 2018 07:21:39 +0100
+
 poxml (4:17.08.3-1) unstable; urgency=medium
 
   * Team upload.
diff --minimal -Nru poxml-17.08.3/debian/patches/nocheck.patch poxml-17.08.3/debian/patches/nocheck.patch
--- poxml-17.08.3/debian/patches/nocheck.patch	1970-01-01 01:00:00.000000000 +0100
+++ poxml-17.08.3/debian/patches/nocheck.patch	2018-12-11 07:15:30.000000000 +0100
@@ -0,0 +1,21 @@
+--- poxml-17.08.3.orig/CMakeLists.txt
++++ poxml-17.08.3/CMakeLists.txt
+@@ -2,6 +2,8 @@
+ 
+ cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
+ 
++option(ENABLE_TESTS "enable running tests during build" ON)
++
+ find_package(ECM 1.7.0 REQUIRED CONFIG)
+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
+ 
+@@ -82,7 +84,9 @@
+ 
+ 
+ 
++if(ENABLE_TESTS)
+ add_subdirectory(tests)
++endif()
+ 
+ 
+ feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
diff --minimal -Nru poxml-17.08.3/debian/patches/series poxml-17.08.3/debian/patches/series
--- poxml-17.08.3/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ poxml-17.08.3/debian/patches/series	2018-12-11 07:14:24.000000000 +0100
@@ -0,0 +1 @@
+nocheck.patch
diff --minimal -Nru poxml-17.08.3/debian/rules poxml-17.08.3/debian/rules
--- poxml-17.08.3/debian/rules	2017-11-19 12:50:22.000000000 +0100
+++ poxml-17.08.3/debian/rules	2018-12-11 07:21:37.000000000 +0100
@@ -4,3 +4,8 @@
 
 include /usr/share/pkg-kde-tools/qt-kde-team/3/debian-qt-kde.mk
 include /usr/share/pkg-kde-tools/qt-kde-team/2/l10n-packages.mk
+
+ifneq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+override_dh_auto_configure:
+	dh_auto_configure --buildsystem=kf5 -- -DENABLE_TESTS=OFF
+endif

Reply to: