add upstream patch to fix i686-specific test compilation failure

epel9
Fabio Valentini 4 years ago
parent 226daffc5a
commit 6dbd4048f1
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

@ -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(())
}

@ -6,7 +6,7 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 1.1.0 Version: 1.1.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: OpenPGP data types and associated machinery Summary: OpenPGP data types and associated machinery
# Upstream license specification: GPL-2.0-or-later # Upstream license specification: GPL-2.0-or-later
@ -18,6 +18,8 @@ Source: %{crates_source}
# * drop Windows-specific features and dependencies # * drop Windows-specific features and dependencies
# * drop features for vendoring nettle # * drop features for vendoring nettle
Patch0: sequoia-openpgp-fix-metadata.diff 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} ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build} %if %{__cargo_skip_build}
@ -159,5 +161,8 @@ which use "nettle" feature of "%{crate}" crate.
%endif %endif
%changelog %changelog
* Mon Apr 12 2021 Fabio Valentini <decathorpe@gmail.com> - 1.1.0-2
- Add upstream patch to fix i686-specific test compilation failure.
* Thu Apr 08 2021 Fabio Valentini <decathorpe@gmail.com> - 1.1.0-1 * Thu Apr 08 2021 Fabio Valentini <decathorpe@gmail.com> - 1.1.0-1
- Initial package - Initial package

Loading…
Cancel
Save