[m4] Fix ppc64le test fails
vcrhonek
vcrhonek at fedoraproject.org
Thu Apr 10 12:44:01 UTC 2014
commit 17e2e0692e6a4afaea0b5869eec3bc934f69ac6e
Author: Vitezslav Crhonek <vcrhonek at redhat.com>
Date: Thu Apr 10 14:43:43 2014 +0200
Fix ppc64le test fails
m4-1.4.16-gnulib-gets.patch | 13 -------------
m4-1.4.16-readlink-einval.patch | 12 ------------
m4-1.4.17-gnulib-ppc64le.patch | 19 +++++++++++++++++++
m4.spec | 10 +++++++++-
4 files changed, 28 insertions(+), 26 deletions(-)
---
diff --git a/m4-1.4.17-gnulib-ppc64le.patch b/m4-1.4.17-gnulib-ppc64le.patch
new file mode 100644
index 0000000..698d5f4
--- /dev/null
+++ b/m4-1.4.17-gnulib-ppc64le.patch
@@ -0,0 +1,19 @@
+--- m4-1.4.17/tests/test-isnanl.h.ori
++++ m4-1.4.17/tests/test-isnanl.h
+@@ -51,6 +51,15 @@ main ()
+ /* A bit pattern that is different from a Quiet NaN. With a bit of luck,
+ it's a Signalling NaN. */
+ {
++#if defined __powerpc__ && LDBL_MANT_DIG == 106
++ /* This is PowerPC "double double", a pair of two doubles. Inf and Nan are
++ represented as the corresponding 64-bit IEEE values in the first double;
++ the second is ignored. Manipulate only the first double. */
++ #undef NWORDS
++ #define NWORDS \
++ ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
++#endif
++
+ memory_long_double m;
+ m.value = NaNl ();
+ # if LDBL_EXPBIT0_BIT > 0
+
diff --git a/m4.spec b/m4.spec
index c5638cc..50b5234 100644
--- a/m4.spec
+++ b/m4.spec
@@ -1,12 +1,15 @@
Summary: The GNU macro processor
Name: m4
Version: 1.4.17
-Release: 3%{?dist}
+Release: 4%{?dist}
License: GPLv3+
Group: Applications/Text
Source0: http://ftp.gnu.org/gnu/m4/m4-%{version}.tar.xz
Source1: http://ftp.gnu.org/gnu/m4/m4-%{version}.tar.xz.sig
URL: http://www.gnu.org/software/m4/
+# Patch0: Fixes math tests for little-endian PowerPC, rhbz#1083434
+# patch by Menanteau Guy and Ulrich Weigand
+Patch0: m4-1.4.17-gnulib-ppc64le.patch
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
BuildRequires: autoconf automake
@@ -29,6 +32,7 @@ Install m4 if you need a macro processor.
%prep
%setup -q
+%patch0 -p1 -b .gnulib-ppc64le
chmod 644 COPYING
%build
@@ -62,6 +66,10 @@ if [ "$1" = 0 ]; then
fi
%changelog
+* Thu Apr 10 2014 Vitezslav Crhonek <vcrhonek at redhat.com> - 1.4.17-4
+- Fix ppc64le test fails
+ Resolves: #1083434
+
* Mon Dec 09 2013 Vitezslav Crhonek <vcrhonek at redhat.com> - 1.4.17-3
- Buildrequire texinfo for ppc architecture
Resolves: #1038230
More information about the scm-commits
mailing list