[csw-devel] SF.net SVN: gar:[12150] csw/mgar/pkg/coreutils/trunk

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Sun Jan 2 19:37:21 CET 2011


Revision: 12150
          http://gar.svn.sourceforge.net/gar/?rev=12150&view=rev
Author:   bdwalton
Date:     2011-01-02 18:37:20 +0000 (Sun, 02 Jan 2011)

Log Message:
-----------
add a patch file to prevent known test failure from stopping the build

Modified Paths:
--------------
    csw/mgar/pkg/coreutils/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/coreutils/trunk/files/0001-Import-a-patch-to-prevent-breakage-on-vasprintf-gnul.patch

Modified: csw/mgar/pkg/coreutils/trunk/Makefile
===================================================================
--- csw/mgar/pkg/coreutils/trunk/Makefile	2011-01-02 17:45:33 UTC (rev 12149)
+++ csw/mgar/pkg/coreutils/trunk/Makefile	2011-01-02 18:37:20 UTC (rev 12150)
@@ -28,6 +28,7 @@
 
 MASTER_SITES = $(GNU_MIRROR)
 DISTFILES = $(NAME)-$(VERSION).tar.gz
+PATCHFILES += 0001-Import-a-patch-to-prevent-breakage-on-vasprintf-gnul.patch
 
 # We define upstream file regex so we can be notifed of new upstream
 # software release

Added: 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	                        (rev 0)
+++ csw/mgar/pkg/coreutils/trunk/files/0001-Import-a-patch-to-prevent-breakage-on-vasprintf-gnul.patch	2011-01-02 18:37:20 UTC (rev 12150)
@@ -0,0 +1,47 @@
+From ac3821f923d5c54b575110d984701c06d22149d0 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
+
+Solaris has a known breakage of some *printf function handling.
+This patch makes the test a skip instead of a fail so that it's
+a noted failure, but not a deal breaker for the build.
+
+It was gleaned from the larger commit that was added to upstream
+gnulib here:
+http://www.mail-archive.com/bug-gnulib@gnu.org/msg20851.html
+
+Signed-off-by: Ben Walton <bwalton at opencsw.org>
+---
+ gnulib-tests/test-vasprintf-posix.c |   15 +++++++++++++++
+ 1 files changed, 15 insertions(+), 0 deletions(-)
+
+diff --git a/gnulib-tests/test-vasprintf-posix.c b/gnulib-tests/test-vasprintf-posix.c
+index ec908e3..17be838 100644
+--- a/gnulib-tests/test-vasprintf-posix.c
++++ b/gnulib-tests/test-vasprintf-posix.c
+@@ -3550,6 +3550,21 @@ test_function (int (*my_asprintf) (char **, const char *, ...))
+   }
+ 
+   {
++    char *result;
++    int retval =
++      my_asprintf (&result, "%.511f %d", 1.0, 99);
++    size_t i;
++    ASSERT (result != NULL);
++    ASSERT (result[0] == '1');
++    ASSERT (result[1] == '.');
++    for (i = 0; i < 511; i++)
++      ASSERT (result[2 + i] == '0');
++    ASSERT (strcmp (result + 2 + 511, " 99") == 0);
++    ASSERT (retval == strlen (result));
++    free (result);
++  }
++
++  {
+     char input[5000];
+     char *result;
+     int retval;
+-- 
+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