[csw-devel] SF.net SVN: gar:[12161] csw/mgar/pkg/coreutils/trunk/files/ 0001-Import-a-patch-to-prevent-breakage-on-vasprintf-gnul.patch
bdwalton at users.sourceforge.net
bdwalton at users.sourceforge.net
Mon Jan 3 18:42:45 CET 2011
Revision: 12161
http://gar.svn.sourceforge.net/gar/?rev=12161&view=rev
Author: bdwalton
Date: 2011-01-03 17:42:45 +0000 (Mon, 03 Jan 2011)
Log Message:
-----------
coreutils/trunk: updated patch to include more required bits from the upstream commit
Modified Paths:
--------------
csw/mgar/pkg/coreutils/trunk/files/0001-Import-a-patch-to-prevent-breakage-on-vasprintf-gnul.patch
Modified: csw/mgar/pkg/coreutils/trunk/files/0001-Import-a-patch-to-prevent-breakage-on-vasprintf-gnul.patch
===================================================================
--- csw/mgar/pkg/coreutils/trunk/files/0001-Import-a-patch-to-prevent-breakage-on-vasprintf-gnul.patch 2011-01-03 15:30:08 UTC (rev 12160)
+++ csw/mgar/pkg/coreutils/trunk/files/0001-Import-a-patch-to-prevent-breakage-on-vasprintf-gnul.patch 2011-01-03 17:42:45 UTC (rev 12161)
@@ -1,4 +1,4 @@
-From ac3821f923d5c54b575110d984701c06d22149d0 Mon Sep 17 00:00:00 2001
+From 2d06b90935278549839ffcc4c040cca2fe141dde Mon Sep 17 00:00:00 2001
From: Ben Walton <bwalton at opencsw.org>
Date: Sun, 2 Jan 2011 19:33:50 +0100
Subject: [PATCH] Import a patch to prevent breakage on vasprintf gnulib test
@@ -14,7 +14,8 @@
Signed-off-by: Ben Walton <bwalton at opencsw.org>
---
gnulib-tests/test-vasprintf-posix.c | 15 +++++++++++++++
- 1 files changed, 15 insertions(+), 0 deletions(-)
+ m4/printf.m4 | 12 ++++++++----
+ 2 files changed, 23 insertions(+), 4 deletions(-)
diff --git a/gnulib-tests/test-vasprintf-posix.c b/gnulib-tests/test-vasprintf-posix.c
index ec908e3..17be838 100644
@@ -42,6 +43,47 @@
char input[5000];
char *result;
int retval;
+diff --git a/m4/printf.m4 b/m4/printf.m4
+index 8cffa6a..6c8a7a4 100644
+--- a/m4/printf.m4
++++ b/m4/printf.m4
+@@ -1,4 +1,4 @@
+-# printf.m4 serial 41
++# printf.m4 serial 42
+ dnl Copyright (C) 2003, 2007-2010 Free Software Foundation, Inc.
+ dnl This file is free software; the Free Software Foundation
+ dnl gives unlimited permission to copy and/or distribute it,
+@@ -890,8 +890,9 @@ changequote([,])dnl
+ dnl Test whether the *printf family of functions supports large precisions.
+ dnl On mingw, precisions larger than 512 are treated like 512, in integer,
+ dnl floating-point or pointer output. On Solaris 10/x86, precisions larger
+-dnl than 510 in floating-point output crash the program. On BeOS, precisions
+-dnl larger than 1044 crash the program.
++dnl than 510 in floating-point output crash the program. On Solaris 10/SPARC,
++dnl precisions larger than 510 in floating-point output yield wrong results.
++dnl On BeOS, precisions larger than 1044 crash the program.
+ dnl Result is gl_cv_func_printf_precision.
+
+ AC_DEFUN([gl_PRINTF_PRECISION],
+@@ -917,6 +918,9 @@ int main ()
+ result |= 1;
+ if (sprintf (buf, "%.4000f %d", 1.0, 33, 44) < 4000 + 5)
+ result |= 2;
++ if (sprintf (buf, "%.511f %d", 1.0, 33, 44) < 511 + 5
++ || buf[0] != '1')
++ result |= 4;
+ return result;
+ }]])],
+ [gl_cv_func_printf_precision=yes],
+@@ -1459,7 +1463,7 @@ dnl Cygwin 1.5.25 (2008) . . . # # . . # . . . . . # .
+ dnl Cygwin 1.5.19 (2006) # . . # # # . # . # . # # # . . . . . .
+ dnl Solaris 11 2010-11 . . # # # . . # . . . # . . . . . . . .
+ dnl Solaris 10 . . # # # . . # . . . # # . . . . . . .
+-dnl Solaris 2.6 ... 9 # . # # # # . # . . . # . . . . # . . .
++dnl Solaris 2.6 ... 9 # . # # # # . # . . . # # . . . # . . .
+ dnl Solaris 2.5.1 # . # # # # . # . . . # . . # # # # # #
+ dnl AIX 5.2, 7.1 . . # # # . . . . . . # . . . . . . . .
+ dnl AIX 4.3.2, 5.1 # . # # # # . . . . . # . . . . # . . .
--
1.7.3.2
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list