dev-qt/qtwebengine: Fix build with >=ICU-60
authorAndreas Sturmlechner <asturm@gentoo.org>
Tue, 5 Dec 2017 00:52:02 +0000 (01:52 +0100)
committerMichael Palimaka <kensington@gentoo.org>
Tue, 5 Dec 2017 11:21:26 +0000 (22:21 +1100)
Closes: https://bugs.gentoo.org/639220
Package-Manager: Portage-2.3.16, Repoman-2.3.6

dev-qt/qtwebengine/files/qtwebengine-5.9.3-icu-60.1.patch [new file with mode: 0644]
dev-qt/qtwebengine/qtwebengine-5.9.3.ebuild

diff --git a/dev-qt/qtwebengine/files/qtwebengine-5.9.3-icu-60.1.patch b/dev-qt/qtwebengine/files/qtwebengine-5.9.3-icu-60.1.patch
new file mode 100644 (file)
index 0000000..9866ab9
--- /dev/null
@@ -0,0 +1,16 @@
+Fix build with >=ICU-60
+
+Bug: https://bugs.gentoo.org/639220
+Bug: https://bugreports.qt.io/browse/QTBUG-64925
+
+--- a/src/3rdparty/chromium/components/url_formatter/url_formatter.cc
++++ b/src/3rdparty/chromium/components/url_formatter/url_formatter.cc
+@@ -488,7 +488,7 @@
+   // are added to the allowed set. The list has to be updated when a new
+   // version of Unicode is released. The current version is 9.0.0 and ICU 60
+   // will have Unicode 10.0 data.
+-#if U_ICU_VERSION_MAJOR_NUM < 60
++#if U_ICU_VERSION_MAJOR_NUM < 60 || defined(TOOLKIT_QT)
+   const icu::UnicodeSet aspirational_scripts(
+       icu::UnicodeString(
+           // Unified Canadian Syllabics
index 2c0bd6388d557ee7472a5eb8d2d7117b004cbbca..afb0d89df444ef30378b3a4e728f3c153f3e7647 100644 (file)
@@ -73,6 +73,8 @@ DEPEND="${RDEPEND}
        pax_kernel? ( sys-apps/elfix )
 "
 
+PATCHES=( "${FILESDIR}/${P}-icu-60.1.patch" )
+
 src_prepare() {
        use pax_kernel && PATCHES+=( "${FILESDIR}/${PN}-5.9.0-paxmark-mksnapshot.patch" )