Source: rust-ripgrep Version: 0.9.0-3 Tags: patch User: helm...@debian.org Usertags: rebootstrap
rust-ripgrep fails to cross build from source, because it runs tests even though being told not to do so via DEB_BUILD_OPTIONS=nocheck and it fails doing so. The attached patch fixes the problem and makes rust-ripgrep cross build successfully. Please consider applying it. Helmut
diff --minimal -Nru rust-ripgrep-0.9.0/debian/changelog rust-ripgrep-0.9.0/debian/changelog --- rust-ripgrep-0.9.0/debian/changelog 2018-08-14 23:19:13.000000000 +0200 +++ rust-ripgrep-0.9.0/debian/changelog 2018-09-01 08:58:00.000000000 +0200 @@ -1,3 +1,10 @@ +rust-ripgrep (0.9.0-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Support DEB_BUILD_OPTIONS=nocheck. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sat, 01 Sep 2018 08:58:00 +0200 + rust-ripgrep (0.9.0-3) unstable; urgency=medium * Run tests at build phase diff --minimal -Nru rust-ripgrep-0.9.0/debian/rules rust-ripgrep-0.9.0/debian/rules --- rust-ripgrep-0.9.0/debian/rules 2018-08-14 23:19:13.000000000 +0200 +++ rust-ripgrep-0.9.0/debian/rules 2018-09-01 08:57:58.000000000 +0200 @@ -4,6 +4,7 @@ dh $@ --buildsystem cargo --with bash-completion override_dh_auto_test: +ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),) CARGO_HOME=debian/cargo_home cargo test --verbose --verbose --target $(DEB_HOST_RUST_TYPE) -Zavoid-dev-deps dh_auto_test - +endif