From afbd2cf0c42e70f5dc6187a73458b2f5c5109cfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Wed, 4 Oct 2023 10:50:58 +0100 Subject: [PATCH] ensure rustfmt pulls in exact matching rust evr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /usr/bin/rustfmt is linking to an internal rust library and this results in load errors if rustfmt and rust are at different evrs: $ rustfmt rustfmt: error while loading shared libraries: librustc_driver-69c69b1255476b63.so: cannot open shared object file: No such file or directory $ rpm -q rust rustfmt rust-1.72.0-1.fc38.x86_64 rustfmt-1.72.1-1.fc38.x86_64 Signed-off-by: Daniel P. Berrangé --- rust.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rust.spec b/rust.spec index 003be5a..67c25ad 100644 --- a/rust.spec +++ b/rust.spec @@ -531,6 +531,9 @@ and ensure that you'll always get a repeatable build. Summary: Tool to find and fix Rust formatting issues Requires: cargo +# /usr/bin/rustfmt is dynamically linked against internal rustc libs +Requires: %{name}%{?_isa} = %{version}-%{release} + # The component/package was rustfmt-preview until Rust 1.31. Obsoletes: rustfmt-preview < 1.0.0 Provides: rustfmt-preview = %{version}-%{release}