Source: re2c Version: 0.16-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
re2c fails to cross build from source, because it runs tests even when DEB_BUILD_OPTIONS=nocheck is passed to the build. During cross compilation, host architecture executables typically cannot be run and thus the test suite fails. Please consider applying the attached patch. Helmut
diff --minimal -Nru re2c-0.16/debian/changelog re2c-0.16/debian/changelog --- re2c-0.16/debian/changelog 2016-01-22 13:21:56.000000000 +0100 +++ re2c-0.16/debian/changelog 2016-11-05 07:10:52.000000000 +0100 @@ -1,3 +1,10 @@ +re2c (0.16-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Support DEB_BUILD_OPTIONS=nocheck. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sat, 05 Nov 2016 07:10:37 +0100 + re2c (0.16-1) unstable; urgency=medium * New upstream release: diff --minimal -Nru re2c-0.16/debian/rules re2c-0.16/debian/rules --- re2c-0.16/debian/rules 2016-01-22 13:02:15.000000000 +0100 +++ re2c-0.16/debian/rules 2016-11-05 07:10:36.000000000 +0100 @@ -12,6 +12,8 @@ override_dh_installchangelogs: dh_installchangelogs CHANGELOG +ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),) override_dh_auto_test: # ensure failed tests are visible in the buildlog $(MAKE) check || /bin/sh -c 'cat test-suite.log; false' +endif