diff -Nru cargo-0.33.0/debian/changelog cargo-0.33.0/debian/changelog --- cargo-0.33.0/debian/changelog 2019-02-06 04:52:47.000000000 +0000 +++ cargo-0.33.0/debian/changelog 2019-03-02 11:51:21.000000000 +0000 @@ -1,3 +1,9 @@ +cargo (0.33.0-1+rpi1) buster-staging; urgency=medium + + * Add workaround for apparently miscalculated logarithms. + + -- Peter Michael Green Sat, 02 Mar 2019 11:51:21 +0000 + cargo (0.33.0-1) unstable; urgency=medium * New upstream release. 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-03-02 11:51:21.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-02-06 04:13:45.000000000 +0000 +++ cargo-0.33.0/debian/patches/series 2019-03-02 11:51:21.000000000 +0000 @@ -1,3 +1,4 @@ 1003_increase_timeout_for_slow_arches_like_mips.patch 2002_disable-net-tests.patch 2005_disable_fetch_cross_tests.patch +logarithm-workaround.patch