From 8341151524666cd9caaba0392b9140840240032a Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Wed, 21 Apr 2021 10:10:28 +0200 Subject: libraries/webkit2gtk: Patch for icu4c >= 69.x. Signed-off-by: Matteo Bernardini --- libraries/webkit2gtk/unhide-deprecated-api.patch | 12 ++++++++++++ libraries/webkit2gtk/webkit2gtk.SlackBuild | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 libraries/webkit2gtk/unhide-deprecated-api.patch (limited to 'libraries/webkit2gtk') diff --git a/libraries/webkit2gtk/unhide-deprecated-api.patch b/libraries/webkit2gtk/unhide-deprecated-api.patch new file mode 100644 index 0000000000..1133632b2d --- /dev/null +++ b/libraries/webkit2gtk/unhide-deprecated-api.patch @@ -0,0 +1,12 @@ +diff --git a/Source/WTF/wtf/Platform.h b/Source/WTF/wtf/Platform.h +index 6fa104c82992..8c8640c3dee7 100644 +--- a/Source/WTF/wtf/Platform.h ++++ b/Source/WTF/wtf/Platform.h +@@ -113,7 +113,6 @@ + + /* FIXME: This does not belong in Platform.h and should instead be included in another mechanism (compiler option, prefix header, config.h, etc) */ + /* 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 + #ifdef __cplusplus + #define UCHAR_TYPE char16_t diff --git a/libraries/webkit2gtk/webkit2gtk.SlackBuild b/libraries/webkit2gtk/webkit2gtk.SlackBuild index 76f9eaa4cf..95bbbcc501 100644 --- a/libraries/webkit2gtk/webkit2gtk.SlackBuild +++ b/libraries/webkit2gtk/webkit2gtk.SlackBuild @@ -70,6 +70,8 @@ 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/unhide-deprecated-api.patch + mkdir -p build cd build cmake -DPORT=GTK \ -- cgit v1.2.3