Source: flex-old
Version: 2.5.4a-10
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

flex-old 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 makes flex-old cross buildable.
Please consider applying it.

Helmut
diff -u flex-old-2.5.4a/debian/rules flex-old-2.5.4a/debian/rules
--- flex-old-2.5.4a/debian/rules
+++ flex-old-2.5.4a/debian/rules
@@ -37,7 +37,9 @@
 
        $(MAKE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
        $(MAKE) -C po
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
        $(MAKE) check
+endif
        touch $@
 
 build-indep: build-indep-stamp
diff -u flex-old-2.5.4a/debian/changelog flex-old-2.5.4a/debian/changelog
--- flex-old-2.5.4a/debian/changelog
+++ flex-old-2.5.4a/debian/changelog
@@ -1,3 +1,10 @@
+flex-old (2.5.4a-10.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Support DEB_BUILD_OPTIONS=nocheck. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 19 May 2019 11:46:37 +0200
+
 flex-old (2.5.4a-10) unstable; urgency=low
 
   * FTBFS: The buildd's still do not respect Build-Depends-Indep.

Reply via email to