diff -Nru cargo-0.33.0/debian/changelog cargo-0.33.0/debian/changelog --- cargo-0.33.0/debian/changelog 2019-05-19 03:22:22.000000000 +0000 +++ cargo-0.33.0/debian/changelog 2019-06-06 16:18:44.000000000 +0000 @@ -1,3 +1,14 @@ +cargo (0.33.0-3+rpi1) buster-staging; urgency=medium + + [changes brought forward from 0.33.0-1+rpi1 by Peter Michael Green at Sat, 02 Mar 2019 11:51:21 +0000] + * Add workaround for apparently miscalculated logarithms in typenum. + + [changes introduced in 0.33.0-3+rpi1 by Peter Michael Green] + * Revert 1001_typenum_pr_115.patch , it conflicts with our typenum patch. + * Disable testsuite. + + -- Peter Micheal Green Thu, 06 Jun 2019 16:18:44 +0000 + cargo (0.33.0-3) unstable; urgency=medium * Drop patch to capture rustc error output, it is unnecessary. diff -Nru cargo-0.33.0/debian/patches/logarithm-workaround.patch cargo-0.33.0/debian/patches/logarithm-workaround.patch --- cargo-0.33.0/debian/patches/logarithm-workaround.patch 1970-01-01 00:00:00.000000000 +0000 +++ cargo-0.33.0/debian/patches/logarithm-workaround.patch 2019-06-06 16:18:44.000000000 +0000 @@ -0,0 +1,29 @@ +Description: Add workaround for apparently miscalculated logarithms. +Author: Peter Michael Green + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Origin: , +Bug: +Bug-Debian: https://bugs.debian.org/ +Bug-Ubuntu: https://launchpad.net/bugs/ +Forwarded: +Reviewed-By: +Last-Update: 2019-03-02 + +--- cargo-0.33.0.orig/vendor/typenum/build/main.rs ++++ cargo-0.33.0/vendor/typenum/build/main.rs +@@ -77,8 +77,8 @@ pub fn no_std() {} + fn main() { + let highest: u64 = 1024; + +- let first2: u32 = (highest as f64).log(2.0) as u32 + 1; +- let first10: u32 = (highest as f64).log(10.0) as u32 + 1; ++ let first2: u32 = 11;//(highest as f64).log(2.0) as u32 + 1; ++ let first10: u32 = 4;//(highest as f64).log(10.0) as u32 + 1; + let uints = (0..(highest + 1)) + .chain((first2..64).map(|i| 2u64.pow(i))) + .chain((first10..20).map(|i| 10u64.pow(i))); diff -Nru cargo-0.33.0/debian/patches/series cargo-0.33.0/debian/patches/series --- cargo-0.33.0/debian/patches/series 2019-05-19 01:39:11.000000000 +0000 +++ cargo-0.33.0/debian/patches/series 2019-06-06 16:18:44.000000000 +0000 @@ -1,4 +1,5 @@ -1001_typenum_pr_115.patch +#1001_typenum_pr_115.patch 1003_increase_timeout_for_slow_arches_like_mips.patch 2002_disable-net-tests.patch 2005_disable_fetch_cross_tests.patch +logarithm-workaround.patch diff -Nru cargo-0.33.0/debian/rules cargo-0.33.0/debian/rules --- cargo-0.33.0/debian/rules 2019-05-19 02:07:23.000000000 +0000 +++ cargo-0.33.0/debian/rules 2019-06-06 16:18:44.000000000 +0000 @@ -38,7 +38,7 @@ $(CARGO) doc override_dh_auto_test-arch: - CFG_DISABLE_CROSS_TESTS=1 $(CARGO) test $(CARGO_TEST_FLAGS) + # CFG_DISABLE_CROSS_TESTS=1 $(CARGO) test $(CARGO_TEST_FLAGS) override_dh_auto_test-indep: # no arch-indep tests