Title: [289432] releases/WebKitGTK/webkit-2.34
Revision
289432
Author
[email protected]
Date
2022-02-08 14:25:32 -0800 (Tue, 08 Feb 2022)

Log Message

Allow building with ICU 60
https://bugs.webkit.org/show_bug.cgi?id=235367

Unreviewed build fix.

Turns out we can reduce our ICU requirement from ICU 61 to ICU 60 with only minimal changes.

Patch by Michael Catanzaro <[email protected]> on 2022-02-08

.:

* Source/cmake/OptionsGTK.cmake:
* Source/cmake/OptionsWPE.cmake:

Source/_javascript_Core:

* runtime/IntlCache.cpp:
* runtime/IntlCache.h:

Modified Paths

Diff

Modified: releases/WebKitGTK/webkit-2.34/ChangeLog (289431 => 289432)


--- releases/WebKitGTK/webkit-2.34/ChangeLog	2022-02-08 22:25:26 UTC (rev 289431)
+++ releases/WebKitGTK/webkit-2.34/ChangeLog	2022-02-08 22:25:32 UTC (rev 289432)
@@ -1,3 +1,15 @@
+2022-02-08  Michael Catanzaro  <[email protected]>
+
+        Allow building with ICU 60
+        https://bugs.webkit.org/show_bug.cgi?id=235367
+
+        Unreviewed build fix.
+
+        Turns out we can reduce our ICU requirement from ICU 61 to ICU 60 with only minimal changes.
+
+        * Source/cmake/OptionsGTK.cmake:
+        * Source/cmake/OptionsWPE.cmake:
+
 2022-02-08  Adrian Perez de Castro  <[email protected]>
 
         [WPE] Running distcheck with USE_SOUP2=OFF fails to install documentation

Modified: releases/WebKitGTK/webkit-2.34/Source/_javascript_Core/ChangeLog (289431 => 289432)


--- releases/WebKitGTK/webkit-2.34/Source/_javascript_Core/ChangeLog	2022-02-08 22:25:26 UTC (rev 289431)
+++ releases/WebKitGTK/webkit-2.34/Source/_javascript_Core/ChangeLog	2022-02-08 22:25:32 UTC (rev 289432)
@@ -1,3 +1,15 @@
+2022-02-08  Michael Catanzaro  <[email protected]>
+
+        Allow building with ICU 60
+        https://bugs.webkit.org/show_bug.cgi?id=235367
+
+        Unreviewed build fix.
+
+        Turns out we can reduce our ICU requirement from ICU 61 to ICU 60 with only minimal changes.
+
+        * runtime/IntlCache.cpp:
+        * runtime/IntlCache.h:
+
 2022-02-06  Adrian Perez de Castro  <[email protected]>
 
         Unreviewed non-unified build fix.

Modified: releases/WebKitGTK/webkit-2.34/Source/_javascript_Core/runtime/IntlCache.cpp (289431 => 289432)


--- releases/WebKitGTK/webkit-2.34/Source/_javascript_Core/runtime/IntlCache.cpp	2022-02-08 22:25:26 UTC (rev 289431)
+++ releases/WebKitGTK/webkit-2.34/Source/_javascript_Core/runtime/IntlCache.cpp	2022-02-08 22:25:32 UTC (rev 289432)
@@ -26,6 +26,7 @@
 #include "config.h"
 #include "IntlCache.h"
 
+#include "IntlDisplayNames.h"
 #include <wtf/Vector.h>
 
 namespace JSC {
@@ -53,6 +54,7 @@
     return patternBuffer;
 }
 
+#if HAVE(ICU_U_LOCALE_DISPLAY_NAMES)
 Vector<UChar, 32> IntlCache::getFieldDisplayName(const CString& locale, UDateTimePatternField field, UDateTimePGDisplayWidth width, UErrorCode& status)
 {
     auto sharedGenerator = getSharedPatternGenerator(locale, status);
@@ -64,5 +66,6 @@
         return { };
     return buffer;
 }
+#endif
 
 } // namespace JSC

Modified: releases/WebKitGTK/webkit-2.34/Source/_javascript_Core/runtime/IntlCache.h (289431 => 289432)


--- releases/WebKitGTK/webkit-2.34/Source/_javascript_Core/runtime/IntlCache.h	2022-02-08 22:25:26 UTC (rev 289431)
+++ releases/WebKitGTK/webkit-2.34/Source/_javascript_Core/runtime/IntlCache.h	2022-02-08 22:25:32 UTC (rev 289432)
@@ -25,6 +25,7 @@
 
 #pragma once
 
+#include "IntlDisplayNames.h"
 #include <unicode/udatpg.h>
 #include <wtf/Noncopyable.h>
 #include <wtf/text/CString.h>
@@ -39,7 +40,9 @@
     IntlCache() = default;
 
     Vector<UChar, 32> getBestDateTimePattern(const CString& locale, const UChar* skeleton, unsigned skeletonSize, UErrorCode&);
+#if HAVE(ICU_U_LOCALE_DISPLAY_NAMES)
     Vector<UChar, 32> getFieldDisplayName(const CString& locale, UDateTimePatternField, UDateTimePGDisplayWidth, UErrorCode&);
+#endif
 
 private:
     UDateTimePatternGenerator* getSharedPatternGenerator(const CString& locale, UErrorCode& status)

Modified: releases/WebKitGTK/webkit-2.34/Source/cmake/OptionsGTK.cmake (289431 => 289432)


--- releases/WebKitGTK/webkit-2.34/Source/cmake/OptionsGTK.cmake	2022-02-08 22:25:26 UTC (rev 289431)
+++ releases/WebKitGTK/webkit-2.34/Source/cmake/OptionsGTK.cmake	2022-02-08 22:25:32 UTC (rev 289432)
@@ -14,7 +14,7 @@
 find_package(LibGcrypt 1.6.0 REQUIRED)
 find_package(GLIB 2.44.0 REQUIRED COMPONENTS gio gio-unix gobject gthread gmodule)
 find_package(HarfBuzz 0.9.18 REQUIRED COMPONENTS ICU)
-find_package(ICU 61.2 REQUIRED COMPONENTS data i18n uc)
+find_package(ICU 60.2 REQUIRED COMPONENTS data i18n uc)
 find_package(JPEG REQUIRED)
 find_package(LibXml2 2.8.0 REQUIRED)
 find_package(PNG REQUIRED)

Modified: releases/WebKitGTK/webkit-2.34/Source/cmake/OptionsWPE.cmake (289431 => 289432)


--- releases/WebKitGTK/webkit-2.34/Source/cmake/OptionsWPE.cmake	2022-02-08 22:25:26 UTC (rev 289431)
+++ releases/WebKitGTK/webkit-2.34/Source/cmake/OptionsWPE.cmake	2022-02-08 22:25:32 UTC (rev 289432)
@@ -10,7 +10,7 @@
 find_package(Freetype 2.4.2 REQUIRED)
 find_package(GLIB 2.44.0 REQUIRED COMPONENTS gio gio-unix gobject gthread gmodule)
 find_package(HarfBuzz 0.9.18 REQUIRED COMPONENTS ICU)
-find_package(ICU 61.2 REQUIRED COMPONENTS data i18n uc)
+find_package(ICU 60.2 REQUIRED COMPONENTS data i18n uc)
 find_package(JPEG REQUIRED)
 find_package(LibEpoxy 1.4.0 REQUIRED)
 find_package(LibGcrypt 1.6.0 REQUIRED)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to