From ed4c23cf1461c95f9db1e92c93313b3c84c8f827 Mon Sep 17 00:00:00 2001 From: Vasudev Kamath Date: Sun, 15 Apr 2018 12:24:17 +0530 Subject: [PATCH] Add patch to prevent incremental builds on sparc64. Closes: bug#895300, Thanks to John Paul Adrian Glaubitz. --- ...2007_sparc64_disable_incremental_build.patch | 17 +++++++++++++++++ debian/patches/series | 1 + 2 files changed, 18 insertions(+) create mode 100644 debian/patches/2007_sparc64_disable_incremental_build.patch diff --git a/debian/patches/2007_sparc64_disable_incremental_build.patch b/debian/patches/2007_sparc64_disable_incremental_build.patch new file mode 100644 index 000000000..8003f1485 --- /dev/null +++ b/debian/patches/2007_sparc64_disable_incremental_build.patch @@ -0,0 +1,17 @@ +Description: Disable incremental builds on sparc64 + Incremental builds are currently unreliable on sparc64, + disable them by default for the time being. +Last-Update: 2018-04-09 + +--- cargo-0.25.0.orig/src/cargo/core/manifest.rs ++++ cargo-0.25.0/src/cargo/core/manifest.rs +@@ -633,6 +633,9 @@ impl Profile { + debuginfo: Some(2), + debug_assertions: true, + overflow_checks: true, ++ #[cfg(target_arch = "sparc64")] ++ incremental: false, ++ #[cfg(not(target_arch = "sparc64"))] + incremental: true, + ..Profile::default() + } diff --git a/debian/patches/series b/debian/patches/series index 2b41ed892..b30bf5caa 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ +2007_sparc64_disable_incremental_build.patch 2004_clean-cargo-deps.patch 2003_local-jquery.patch 2001_use-system-libgit2.patch -- 2.30.2