pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/libcxx libcxx: don't try to use sys/localedef.h o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e561a1408402
branches:  trunk
changeset: 371369:e561a1408402
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun Jan 09 23:20:59 2022 +0000

description:
libcxx: don't try to use sys/localedef.h on SunOS if nonexistent

diffstat:

 lang/libcxx/distinfo                                      |   3 +-
 lang/libcxx/patches/patch-src_support_solaris_xlocale.cpp |  18 +++++++++++++++
 2 files changed, 20 insertions(+), 1 deletions(-)

diffs (36 lines):

diff -r 10fcf3d501c7 -r e561a1408402 lang/libcxx/distinfo
--- a/lang/libcxx/distinfo      Sun Jan 09 23:17:21 2022 +0000
+++ b/lang/libcxx/distinfo      Sun Jan 09 23:20:59 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2021/11/23 20:55:43 wiz Exp $
+$NetBSD: distinfo,v 1.16 2022/01/09 23:20:59 tnn Exp $
 
 BLAKE2s (libcxx-13.0.0.src.tar.xz) = ade0de63ce72d50ae1276cf71da17aa5fa375e9ad767e2c1abecaa7f57953768
 SHA512 (libcxx-13.0.0.src.tar.xz) = deaf166ea9b5ffe4d7d1ace86fb4ed33317c610ff41947d2b0b18934b2a54601521f1021c5fd43bdba3a08779f3be98e13d2565c0d4374d849c5eff487eda2dd
@@ -11,3 +11,4 @@
 Size (llvm-13.0.0.src.tar.xz) = 45471992 bytes
 SHA1 (patch-include_____config) = ff0d5a0fcc1431f21ce25667cbc01c2307542212
 SHA1 (patch-src_filesystem_directory__iterator.cpp) = 90ebbb80e4ec161405397d6d7c5d1d19a7284325
+SHA1 (patch-src_support_solaris_xlocale.cpp) = 8085adb5b2647151a162c620506b479f7c71c753
diff -r 10fcf3d501c7 -r e561a1408402 lang/libcxx/patches/patch-src_support_solaris_xlocale.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/libcxx/patches/patch-src_support_solaris_xlocale.cpp Sun Jan 09 23:20:59 2022 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_support_solaris_xlocale.cpp,v 1.1 2022/01/09 23:20:59 tnn Exp $
+
+don't try to use sys/localedef.h on SunOS if nonexistent
+OpenIndiana doesn't seem to ship the header.
+Userland shouldn't use it, according to Garrett D'Amore:
+https://illumos.topicbox.com/groups/developer/T6cfd2e6cd87f3485-M30dac0cb6fffae62ef45b9a8
+
+--- src/support/solaris/xlocale.cpp.orig       2021-09-24 16:18:10.000000000 +0000
++++ src/support/solaris/xlocale.cpp
+@@ -6,7 +6,7 @@
+ //
+ //===----------------------------------------------------------------------===//
+ 
+-#ifdef __sun__
++#if defined(__sun__) && __has_include(<sys/localedef.h>)
+ 
+ #include "__support/solaris/xlocale.h"
+ #include <stdarg.h>



Home | Main Index | Thread Index | Old Index