Bug#973982: xeus FTBFS with the nocheck build profile
Helmut Grohne
helmut at subdivi.de
Sat Nov 7 15:36:28 GMT 2020
Source: xeus
Version: 0.24.2-2
Tags: ftbfs patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs
xeus fails to build from source when built with the nocheck build
profile, because doing so disables the googletest dependency, but
passing GTEST_SRC_DIR still enables building tests, which fails due to
the deactivated dependency. This happens to also break cross builds.
Please consider applying the attached patch.
Helmut
-------------- next part --------------
diff --minimal -Nru xeus-0.24.2/debian/changelog xeus-0.24.2/debian/changelog
--- xeus-0.24.2/debian/changelog 2020-10-29 21:21:39.000000000 +0100
+++ xeus-0.24.2/debian/changelog 2020-11-07 12:49:39.000000000 +0100
@@ -1,3 +1,10 @@
+xeus (0.24.2-2.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTBFS with nocheck profile. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de> Sat, 07 Nov 2020 12:49:39 +0100
+
xeus (0.24.2-2) unstable; urgency=medium
* Source-only upload
diff --minimal -Nru xeus-0.24.2/debian/rules xeus-0.24.2/debian/rules
--- xeus-0.24.2/debian/rules 2020-10-29 21:21:39.000000000 +0100
+++ xeus-0.24.2/debian/rules 2020-11-07 12:49:39.000000000 +0100
@@ -3,5 +3,10 @@
%:
dh $@
+CMAKE_FLAGS = -DXEUS_DISABLE_ARCH_NATIVE=1
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+CMAKE_FLAGS += -DGTEST_SRC_DIR=/usr/src/googletest
+endif
+
override_dh_auto_configure:
- dh_auto_configure -- -DXEUS_DISABLE_ARCH_NATIVE=1 -DGTEST_SRC_DIR=/usr/src/googletest
+ dh_auto_configure -- $(CMAKE_FLAGS)
More information about the debian-science-maintainers
mailing list