diff options
| author | Andreas Müller <schnitzeltony@gmail.com> | 2020-12-02 22:51:59 +0100 |
|---|---|---|
| committer | Martin 'JaMa' Jansa <Martin.Jansa@gmail.com> | 2021-01-22 11:51:45 +0100 |
| commit | 2c2403e2135b28bed4c3abc62983f753e7502d0c (patch) | |
| tree | d4fe68e37feee284775a86c631c0d5d78292e704 | |
| parent | 7a9f639fbd632dbe23af95c7b8123a0b907c6179 (diff) | |
| download | meta-qt5-2c2403e2135b28bed4c3abc62983f753e7502d0c.tar.gz | |
qtwebkit: fix build with icu >= 68
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
| -rw-r--r-- | recipes-qt/qt5/qtwebkit/0001-Do-not-skip-build-for-cross-compile.patch (renamed from recipes-qt/qt5/qtwebkit/0002-Do-not-skip-build-for-cross-compile.patch) | 0 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtwebkit/0002-Fix-build-with-non-glibc-libc-on-musl.patch (renamed from recipes-qt/qt5/qtwebkit/0003-Fix-build-with-non-glibc-libc-on-musl.patch) | 0 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtwebkit/0003-Fix-build-bug-for-armv32-BE.patch (renamed from recipes-qt/qt5/qtwebkit/0004-Fix-build-bug-for-armv32-BE.patch) | 0 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtwebkit/0004-PlatformQt.cmake-Do-not-generate-hardcoded-include-p.patch (renamed from recipes-qt/qt5/qtwebkit/0005-PlatformQt.cmake-Do-not-generate-hardcoded-include-p.patch) | 0 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtwebkit/0005-Fix-build-with-bison37.patch (renamed from recipes-qt/qt5/qtwebkit/0006-Fix-build-with-bison37.patch) | 0 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtwebkit/0006-Disable-code-related-to-HTTP-2-when-Qt-is-configured.patch (renamed from recipes-qt/qt5/qtwebkit/0007-Disable-code-related-to-HTTP-2-when-Qt-is-configured.patch) | 0 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtwebkit/0007-Fix-compilation-with-Python-3.9-avoid-passing-encodi.patch (renamed from recipes-qt/qt5/qtwebkit/0008-Fix-compilation-with-Python-3.9-avoid-passing-encodi.patch) | 0 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtwebkit/0008-Fix-build-with-icu-68.patch | 125 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtwebkit_git.bb | 15 |
9 files changed, 133 insertions, 7 deletions
diff --git a/recipes-qt/qt5/qtwebkit/0002-Do-not-skip-build-for-cross-compile.patch b/recipes-qt/qt5/qtwebkit/0001-Do-not-skip-build-for-cross-compile.patch index a237d03d..a237d03d 100644 --- a/recipes-qt/qt5/qtwebkit/0002-Do-not-skip-build-for-cross-compile.patch +++ b/recipes-qt/qt5/qtwebkit/0001-Do-not-skip-build-for-cross-compile.patch | |||
diff --git a/recipes-qt/qt5/qtwebkit/0003-Fix-build-with-non-glibc-libc-on-musl.patch b/recipes-qt/qt5/qtwebkit/0002-Fix-build-with-non-glibc-libc-on-musl.patch index bf79b363..bf79b363 100644 --- a/recipes-qt/qt5/qtwebkit/0003-Fix-build-with-non-glibc-libc-on-musl.patch +++ b/recipes-qt/qt5/qtwebkit/0002-Fix-build-with-non-glibc-libc-on-musl.patch | |||
diff --git a/recipes-qt/qt5/qtwebkit/0004-Fix-build-bug-for-armv32-BE.patch b/recipes-qt/qt5/qtwebkit/0003-Fix-build-bug-for-armv32-BE.patch index ffd8da0f..ffd8da0f 100644 --- a/recipes-qt/qt5/qtwebkit/0004-Fix-build-bug-for-armv32-BE.patch +++ b/recipes-qt/qt5/qtwebkit/0003-Fix-build-bug-for-armv32-BE.patch | |||
diff --git a/recipes-qt/qt5/qtwebkit/0005-PlatformQt.cmake-Do-not-generate-hardcoded-include-p.patch b/recipes-qt/qt5/qtwebkit/0004-PlatformQt.cmake-Do-not-generate-hardcoded-include-p.patch index 14cb8aa4..14cb8aa4 100644 --- a/recipes-qt/qt5/qtwebkit/0005-PlatformQt.cmake-Do-not-generate-hardcoded-include-p.patch +++ b/recipes-qt/qt5/qtwebkit/0004-PlatformQt.cmake-Do-not-generate-hardcoded-include-p.patch | |||
diff --git a/recipes-qt/qt5/qtwebkit/0006-Fix-build-with-bison37.patch b/recipes-qt/qt5/qtwebkit/0005-Fix-build-with-bison37.patch index 9262f5fe..9262f5fe 100644 --- a/recipes-qt/qt5/qtwebkit/0006-Fix-build-with-bison37.patch +++ b/recipes-qt/qt5/qtwebkit/0005-Fix-build-with-bison37.patch | |||
diff --git a/recipes-qt/qt5/qtwebkit/0007-Disable-code-related-to-HTTP-2-when-Qt-is-configured.patch b/recipes-qt/qt5/qtwebkit/0006-Disable-code-related-to-HTTP-2-when-Qt-is-configured.patch index 15607c0d..15607c0d 100644 --- a/recipes-qt/qt5/qtwebkit/0007-Disable-code-related-to-HTTP-2-when-Qt-is-configured.patch +++ b/recipes-qt/qt5/qtwebkit/0006-Disable-code-related-to-HTTP-2-when-Qt-is-configured.patch | |||
diff --git a/recipes-qt/qt5/qtwebkit/0008-Fix-compilation-with-Python-3.9-avoid-passing-encodi.patch b/recipes-qt/qt5/qtwebkit/0007-Fix-compilation-with-Python-3.9-avoid-passing-encodi.patch index 4eef3451..4eef3451 100644 --- a/recipes-qt/qt5/qtwebkit/0008-Fix-compilation-with-Python-3.9-avoid-passing-encodi.patch +++ b/recipes-qt/qt5/qtwebkit/0007-Fix-compilation-with-Python-3.9-avoid-passing-encodi.patch | |||
diff --git a/recipes-qt/qt5/qtwebkit/0008-Fix-build-with-icu-68.patch b/recipes-qt/qt5/qtwebkit/0008-Fix-build-with-icu-68.patch new file mode 100644 index 00000000..1715c8f3 --- /dev/null +++ b/recipes-qt/qt5/qtwebkit/0008-Fix-build-with-icu-68.patch | |||
| @@ -0,0 +1,125 @@ | |||
| 1 | From 0e94085f74b562bf8edf5418142323785a069454 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
| 3 | Date: Wed, 2 Dec 2020 22:34:54 +0100 | ||
| 4 | Subject: [PATCH] Fix build with icu >= 68 | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | Upstream-Status: Pending | ||
| 10 | |||
| 11 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | ||
| 12 | --- | ||
| 13 | Source/WebCore/platform/text/TextCodecICU.cpp | 15 +++++++++++++++ | ||
| 14 | Source/WebCore/platform/text/icu/UTextProvider.h | 15 +++++++++++++++ | ||
| 15 | .../platform/text/icu/UTextProviderLatin1.cpp | 15 +++++++++++++++ | ||
| 16 | .../platform/text/icu/UTextProviderUTF16.cpp | 15 +++++++++++++++ | ||
| 17 | 4 files changed, 60 insertions(+) | ||
| 18 | |||
| 19 | diff --git a/Source/WebCore/platform/text/TextCodecICU.cpp b/Source/WebCore/platform/text/TextCodecICU.cpp | ||
| 20 | index dd6ff0675..7ce8a70ef 100644 | ||
| 21 | --- a/Source/WebCore/platform/text/TextCodecICU.cpp | ||
| 22 | +++ b/Source/WebCore/platform/text/TextCodecICU.cpp | ||
| 23 | @@ -39,6 +39,21 @@ | ||
| 24 | #include <wtf/text/StringBuilder.h> | ||
| 25 | #include <wtf/unicode/CharacterNames.h> | ||
| 26 | |||
| 27 | +// Since icu 68.1 icu we have to: | ||
| 28 | +#ifndef TRUE | ||
| 29 | +// Taken from umachibe.h: | ||
| 30 | +/** | ||
| 31 | + * The TRUE value of a UBool. | ||
| 32 | + * | ||
| 33 | + * @deprecated ICU 68 Use standard "true" instead. | ||
| 34 | + */ | ||
| 35 | +# define TRUE true | ||
| 36 | +#endif | ||
| 37 | + | ||
| 38 | +#ifndef FALSE | ||
| 39 | +# define FALSE false | ||
| 40 | +#endif | ||
| 41 | + | ||
| 42 | namespace WebCore { | ||
| 43 | |||
| 44 | const size_t ConversionBufferSize = 16384; | ||
| 45 | diff --git a/Source/WebCore/platform/text/icu/UTextProvider.h b/Source/WebCore/platform/text/icu/UTextProvider.h | ||
| 46 | index c254fc4c7..9d2ad8b8c 100644 | ||
| 47 | --- a/Source/WebCore/platform/text/icu/UTextProvider.h | ||
| 48 | +++ b/Source/WebCore/platform/text/icu/UTextProvider.h | ||
| 49 | @@ -28,6 +28,21 @@ | ||
| 50 | |||
| 51 | #include <unicode/utext.h> | ||
| 52 | |||
| 53 | +// Since icu 68.1 icu we have to: | ||
| 54 | +#ifndef TRUE | ||
| 55 | +// Taken from umachibe.h: | ||
| 56 | +/** | ||
| 57 | + * The TRUE value of a UBool. | ||
| 58 | + * | ||
| 59 | + * @deprecated ICU 68 Use standard "true" instead. | ||
| 60 | + */ | ||
| 61 | +# define TRUE true | ||
| 62 | +#endif | ||
| 63 | + | ||
| 64 | +#ifndef FALSE | ||
| 65 | +# define FALSE false | ||
| 66 | +#endif | ||
| 67 | + | ||
| 68 | namespace WebCore { | ||
| 69 | |||
| 70 | enum class UTextProviderContext { | ||
| 71 | diff --git a/Source/WebCore/platform/text/icu/UTextProviderLatin1.cpp b/Source/WebCore/platform/text/icu/UTextProviderLatin1.cpp | ||
| 72 | index cd6852c71..0c95ea529 100644 | ||
| 73 | --- a/Source/WebCore/platform/text/icu/UTextProviderLatin1.cpp | ||
| 74 | +++ b/Source/WebCore/platform/text/icu/UTextProviderLatin1.cpp | ||
| 75 | @@ -29,6 +29,21 @@ | ||
| 76 | #include "UTextProvider.h" | ||
| 77 | #include <wtf/text/StringImpl.h> | ||
| 78 | |||
| 79 | +// Since icu 68.1 icu we have to: | ||
| 80 | +#ifndef TRUE | ||
| 81 | +// Taken from umachibe.h: | ||
| 82 | +/** | ||
| 83 | + * The TRUE value of a UBool. | ||
| 84 | + * | ||
| 85 | + * @deprecated ICU 68 Use standard "true" instead. | ||
| 86 | + */ | ||
| 87 | +# define TRUE true | ||
| 88 | +#endif | ||
| 89 | + | ||
| 90 | +#ifndef FALSE | ||
| 91 | +# define FALSE false | ||
| 92 | +#endif | ||
| 93 | + | ||
| 94 | namespace WebCore { | ||
| 95 | |||
| 96 | // Latin1 provider | ||
| 97 | diff --git a/Source/WebCore/platform/text/icu/UTextProviderUTF16.cpp b/Source/WebCore/platform/text/icu/UTextProviderUTF16.cpp | ||
| 98 | index 7aaac48c8..6ac693602 100644 | ||
| 99 | --- a/Source/WebCore/platform/text/icu/UTextProviderUTF16.cpp | ||
| 100 | +++ b/Source/WebCore/platform/text/icu/UTextProviderUTF16.cpp | ||
| 101 | @@ -28,6 +28,21 @@ | ||
| 102 | |||
| 103 | #include "UTextProvider.h" | ||
| 104 | |||
| 105 | +// Since icu 68.1 icu we have to: | ||
| 106 | +#ifndef TRUE | ||
| 107 | +// Taken from umachibe.h: | ||
| 108 | +/** | ||
| 109 | + * The TRUE value of a UBool. | ||
| 110 | + * | ||
| 111 | + * @deprecated ICU 68 Use standard "true" instead. | ||
| 112 | + */ | ||
| 113 | +# define TRUE true | ||
| 114 | +#endif | ||
| 115 | + | ||
| 116 | +#ifndef FALSE | ||
| 117 | +# define FALSE false | ||
| 118 | +#endif | ||
| 119 | + | ||
| 120 | namespace WebCore { | ||
| 121 | |||
| 122 | // UTF16ContextAware provider | ||
| 123 | -- | ||
| 124 | 2.26.2 | ||
| 125 | |||
diff --git a/recipes-qt/qt5/qtwebkit_git.bb b/recipes-qt/qt5/qtwebkit_git.bb index 9ce948e0..e415dabc 100644 --- a/recipes-qt/qt5/qtwebkit_git.bb +++ b/recipes-qt/qt5/qtwebkit_git.bb | |||
| @@ -12,13 +12,14 @@ DEPENDS += "qtbase qtdeclarative icu ruby-native sqlite3 glib-2.0 libxslt gperf- | |||
| 12 | # Patches from https://github.com/meta-qt5/qtwebkit/commits/b5.13 | 12 | # Patches from https://github.com/meta-qt5/qtwebkit/commits/b5.13 |
| 13 | # 5.13.meta-qt5.1 | 13 | # 5.13.meta-qt5.1 |
| 14 | SRC_URI += "\ | 14 | SRC_URI += "\ |
| 15 | file://0002-Do-not-skip-build-for-cross-compile.patch \ | 15 | file://0001-Do-not-skip-build-for-cross-compile.patch \ |
| 16 | file://0003-Fix-build-with-non-glibc-libc-on-musl.patch \ | 16 | file://0002-Fix-build-with-non-glibc-libc-on-musl.patch \ |
| 17 | file://0004-Fix-build-bug-for-armv32-BE.patch \ | 17 | file://0003-Fix-build-bug-for-armv32-BE.patch \ |
| 18 | file://0005-PlatformQt.cmake-Do-not-generate-hardcoded-include-p.patch \ | 18 | file://0004-PlatformQt.cmake-Do-not-generate-hardcoded-include-p.patch \ |
| 19 | file://0006-Fix-build-with-bison37.patch \ | 19 | file://0005-Fix-build-with-bison37.patch \ |
| 20 | file://0007-Disable-code-related-to-HTTP-2-when-Qt-is-configured.patch \ | 20 | file://0006-Disable-code-related-to-HTTP-2-when-Qt-is-configured.patch \ |
| 21 | file://0008-Fix-compilation-with-Python-3.9-avoid-passing-encodi.patch \ | 21 | file://0007-Fix-compilation-with-Python-3.9-avoid-passing-encodi.patch \ |
| 22 | file://0008-Fix-build-with-icu-68.patch \ | ||
| 22 | " | 23 | " |
| 23 | 24 | ||
| 24 | inherit cmake_qt5 perlnative | 25 | inherit cmake_qt5 perlnative |
