pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/icu icu: Don't perform SunOS _STDC_C99 workar...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a5e402bb98cb
branches:  trunk
changeset: 373961:a5e402bb98cb
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Fri Jan 12 12:43:07 2018 +0000

description:
icu: Don't perform SunOS _STDC_C99 workaround with clang.

diffstat:

 textproc/icu/distinfo                          |   4 ++--
 textproc/icu/patches/patch-common_uposixdefs.h |  13 ++++++++++---
 2 files changed, 12 insertions(+), 5 deletions(-)

diffs (46 lines):

diff -r 0834f9686226 -r a5e402bb98cb textproc/icu/distinfo
--- a/textproc/icu/distinfo     Fri Jan 12 12:38:32 2018 +0000
+++ b/textproc/icu/distinfo     Fri Jan 12 12:43:07 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.72 2017/12/14 21:28:32 adam Exp $
+$NetBSD: distinfo,v 1.73 2018/01/12 12:43:07 jperkin Exp $
 
 SHA1 (icu4c-60_2-src.tgz) = 7a099523fcb708b427e94f9b3c372fec3ebd1563
 RMD160 (icu4c-60_2-src.tgz) = e9ef04181123e82d2a846b23caff072e12982b39
@@ -10,7 +10,7 @@
 SHA1 (patch-common_putilimp.h) = a68faa97c2bffeecaca1586e26f5bbe48e71b262
 SHA1 (patch-common_umutex.h) = 096d3e15ef7b84533456af4570ed70747a4ef70c
 SHA1 (patch-common_unicode_platform.h) = 8b7b8bcf6f5185225a1ca516ac212a495f7b47e8
-SHA1 (patch-common_uposixdefs.h) = 52a6fa2c531068de285d9babb1a98b84c564450e
+SHA1 (patch-common_uposixdefs.h) = 2de701a171bbb24e4cd814624d3b9f4807a921f8
 SHA1 (patch-config_Makefile.inc.in) = e7cee161315321d2580074054d87714b55319886
 SHA1 (patch-config_icu-config-bottom) = 168b89ee9180d4ae545125866ee91eb004010501
 SHA1 (patch-config_mh-darwin) = 32f0e4c241535e37e4cad9b871ed3d36b4184199
diff -r 0834f9686226 -r a5e402bb98cb textproc/icu/patches/patch-common_uposixdefs.h
--- a/textproc/icu/patches/patch-common_uposixdefs.h    Fri Jan 12 12:38:32 2018 +0000
+++ b/textproc/icu/patches/patch-common_uposixdefs.h    Fri Jan 12 12:43:07 2018 +0000
@@ -1,6 +1,8 @@
-$NetBSD: patch-common_uposixdefs.h,v 1.3 2017/04/22 20:11:45 adam Exp $
+$NetBSD: patch-common_uposixdefs.h,v 1.4 2018/01/12 12:43:08 jperkin Exp $
 
---- common/uposixdefs.h.orig   2017-03-09 02:12:45.000000000 +0000
+Don't perform _STDC_C99 workaround with clang.
+
+--- common/uposixdefs.h.orig   2017-03-14 21:01:57.000000000 +0000
 +++ common/uposixdefs.h
 @@ -44,8 +44,10 @@
       * and define _XOPEN_SOURCE to different values depending on __STDC_VERSION__.
@@ -25,7 +27,12 @@
  
  /**
   * Solaris says:
-@@ -68,4 +72,7 @@
+@@ -64,8 +68,11 @@
+  *   than a c99 or later compiler."
+  * Apparently C++11 is not "or later". Work around this.
+  */
+-#if defined(__cplusplus) && (defined(sun) || defined(__sun)) && !defined (_STDC_C99)
++#if defined(__cplusplus) && (defined(sun) || defined(__sun)) && !defined (_STDC_C99) && !defined(__clang__)
  #   define _STDC_C99
  #endif
  



Home | Main Index | Thread Index | Old Index