diff --git a/0001-only-build-overflow-tests-on-64-bits-arch.patch b/0001-only-build-overflow-tests-on-64-bits-arch.patch new file mode 100644 index 0000000..5e8d9cc --- /dev/null +++ b/0001-only-build-overflow-tests-on-64-bits-arch.patch @@ -0,0 +1,23 @@ +From b16bbf3ff43af544ae03c8575945770f19f1d2cb Mon Sep 17 00:00:00 2001 +From: Geoffroy Couprie +Date: Mon, 24 Jun 2019 11:52:09 +0200 +Subject: [PATCH] only build overflow tests on 64 bits arch + +--- + tests/overflow.rs | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/tests/overflow.rs b/tests/overflow.rs +index 5656f8a..2f4a87f 100644 +--- a/tests/overflow.rs ++++ b/tests/overflow.rs +@@ -1,4 +1,6 @@ + #![cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))] ++#![cfg(target_pointer_width = "64")] ++ + #[macro_use] + extern crate nom; + +-- +2.22.0 + diff --git a/rust-nom.spec b/rust-nom.spec index 38abc94..f455e93 100644 --- a/rust-nom.spec +++ b/rust-nom.spec @@ -1,17 +1,12 @@ # Generated by rust2rpm 10 -# * https://github.com/Geal/nom/issues/966 -%if 0%{?__isa_bits} >= 64 - %bcond_without check -%else - %bcond_with check -%endif +%bcond_without check %global debug_package %{nil} %global crate nom Name: rust-%{crate} Version: 4.2.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Byte-oriented, zero-copy, parser combinators library # Upstream license specification: MIT @@ -21,6 +16,8 @@ Source: %{crates_source} # Initial patched metadata # * the benches are not included in the package Patch0: nom-fix-metadata.diff +# * https://github.com/Geal/nom/issues/966 +Patch0001: 0001-only-build-overflow-tests-on-64-bits-arch.patch ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -163,6 +160,9 @@ which use "verbose-errors" feature of "%{crate}" crate. %endif %changelog +* Mon Jun 24 13:03:16 CEST 2019 Igor Gnatenko - 4.2.3-3 +- Enable tests on 32bit + * Sat Jun 22 20:30:03 CEST 2019 Igor Gnatenko - 4.2.3-2 - Regenerate