From 3210fa23c23a74925500e66f35755fec717695e4 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 19 2015 15:54:55 +0000 Subject: import m4-1.4.16-10.el7 --- diff --git a/SOURCES/m4-1.4.17-gnulib-ppc64le.patch b/SOURCES/m4-1.4.17-gnulib-ppc64le.patch new file mode 100644 index 0000000..698d5f4 --- /dev/null +++ b/SOURCES/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/SPECS/m4.spec b/SPECS/m4.spec index 4d67a2c..075ef0f 100644 --- a/SPECS/m4.spec +++ b/SPECS/m4.spec @@ -1,7 +1,7 @@ Summary: The GNU macro processor Name: m4 Version: 1.4.16 -Release: 9%{?dist} +Release: 10%{?dist} License: GPLv3+ Group: Applications/Text Source0: http://ftp.gnu.org/gnu/m4/m4-%{version}.tar.xz @@ -13,6 +13,9 @@ Patch0: m4-1.4.16-readlink-einval.patch # Patch1: Temporary fix to avoid build fails, this patch # should be removed after updateing m4 to newer gnulib Patch1: m4-1.4.16-gnulib-gets.patch +# Patch2: Fixes math tests for little-endian PowerPC, +# patch by Menanteau Guy and Ulrich Weigand +Patch2: m4-1.4.17-gnulib-ppc64le.patch Requires(post): /sbin/install-info Requires(preun): /sbin/install-info # Gnulib bundled - the library has been granted an exception, see https://fedorahosted.org/fpc/ticket/174 @@ -33,6 +36,7 @@ Install m4 if you need a macro processor. %setup -q %patch0 -p1 -b .readlink-einval %patch1 -p1 -b .gnulib-gets +%patch2 -p1 -b .gnulib-ppc64le chmod 644 COPYING %build @@ -65,6 +69,10 @@ if [ "$1" = 0 ]; then fi %changelog +* Thu Aug 07 2014 Vitezslav Crhonek - 1.4.16-10 +- Fix ppc64le test fails + Resolves: #1125604 + * Fri Jan 24 2014 Daniel Mach - 1.4.16-9 - Mass rebuild 2014-01-24