Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/SOPE4 devel/SOPE4: fix array[char]
details: https://anonhg.NetBSD.org/pkgsrc/rev/fc712ae42b2a
branches: trunk
changeset: 433141:fc712ae42b2a
user: rillig <rillig%pkgsrc.org@localhost>
date: Sun May 31 14:36:21 2020 +0000
description:
devel/SOPE4: fix array[char]
diffstat:
devel/SOPE4/Makefile | 4 +-
devel/SOPE4/distinfo | 3 +-
devel/SOPE4/patches/patch-sope-xml_libxmlSAXDriver_libxmlHTMLSAXDriver.m | 35 ++++++++++
3 files changed, 39 insertions(+), 3 deletions(-)
diffs (67 lines):
diff -r 10f3dbb79295 -r fc712ae42b2a devel/SOPE4/Makefile
--- a/devel/SOPE4/Makefile Sun May 31 14:33:58 2020 +0000
+++ b/devel/SOPE4/Makefile Sun May 31 14:36:21 2020 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.3 2020/04/12 08:28:28 adam Exp $
+# $NetBSD: Makefile,v 1.4 2020/05/31 14:36:21 rillig Exp $
#
DISTNAME= SOPE-4.0.8
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= devel
MASTER_SITES= http://www.sogo.nu/files/downloads/SOGo/Sources/
diff -r 10f3dbb79295 -r fc712ae42b2a devel/SOPE4/distinfo
--- a/devel/SOPE4/distinfo Sun May 31 14:33:58 2020 +0000
+++ b/devel/SOPE4/distinfo Sun May 31 14:36:21 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2019/09/12 04:44:14 wiz Exp $
+$NetBSD: distinfo,v 1.3 2020/05/31 14:36:21 rillig Exp $
SHA1 (SOPE-4.0.8.tar.gz) = 0339ba416ff4792e32042dc52e1a50eb8b0c1b9f
RMD160 (SOPE-4.0.8.tar.gz) = 87d6ba09c6608c88e7d426258559aaf6af886dfb
@@ -9,3 +9,4 @@
SHA1 (patch-sope-core_NGStreams_NGInternetSocketAddress.m) = 7c945bf174e3de5f6f6daaaaa095956421a43bc3
SHA1 (patch-sope-core_NGStreams_NGLocalSocketAddress.m) = 306f16ed85cb4aaea7d145eb055448b12ad70507
SHA1 (patch-sope-core_NGStreams_NGLocalSocketDomain.m) = db9cd064725f64a5ceb739cc90e6c89a4d77ebdc
+SHA1 (patch-sope-xml_libxmlSAXDriver_libxmlHTMLSAXDriver.m) = 20b00937973c64f36324c9670ba08374bccec13b
diff -r 10f3dbb79295 -r fc712ae42b2a devel/SOPE4/patches/patch-sope-xml_libxmlSAXDriver_libxmlHTMLSAXDriver.m
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/SOPE4/patches/patch-sope-xml_libxmlSAXDriver_libxmlHTMLSAXDriver.m Sun May 31 14:36:21 2020 +0000
@@ -0,0 +1,35 @@
+$NetBSD: patch-sope-xml_libxmlSAXDriver_libxmlHTMLSAXDriver.m,v 1.1 2020/05/31 14:36:21 rillig Exp $
+
+On NetBSD-8.0-x86_64:
+
+libxmlHTMLSAXDriver.m:784:9: error: array subscript is of type 'char' [-Werror,-Wchar-subscripts]
+libxmlHTMLSAXDriver.m:797:49: error: array subscript is of type 'char' [-Werror,-Wchar-subscripts]
+
+https://github.com/inverse-inc/sope/pull/53
+
+--- sope-xml/libxmlSAXDriver/libxmlHTMLSAXDriver.m.orig 2017-10-18 15:19:24.000000000 +0000
++++ sope-xml/libxmlSAXDriver/libxmlHTMLSAXDriver.m
+@@ -781,12 +781,12 @@ static void error(void *udata, const cha
+ SaxParseException *e;
+
+ if (!reportInvalidTags && msg != NULL) {
+- if (toupper(msg[0]) == 'T') {
++ if (toupper((unsigned char) msg[0]) == 'T') {
+ if (strncasecmp(tagInvalidMsg, msg, strlen(tagInvalidMsg)) == 0)
+ return;
+ }
+ #if 0
+- else if (toupper(msg[0]) == 'U') {
++ else if (toupper((unsigned char) msg[0]) == 'U') {
+ if (strncasecmp(unexpectedNobrCloseMsg, msg,
+ strlen(unexpectedNobrCloseMsg)) == 0)
+ return;
+@@ -794,7 +794,7 @@ static void error(void *udata, const cha
+ }
+ #endif
+ }
+- if (!reportUnclosedEntities && msg != NULL && toupper(msg[0]) == 'H') {
++ if (!reportUnclosedEntities && msg != NULL && toupper((unsigned char) msg[0]) == 'H') {
+ if (strncasecmp(unclosedEntityInvalidMsg, msg,
+ strlen(unclosedEntityInvalidMsg)) == 0)
+ return;
Home |
Main Index |
Thread Index |
Old Index