Subject: [bug#57030] [PATCH] gnu: rust-tracing-futures-0.2: Fix build phase.

From: Nicolas Graves <[email-masked]>
Date: Sun, 07 Aug 2022 15:49:09 +0200

* gnu/packages/crates-io.scm (rust-tracing-futures-0.2): Fix build phase.
---
 gnu/packages/crates-io.scm | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index cfafce9aa3..04840039be 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -66323,15 +66323,26 @@ (define-public rust-tracing-futures-0.2
          "0k4vd3jyqz9cx8rbwbp0p93qfp1w6rfk7sc6c1jh1ai18zqvcyxb"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs
-       (("rust-futures" ,rust-futures-0.3)
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'patch-cargo-checksums 'patch-tests
+            (lambda _
+              (substitute* '("tests/support.rs" "src/lib.rs")
+                (("../../tracing/tests/support/mod.rs")
+                 #$(file-append rust-tracing-0.1
+                                "/share/cargo/src/tracing-"
+                                (package-version rust-tracing-0.1)
+                                "/tests/support/mod.rs"))))))
+      #:cargo-inputs
+      `(("rust-futures" ,rust-futures-0.3)
         ("rust-futures-task" ,rust-futures-task-0.3)
         ("rust-pin-project" ,rust-pin-project-0.4)
         ("rust-tokio" ,rust-tokio-0.1)
         ("rust-tokio-executor" ,rust-tokio-executor-0.1)
         ("rust-tracing" ,rust-tracing-0.1))
-       #:cargo-development-inputs
-       (("rust-tokio" ,rust-tokio-0.1)
+      #:cargo-development-inputs
+      `(("rust-tokio" ,rust-tokio-0.1)
         ("rust-tokio-test" ,rust-tokio-test-0.2)
         ("rust-tracing-core" ,rust-tracing-core-0.1))))
     (home-page "https://tokio.rs")
-- 
2.37.1

<#secure method=pgpmime mode=sign>

-- 
Best regards,
Nicolas Graves