Subject: [bug#75206] [PATCH rust-team 02/10] gnu: rust-structopt-0.3: Build.

From: Herman Rimm <[email-masked]>
Date: Mon, 30 Dec 2024 18:57:37 +0100

* gnu/packages/crates-io.scm (rust-structopt-0.3): Do not skip build.
[source]: Remove failing test files.

Change-Id: I468ab9e5813bea6d4cbee74c22ae8ad4c4803a0c
---
 gnu/packages/crates-io.scm | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4034345fcf5..efc782d2b79 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -79163,11 +79163,17 @@ (define-public rust-structopt-0.3
         #~(begin (substitute* "Cargo.toml"
                    ;; feature does not exist
                    (("lints.*") "")
-                   (("2.33") #$(package-version rust-clap-2)))))))
+                   (("2.33") #$(package-version rust-clap-2)))
+                 ;; Cargo build stderr does not exactly match.
+                 (with-directory-excursion "tests/ui"
+                   (for-each delete-file
+                             '("external_subcommand_wrong_type.rs"
+                               "positional_bool.rs"
+                               "raw.rs"
+                               "skip_without_default.rs")))))))
     (build-system cargo-build-system)
     (arguments
-     `(#:skip-build? #t
-       #:cargo-inputs
+     `(#:cargo-inputs
        (("rust-structopt-derive" ,rust-structopt-derive-0.4)
         ("rust-lazy-static" ,rust-lazy-static-1)
         ("rust-paw" ,rust-paw-1)
-- 
2.45.2