Source: mtd-utils
Version: 1:2.1.1-1.1
Severity: important
Tags: patch ftbfs
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

mtd-utils fails to build from source in unstable when building with the
nocheck build profile. The profile drops the cmocka dependency, but
tests remain enabled so configure gives up. That also causes cross
builds to fail. Please consider applying the attached patch.

Helmut
diff --minimal -Nru mtd-utils-2.1.2/debian/changelog 
mtd-utils-2.1.2/debian/changelog
--- mtd-utils-2.1.2/debian/changelog    2020-09-08 20:52:53.000000000 +0200
+++ mtd-utils-2.1.2/debian/changelog    2020-09-23 15:12:05.000000000 +0200
@@ -1,3 +1,10 @@
+mtd-utils (1:2.1.2-0.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS with nocheck build profile. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Wed, 23 Sep 2020 15:12:05 +0200
+
 mtd-utils (1:2.1.2-0.1) unstable; urgency=medium
 
   [ Bastian Germann ]
diff --minimal -Nru mtd-utils-2.1.2/debian/rules mtd-utils-2.1.2/debian/rules
--- mtd-utils-2.1.2/debian/rules        2020-09-08 20:52:53.000000000 +0200
+++ mtd-utils-2.1.2/debian/rules        2020-09-23 15:12:05.000000000 +0200
@@ -2,8 +2,14 @@
 %:
        dh $@
 
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+CONFIGURE_ARGS = --enable-test --enable-unit-tests
+else
+CONFIGURE_ARGS = --disable-test --disable-unit-tests
+endif
+
 override_dh_auto_configure:
-       dh_auto_configure -- --enable-test --enable-unit-tests
+       dh_auto_configure -- $(CONFIGURE_ARGS)
 
 # tests are known to pass only on the listed architectures
 ifeq (,$(filter amd64 armel armhf arm64 i386 mipsel s390x 
x32,$(DEB_HOST_ARCH)))

Reply via email to