From 91791fab8cf97a6b6b6ffb07cf8d3ba237c535fd Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 11 Jan 2020 13:06:21 +0000 Subject: fix ancient webkit-gtk w/ newer ICU --- .../webkit-gtk-random-compilation-failures.patch | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 net-libs/webkit-gtk/files/webkit-gtk-random-compilation-failures.patch (limited to 'net-libs/webkit-gtk/files') diff --git a/net-libs/webkit-gtk/files/webkit-gtk-random-compilation-failures.patch b/net-libs/webkit-gtk/files/webkit-gtk-random-compilation-failures.patch new file mode 100644 index 0000000..c552770 --- /dev/null +++ b/net-libs/webkit-gtk/files/webkit-gtk-random-compilation-failures.patch @@ -0,0 +1,41 @@ +diff --git i/Source/WebCore/platform/graphics/SegmentedFontData.cpp w/Source/WebCore/platform/graphics/SegmentedFontData.cpp +index efb20a8..f0812e0 100644 +--- i/Source/WebCore/platform/graphics/SegmentedFontData.cpp ++++ w/Source/WebCore/platform/graphics/SegmentedFontData.cpp +@@ -61,7 +61,7 @@ bool SegmentedFontData::containsCharacters(const UChar* characters, int length) + { + UChar32 c; + for (int i = 0; i < length; ) { +- U16_NEXT(characters, i, length, c) ++ U16_NEXT(characters, i, length, c); + if (!containsCharacter(c)) + return false; + } +diff --git i/Source/WebCore/dom/Document.cpp w/Source/WebCore/dom/Document.cpp +index 1e677dc9..49fc03f0 100644 +--- i/Source/WebCore/dom/Document.cpp ++++ w/Source/WebCore/dom/Document.cpp +@@ -3912,12 +3912,12 @@ static bool isValidNameNonASCII(const UChar* characters, unsigned length) + unsigned i = 0; + + UChar32 c; +- U16_NEXT(characters, i, length, c) ++ U16_NEXT(characters, i, length, c); + if (!isValidNameStart(c)) + return false; + + while (i < length) { +- U16_NEXT(characters, i, length, c) ++ U16_NEXT(characters, i, length, c); + if (!isValidNamePart(c)) + return false; + } +@@ -3980,7 +3980,7 @@ bool Document::parseQualifiedName(const String& qualifiedName, String& prefix, S + const UChar* s = qualifiedName.deprecatedCharacters(); + for (unsigned i = 0; i < length;) { + UChar32 c; +- U16_NEXT(s, i, length, c) ++ U16_NEXT(s, i, length, c); + if (c == ':') { + if (sawColon) { + ec = NAMESPACE_ERR; -- cgit v1.2.3