diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2024-11-06 06:46:14 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-11-06 09:33:55 +0700 |
commit | 9a49ae31f887ffa7eeaa5ed25523d6a82abe517f (patch) | |
tree | 46806235770b3491120bee031ec7dfa41640566c /libraries | |
parent | 2690a7ea8769a1fbb94c6bd4a3b2df2ce040242a (diff) |
libraries/webkit2gtk: Add patch for current.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/webkit2gtk/icu76.patch | 31 | ||||
-rw-r--r-- | libraries/webkit2gtk/webkit2gtk.SlackBuild | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/libraries/webkit2gtk/icu76.patch b/libraries/webkit2gtk/icu76.patch new file mode 100644 index 000000000000..1b999c0de637 --- /dev/null +++ b/libraries/webkit2gtk/icu76.patch @@ -0,0 +1,31 @@ +From 63f7badbada070ebaadd318b2801818ecf7e7ea0 Mon Sep 17 00:00:00 2001 +From: Don Olmstead <don.olmstead@sony.com> +Date: Sat, 26 Oct 2024 08:27:01 -0700 +Subject: [PATCH] Support ICU 76.1 build + https://bugs.webkit.org/show_bug.cgi?id=282120 + +Reviewed by Yusuke Suzuki. + +In ICU 76.1 an additional macro `U_SHOW_CPLUSPLUS_HEADER_API` was added to +control visibility of the C++ API within ICU. Set this value to `0` since WebKit +wants to only use the C API. + +* Source/WTF/wtf/Platform.h: + +Canonical link: https://commits.webkit.org/285727@main +--- + Source/WTF/wtf/Platform.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Source/WTF/wtf/Platform.h b/Source/WTF/wtf/Platform.h +index 23070df2937ba..51a8dce97755e 100644 +--- a/Source/WTF/wtf/Platform.h ++++ b/Source/WTF/wtf/Platform.h +@@ -115,6 +115,7 @@ + /* ICU configuration. Some of these match ICU defaults on some platforms, but we would like them consistently set everywhere we build WebKit. */ + #define U_HIDE_DEPRECATED_API 1 + #define U_SHOW_CPLUSPLUS_API 0 ++#define U_SHOW_CPLUSPLUS_HEADER_API 0 + #ifdef __cplusplus + #define UCHAR_TYPE char16_t + #endif diff --git a/libraries/webkit2gtk/webkit2gtk.SlackBuild b/libraries/webkit2gtk/webkit2gtk.SlackBuild index 18a902da3cac..cb00cfe43ea2 100644 --- a/libraries/webkit2gtk/webkit2gtk.SlackBuild +++ b/libraries/webkit2gtk/webkit2gtk.SlackBuild @@ -77,6 +77,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +patch -p1 < $CWD/icu76.patch patch -p1 < $CWD/unhide-deprecated-api.patch patch -p1 < $CWD/3d5373575695b293b8559155431d0079a6153aff.patch |