diff --git a/0001-fix-typo-in-i686-tests.patch b/0001-fix-typo-in-i686-tests.patch new file mode 100644 index 0000000..4653051 --- /dev/null +++ b/0001-fix-typo-in-i686-tests.patch @@ -0,0 +1,13 @@ +diff --git a/src/types/timestamp.rs b/src/types/timestamp.rs +index c253efb..aeae1ab 100644 +--- a/src/types/timestamp.rs ++++ b/src/types/timestamp.rs +@@ -682,7 +682,7 @@ mod tests { + UNIX_EPOCH + SystemDuration::new(i32::MAX as u64, 0)); + + let t3 = Timestamp::from(i32::MAX as u32 - 1); +- assert!(SystemTime::from(t3), ++ assert_eq!(SystemTime::from(t3), + UNIX_EPOCH + SystemDuration::new(i32::MAX as u64 - 1, 0)); + Ok(()) + } diff --git a/rust-sequoia-openpgp.spec b/rust-sequoia-openpgp.spec index eda5883..c3aad3d 100644 --- a/rust-sequoia-openpgp.spec +++ b/rust-sequoia-openpgp.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 1.1.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: OpenPGP data types and associated machinery # Upstream license specification: GPL-2.0-or-later @@ -18,6 +18,8 @@ Source: %{crates_source} # * drop Windows-specific features and dependencies # * drop features for vendoring nettle Patch0: sequoia-openpgp-fix-metadata.diff +# https://gitlab.com/sequoia-pgp/sequoia/-/commit/eb371b84 +Patch1: 0001-fix-typo-in-i686-tests.patch ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -159,5 +161,8 @@ which use "nettle" feature of "%{crate}" crate. %endif %changelog +* Mon Apr 12 2021 Fabio Valentini - 1.1.0-2 +- Add upstream patch to fix i686-specific test compilation failure. + * Thu Apr 08 2021 Fabio Valentini - 1.1.0-1 - Initial package