Enable tests on 32bit

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent f99467152d
commit b77bbf8dee
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -0,0 +1,23 @@
From b16bbf3ff43af544ae03c8575945770f19f1d2cb Mon Sep 17 00:00:00 2001
From: Geoffroy Couprie <geo.couprie@gmail.com>
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

@ -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 <ignatenkobrain@fedoraproject.org> - 4.2.3-3
- Enable tests on 32bit
* Sat Jun 22 20:30:03 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.2.3-2
- Regenerate

Loading…
Cancel
Save