Subject: bug#57030: closed ([Nicolas Graves] Re: [PATCH 9/9] gnu: rust-tracing-attributes-0.1: Update to 0.1.20.)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 29 Sep 2022 13:18:02 +0000

Your bug report

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

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
57030: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57030
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: [Nicolas Graves] Re: [PATCH 9/9] gnu: rust-tracing-attributes-0.1: Update to 0.1.20.
From: Nicolas Graves <[email-masked]>
To: [email-masked]
Date: Thu, 29 Sep 2022 15:17:04 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

-------------------- Start of forwarded message --------------------
From: Nicolas Graves <[email-masked]>
To: [email-masked]
Subject: Re: [PATCH 9/9] gnu: rust-tracing-attributes-0.1: Update to 0.1.20.
Date: Thu, 29 Sep 2022 14:59:29 +0200

This patches would require more work. If rust-syn is updated this way,
if should go in inputs and not in cargo-inputs for packages using it,
that makes everything more complicated.

I'm not going to prioritize this anytime soon. I prefer to close the
issue.

-------------------- End of forwarded message --------------------

--
Best regards,
Nicolas Graves

Subject: [PATCH] gnu: rust-tracing-futures-0.2: Fix build phase.
From: Nicolas Graves <[email-masked]>
To: [email-masked]
Date: Sun, 07 Aug 2022 12:10:09 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/crates-io.scm (rust-tracing-futures-0.2): Fix build phase.
---
 gnu/packages/crates-io.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index cfafce9aa3..a7a90df7ea 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -66323,7 +66323,17 @@ (define-public rust-tracing-futures-0.2
          "0k4vd3jyqz9cx8rbwbp0p93qfp1w6rfk7sc6c1jh1ai18zqvcyxb"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs
+     `(#: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")
+                (string-append
+                 "../guix-vendor/rust-tracing-"
+                 "0.1.23" ;; TODO replace by rust-tracing version
+                ".tar.gz/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)
-- 
2.37.1

-- 
Best regards,
Nicolas Graves