[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#905623: cargo: Please include patch to disable incremental tests on sparc64

Source: cargo
Version: 0.28.0-1~exp2
Severity: normal
Tags: patch
User: debian-sparc@lists.debian.org
Usertags: sparc64


As incremental builds currently don't work on sparc64 [1], we have
disabled them completely with a patch in cargo. With cargo 0.28,
upstream added tests for incremental building which cause cargo
to FTBFS on sparc64 [2].

The attached patch disables the incremental build tests on sparc64
for cargo and thus work-around the problem. Please include this
patch in the next upload of cargo.


> [1] https://github.com/rust-lang/rust/issues/49773
> [2] https://buildd.debian.org/status/fetch.php?pkg=cargo&arch=sparc64&ver=0.28.0-1%7Eexp2&stamp=1533491149&raw=0

  .''`.  John Paul Adrian Glaubitz
 : :' :  Debian Developer - glaubitz@debian.org
 `. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
   `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 cargo (0.28.0-1~exp2) experimental; urgency=medium
   * Add patch 2005 to disable fetch_platform_specific_dependencies unit
     tests. Upstream issue #5864.
Author: Vasudev Kamath <vasudev@copyninja.info>

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: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2018-08-07

--- cargo-0.28.0.orig/tests/testsuite/build.rs
+++ cargo-0.28.0/tests/testsuite/build.rs
@@ -45,6 +45,7 @@ fn cargo_fail_with_no_stderr() {
 /// Check that the `CARGO_INCREMENTAL` environment variable results in
 /// `rustc` getting `-Zincremental` passed to it.
+#[cfg(not(target_arch = "sparc64"))]
 fn cargo_compile_incremental() {
     let p = project("foo")
@@ -71,6 +72,7 @@ fn cargo_compile_incremental() {
+#[cfg(not(target_arch = "sparc64"))]
 fn incremental_profile() {
     let p = project("foo")
@@ -127,6 +129,7 @@ fn incremental_profile() {
+#[cfg(not(target_arch = "sparc64"))]
 fn incremental_config() {
     let p = project("foo")

Reply to: