GNU bug report logs -
#75206
[PATCH rust-team 01/10] gnu: rust-structopt-0.3: Use snippet.
Previous Next
Reported by: Herman Rimm <herman <at> rimm.ee>
Date: Mon, 30 Dec 2024 17:54:02 UTC
Severity: normal
Tags: patch
Done: Steve George <steve <at> futurile.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
* gnu/packages/crates-io.scm (rust-syn-2): Add snippet.
[arguments]: Remove patch-test-suite phase.
Change-Id: I1f53f9259fc9b11ac420aed3238671b3c20b236d
---
gnu/packages/crates-io.scm | 29 ++++++++++++++---------------
1 file changed, 14 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index efc782d2b79..e66d2fa7626 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -80650,26 +80650,25 @@ (define-public rust-syn-2
(package
(name "rust-syn")
(version "2.0.90")
- (source (origin
- (method url-fetch)
- (uri (crate-uri "syn" version))
- (file-name (string-append name "-" version ".tar.gz"))
- (sha256
- (base32 "0cfg5dsr1x0hl6b9hz08jp1197mx0rq3xydqmqaws36xlms3p7ci"))))
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "syn" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0cfg5dsr1x0hl6b9hz08jp1197mx0rq3xydqmqaws36xlms3p7ci"))
+ (modules '((guix build utils)))
+ ;; The syn-test-suite crate is empty.
+ (snippet
+ #~(substitute* "Cargo.toml"
+ (("^\\[dev-dependencies.syn-test-suite\\]") "")
+ (("^version = \"0\"") "")
+ (("^test = \\[\"syn-test-suite/all-features\"\\]") "")))))
(build-system cargo-build-system)
(arguments
;; Tests fail to compile
;; error[E0463]: can't find crate for `rustc_ast` (among other errors).
`(#:tests? #f
- #:phases
- (modify-phases %standard-phases
- ;; The syn-test-suite crate is empty.
- (add-after 'unpack 'patch-test-suite
- (lambda _
- (substitute* "Cargo.toml"
- (("^\\[dev-dependencies.syn-test-suite\\]") "")
- (("^version = \"0\"") "")
- (("^test = \\[\"syn-test-suite/all-features\"\\]") "")))))
#:cargo-inputs
(("rust-proc-macro2" ,rust-proc-macro2-1)
("rust-quote" ,rust-quote-1)
--
2.45.2
This bug report was last modified 95 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.