From c66421c405f08ba045b58e3fa3ed4938895ee19b Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Fri, 5 Aug 2022 15:59:56 +0900 Subject: [PATCH] Fix version requirement for clap to avoid FTBFS in Fedora Resolves: #2113469 Signed-off-by: Daiki Ueno --- keylime-agent-rust.spec | 2 ++ rust-keylime-metadata.patch | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 rust-keylime-metadata.patch diff --git a/keylime-agent-rust.spec b/keylime-agent-rust.spec index a6ad6a7..c437584 100644 --- a/keylime-agent-rust.spec +++ b/keylime-agent-rust.spec @@ -61,6 +61,8 @@ Patch2: rust-keylime-show-path-missing-cert.patch Patch3: rust-keylime-descriptive-error-messages.patch # Set supplementary groups when dropping privileges Patch4: rust-keylime-set-supplementary-groups.patch +# Fix version requirement for clap to avoid FTBFS in Fedora +Patch5: rust-keylime-metadata.patch ExclusiveArch: %{rust_arches} diff --git a/rust-keylime-metadata.patch b/rust-keylime-metadata.patch new file mode 100644 index 0000000..bf84f19 --- /dev/null +++ b/rust-keylime-metadata.patch @@ -0,0 +1,25 @@ +From 360ac8eb65eb44d6a4217f75b94cdb14804df02e Mon Sep 17 00:00:00 2001 +From: rpm-build +Date: Fri, 5 Aug 2022 16:03:03 +0900 +Subject: [PATCH] rust-keylime-metadata.patch + +--- + Cargo.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Cargo.toml b/Cargo.toml +index 933df5e..20edb8d 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -21,7 +21,7 @@ doc = false + actix-web = { version = "4", features = ["openssl"] } + base64 = "0.13" + cfg-if = "1" +-clap = { version = "~3.1.18", features = ["derive"] } ++clap = { version = "3.1.18", features = ["derive"] } + compress-tools = "0.12" + futures = "0.3.6" + hex = "0.4" +-- +2.37.1 +