diff --git a/s390-tools-2.34-Fix-Rust-compilation-errors.patch b/s390-tools-2.34-Fix-Rust-compilation-errors.patch new file mode 100644 index 0000000..af89ed0 --- /dev/null +++ b/s390-tools-2.34-Fix-Rust-compilation-errors.patch @@ -0,0 +1,51 @@ +From 6a55d0c2e57952600164822dd100e8247b4b010f Mon Sep 17 00:00:00 2001 +From: Steffen Eiden +Date: Fri, 23 Aug 2024 09:16:26 +0200 +Subject: [PATCH] rust/pv: Lower most lints to warn +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Lower the lint level to warn for the styling lints. +This avoids compile issues during packaging for newer tooling with +potential more lint findings. +Still deny compiling if a public symbol has no documentation. + +Fixes: https://github.com/ibm-s390-linux/s390-tools/issues/173 +Reviewed-by: Jan Höppner +Signed-off-by: Steffen Eiden +--- + rust/pv/src/lib.rs | 4 ++-- + rust/pv_core/src/lib.rs | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/rust/pv/src/lib.rs b/rust/pv/src/lib.rs +index 9a647617..1084f8e8 100644 +--- a/rust/pv/src/lib.rs ++++ b/rust/pv/src/lib.rs +@@ -2,8 +2,8 @@ + // + // Copyright IBM Corp. 2023, 2024 + +-#![deny( +- missing_docs, ++#![deny(missing_docs)] ++#![warn( + missing_debug_implementations, + trivial_numeric_casts, + unstable_features, +diff --git a/rust/pv_core/src/lib.rs b/rust/pv_core/src/lib.rs +index 1356c1b7..b617b8f9 100644 +--- a/rust/pv_core/src/lib.rs ++++ b/rust/pv_core/src/lib.rs +@@ -1,8 +1,8 @@ + // SPDX-License-Identifier: MIT + // + // Copyright IBM Corp. 2023, 2024 +-#![deny( +- missing_docs, ++#![deny(missing_docs)] ++#![warn( + missing_debug_implementations, + trivial_numeric_casts, + unstable_features, diff --git a/s390-tools.changes b/s390-tools.changes index 31e8943..5c6fc0e 100644 --- a/s390-tools.changes +++ b/s390-tools.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Aug 26 09:17:17 UTC 2024 - Nikolay Gueorguiev + +* Applied a patch to fix Rust compilation errors (bsc#1229461) + - s390-tools-2.34-Fix-Rust-compilation-errors.patch + - Fix: s390-tools: Rust compilation errors (s390_pv_core), build fails with + "error: unnecessary qualification" +* Added BuildRequieres in the .spec file + - perl-Bootloader >= 0.4.15 + ------------------------------------------------------------------- Mon Aug 19 08:28:34 UTC 2024 - Nikolay Gueorguiev diff --git a/s390-tools.spec b/s390-tools.spec index dbe5a20..c38bb48 100644 --- a/s390-tools.spec +++ b/s390-tools.spec @@ -154,6 +154,7 @@ Patch911: s390-tools-sles15sp5-remove-no-pie-link-arguments.patch Patch912: s390-tools-ALP-zdev-live.patch Patch913: s390-tools-sles15sp6-kdump-initrd-59-zfcp-compat-rules.patch Patch914: s390-tools-slfo-01-parse-ipl-device-for-activation.patch +Patch915: s390-tools-2.34-Fix-Rust-compilation-errors.patch ### BuildRequires: curl-devel @@ -178,6 +179,7 @@ BuildRequires: zlib-devel-static ### s390x %ifarch s390x BuildRequires: kernel-zfcpdump +BuildRequires: perl-Bootloader >= 0.4.15 BuildRequires: qclib-devel-static %endif ### Cargo