pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/libcxx libcxx: fix definition of __regex_word on ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/93e1769affb7
branches:  trunk
changeset: 383196:93e1769affb7
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun Aug 14 19:54:31 2022 +0000

description:
libcxx: fix definition of __regex_word on SunOS

diffstat:

 lang/libcxx/distinfo                         |   3 ++-
 lang/libcxx/patches/patch-include_____locale |  24 ++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletions(-)

diffs (45 lines):

diff -r 72cad95d2013 -r 93e1769affb7 lang/libcxx/distinfo
--- a/lang/libcxx/distinfo      Sun Aug 14 19:46:17 2022 +0000
+++ b/lang/libcxx/distinfo      Sun Aug 14 19:54:31 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.19 2022/08/13 09:38:09 tnn Exp $
+$NetBSD: distinfo,v 1.20 2022/08/14 19:54:31 tnn Exp $
 
 BLAKE2s (libcxx-14.0.6.src.tar.xz) = e77dfac79fb977adf84345b7e4c2762b3fa89f3d1f611baa8f8fa6831d1bc68a
 SHA512 (libcxx-14.0.6.src.tar.xz) = c39bb01317e8ae7e5b23a677754a866953b6c45188c194d3d76fbd276de9565df8bcbcab8cf6606584af7dd30a61f39376c0e2de6b8c32c69f7fc592587e710d
@@ -10,6 +10,7 @@
 SHA512 (llvm-14.0.6.src.tar.xz) = 6461bdde27aac17fa44c3e99a85ec47ffb181d0d4e5c3ef1c4286a59583e3b0c51af3c8081a300f45b99524340773a3011380059e3b3a571c3b0a8733e96fc1d
 Size (llvm-14.0.6.src.tar.xz) = 49660136 bytes
 SHA1 (patch-include_____config) = 01793dc2ec7db8f51d042fd0114649223036b089
+SHA1 (patch-include_____locale) = 16ce105c26adf43828699ddb2825ea2a199f2bda
 SHA1 (patch-src_charconv.cpp) = b8569ae77df4a5a7b627b3a9cb6691be73699dca
 SHA1 (patch-src_filesystem_filesystem__common.h) = 7b088ae8e577b482e05906434b510daed40469ae
 SHA1 (patch-src_include_to__chars__floating__point.h) = f7f880905609b87830ea657c7510fb3987448a09
diff -r 72cad95d2013 -r 93e1769affb7 lang/libcxx/patches/patch-include_____locale
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/libcxx/patches/patch-include_____locale      Sun Aug 14 19:54:31 2022 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-include_____locale,v 1.1 2022/08/14 19:54:31 tnn Exp $
+
+Fix definition of __regex_word on SunOS.
+0x80 clashes with _ISXDIGIT. Looking at <iso/ctype_iso.h>, 0x1000
+/seems/ to be an unused character class so use that pending an
+upstream fix. Similar issue to AIX.
+See upstream d29c9477320b982b73dc64405ff8f7fc54bb04d6.
+
+--- include/__locale.orig      2022-06-22 16:46:24.000000000 +0000
++++ include/__locale
+@@ -493,7 +493,13 @@ public:
+     static const mask punct  = _ISPUNCT;
+     static const mask xdigit = _ISXDIGIT;
+     static const mask blank  = _ISBLANK;
++# if defined(_AIX)
++    static const mask __regex_word = 0x8000;
++# elif defined(__sun__)
++    static const mask __regex_word = 0x1000;
++# else
+     static const mask __regex_word = 0x80;
++# endif
+ #elif defined(_NEWLIB_VERSION)
+     // Same type as Newlib's _ctype_ array in newlib/libc/include/ctype.h.
+     typedef char mask;



Home | Main Index | Thread Index | Old Index