On 2011-09-04 Bruno Haible <br...@clisp.org> wrote: > Andreas Metzler wrote: > > test-float fails on PowerPC (not PowerPC64), too. This causes [...] > Does the test failure go away if you change in lib/float.in.h the > condition
> (defined _ARCH_PPC || defined _POWER) && defined _AIX > to > (defined _ARCH_PPC || defined _POWER || defined __ppc__ || defined > __powerpc__) > and adjust m4/float_h.m4 to set FLOAT_H=float.h and REPLACE_FLOAT_LDBL=1 > (like it is done for AIX)? Like I tried in the attached patched? - No did not help. (I am running this from grep-2.9, as the whole thing is much smaller and less interdependent than gnutls) cu andreas -- `What a good friend you are to him, Dr. Maturin. His other friends are so grateful to you.' `I sew his ears on from time to time, sure'
Description: Upstream changes introduced in version 2.9-2.1 This patch has been created by dpkg-source during the package build. Here's the last changelog entry, hopefully it gives details on why those changes were made: . grep (2.9-2.1) unstable; urgency=low . * Non-maintainer upload. * testsuite error . The person named in the Author field signed this changelog entry. Author: Andreas Metzler <ametz...@debian.org> --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: <vendor|upstream|other>, <url of original patch> Bug: <url in upstream bugtracker> Bug-Debian: http://bugs.debian.org/<bugnumber> Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> Forwarded: <no|not-needed|url proving that it has been forwarded> Reviewed-By: <name and email of someone who approved the patch> Last-Update: <YYYY-MM-DD> --- grep-2.9.orig/m4/float_h.m4 +++ grep-2.9/m4/float_h.m4 @@ -40,6 +40,12 @@ changequote([,])dnl REPLACE_FLOAT_LDBL=1 fi ;; + linux*) + if test "$host_cpu" = "powerpc" && test -n "$FLOAT_H"; then + FLOAT_H=float.h + REPLACE_FLOAT_LDBL=1 + fi + ;; esac if test -n "$FLOAT_H"; then gl_NEXT_HEADERS([float.h]) --- grep-2.9.orig/gnulib-tests/float.in.h +++ grep-2.9/gnulib-tests/float.in.h @@ -112,7 +112,7 @@ extern const union gl_long_double_union /* On AIX 7.1 with gcc 4.2, the values of LDBL_MIN_EXP, LDBL_MIN, LDBL_MAX are wrong. */ -#if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__ +#if (defined _ARCH_PPC || defined _POWER || defined __ppc__ || defined __powerpc__) && (LDBL_MANT_DIG == 106) && defined __GNUC_ # undef LDBL_MIN_EXP # define LDBL_MIN_EXP DBL_MIN_EXP # undef LDBL_MIN_10_EXP