Qt 5.15.0 Beta 4
OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:5.15/libqt5-qtwebengine?expand=0&rev=8
This commit is contained in:
parent
5dd6614659
commit
3dd2a699ae
@ -26,23 +26,23 @@ Task-number: QTBUG-82186
|
|||||||
Change-Id: I32009e8482b2634c47082a4c89393dc61c22507e
|
Change-Id: I32009e8482b2634c47082a4c89393dc61c22507e
|
||||||
---
|
---
|
||||||
|
|
||||||
diff --git a/src/3rdparty/chromium/sandbox/linux/services/libc_interceptor.cc b/chromium/sandbox/linux/services/libc_interceptor.cc
|
Index: qtwebengine-everywhere-src-5.15.0-beta4/src/3rdparty/chromium/sandbox/linux/services/libc_interceptor.cc
|
||||||
index ed4dd02..fad77f9 100644
|
===================================================================
|
||||||
--- a/src/3rdparty/chromium/sandbox/linux/services/libc_interceptor.cc
|
--- qtwebengine-everywhere-src-5.15.0-beta4.orig/src/3rdparty/chromium/sandbox/linux/services/libc_interceptor.cc
|
||||||
+++ b/src/3rdparty/chromium/sandbox/linux/services/libc_interceptor.cc
|
+++ qtwebengine-everywhere-src-5.15.0-beta4/src/3rdparty/chromium/sandbox/linux/services/libc_interceptor.cc
|
||||||
@@ -199,6 +199,7 @@
|
@@ -190,6 +190,7 @@ static void InitLibcLocaltimeFunctionsIm
|
||||||
g_libc_funcs->localtime64_r =
|
g_libc_localtime64_r =
|
||||||
reinterpret_cast<LocaltimeRFunction>(dlsym(RTLD_NEXT, "localtime64_r"));
|
reinterpret_cast<LocaltimeRFunction>(dlsym(RTLD_NEXT, "localtime64_r"));
|
||||||
|
|
||||||
+#if !defined(TOOLKIT_QT)
|
+#if !defined(TOOLKIT_QT)
|
||||||
if (!g_libc_funcs->localtime || !g_libc_funcs->localtime_r) {
|
if (!g_libc_localtime || !g_libc_localtime_r) {
|
||||||
// https://bugs.chromium.org/p/chromium/issues/detail?id=16800
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=16800
|
||||||
//
|
//
|
||||||
@@ -210,6 +211,7 @@
|
@@ -201,6 +202,7 @@ static void InitLibcLocaltimeFunctionsIm
|
||||||
" time related functions to misbehave. "
|
" time related functions to misbehave. "
|
||||||
"https://bugs.chromium.org/p/chromium/issues/detail?id=16800";
|
"https://bugs.chromium.org/p/chromium/issues/detail?id=16800";
|
||||||
}
|
}
|
||||||
+#endif
|
+#endif
|
||||||
|
|
||||||
if (!g_libc_funcs->localtime)
|
if (!g_libc_localtime)
|
||||||
g_libc_funcs->localtime = gmtime;
|
g_libc_localtime = gmtime;
|
||||||
|
159
icu-v67.patch
Normal file
159
icu-v67.patch
Normal file
@ -0,0 +1,159 @@
|
|||||||
|
From 3f8dc4b2e5baf77b463334c769af85b79d8c1463 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Frank Tang <ftang@chromium.org>
|
||||||
|
Date: Fri, 3 Apr 2020 23:13:54 -0700
|
||||||
|
Subject: [PATCH] [intl] Remove soon-to-be removed getAllFieldPositions
|
||||||
|
|
||||||
|
Needed to land ICU67.1 soon.
|
||||||
|
|
||||||
|
Bug: v8:10393
|
||||||
|
Change-Id: I3c7737ca600d6ccfdc46ffaddfb318ce60bc7618
|
||||||
|
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2136489
|
||||||
|
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
|
||||||
|
Commit-Queue: Frank Tang <ftang@chromium.org>
|
||||||
|
Cr-Commit-Position: refs/heads/master@{#67027}
|
||||||
|
|
||||||
|
Index: qtwebengine-everywhere-src-5.15.0-beta3/src/3rdparty/chromium/v8/src/objects/js-number-format.cc
|
||||||
|
===================================================================
|
||||||
|
--- qtwebengine-everywhere-src-5.15.0-beta3.orig/src/3rdparty/chromium/v8/src/objects/js-number-format.cc
|
||||||
|
+++ qtwebengine-everywhere-src-5.15.0-beta3/src/3rdparty/chromium/v8/src/objects/js-number-format.cc
|
||||||
|
@@ -1187,42 +1187,31 @@ MaybeHandle<JSNumberFormat> JSNumberForm
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
-Maybe<icu::UnicodeString> IcuFormatNumber(
|
||||||
|
+Maybe<bool> IcuFormatNumber(
|
||||||
|
Isolate* isolate,
|
||||||
|
const icu::number::LocalizedNumberFormatter& number_format,
|
||||||
|
- Handle<Object> numeric_obj, icu::FieldPositionIterator* fp_iter) {
|
||||||
|
+ Handle<Object> numeric_obj, icu::number::FormattedNumber* formatted) {
|
||||||
|
// If it is BigInt, handle it differently.
|
||||||
|
UErrorCode status = U_ZERO_ERROR;
|
||||||
|
- icu::number::FormattedNumber formatted;
|
||||||
|
if (numeric_obj->IsBigInt()) {
|
||||||
|
Handle<BigInt> big_int = Handle<BigInt>::cast(numeric_obj);
|
||||||
|
Handle<String> big_int_string;
|
||||||
|
ASSIGN_RETURN_ON_EXCEPTION_VALUE(isolate, big_int_string,
|
||||||
|
BigInt::ToString(isolate, big_int),
|
||||||
|
- Nothing<icu::UnicodeString>());
|
||||||
|
- formatted = number_format.formatDecimal(
|
||||||
|
+ Nothing<bool>());
|
||||||
|
+ *formatted = number_format.formatDecimal(
|
||||||
|
{big_int_string->ToCString().get(), big_int_string->length()}, status);
|
||||||
|
} else {
|
||||||
|
double number = numeric_obj->Number();
|
||||||
|
- formatted = number_format.formatDouble(number, status);
|
||||||
|
+ *formatted = number_format.formatDouble(number, status);
|
||||||
|
}
|
||||||
|
if (U_FAILURE(status)) {
|
||||||
|
// This happen because of icu data trimming trim out "unit".
|
||||||
|
// See https://bugs.chromium.org/p/v8/issues/detail?id=8641
|
||||||
|
- THROW_NEW_ERROR_RETURN_VALUE(isolate,
|
||||||
|
- NewTypeError(MessageTemplate::kIcuError),
|
||||||
|
- Nothing<icu::UnicodeString>());
|
||||||
|
- }
|
||||||
|
- if (fp_iter) {
|
||||||
|
- formatted.getAllFieldPositions(*fp_iter, status);
|
||||||
|
+ THROW_NEW_ERROR_RETURN_VALUE(
|
||||||
|
+ isolate, NewTypeError(MessageTemplate::kIcuError), Nothing<bool>());
|
||||||
|
}
|
||||||
|
- icu::UnicodeString result = formatted.toString(status);
|
||||||
|
- if (U_FAILURE(status)) {
|
||||||
|
- THROW_NEW_ERROR_RETURN_VALUE(isolate,
|
||||||
|
- NewTypeError(MessageTemplate::kIcuError),
|
||||||
|
- Nothing<icu::UnicodeString>());
|
||||||
|
- }
|
||||||
|
- return Just(result);
|
||||||
|
+ return Just(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace
|
||||||
|
@@ -1233,10 +1222,16 @@ MaybeHandle<String> JSNumberFormat::Form
|
||||||
|
Handle<Object> numeric_obj) {
|
||||||
|
DCHECK(numeric_obj->IsNumeric());
|
||||||
|
|
||||||
|
- Maybe<icu::UnicodeString> maybe_format =
|
||||||
|
- IcuFormatNumber(isolate, number_format, numeric_obj, nullptr);
|
||||||
|
+ icu::number::FormattedNumber formatted;
|
||||||
|
+ Maybe<bool> maybe_format =
|
||||||
|
+ IcuFormatNumber(isolate, number_format, numeric_obj, &formatted);
|
||||||
|
MAYBE_RETURN(maybe_format, Handle<String>());
|
||||||
|
- return Intl::ToString(isolate, maybe_format.FromJust());
|
||||||
|
+ UErrorCode status = U_ZERO_ERROR;
|
||||||
|
+ icu::UnicodeString result = formatted.toString(status);
|
||||||
|
+ if (U_FAILURE(status)) {
|
||||||
|
+ THROW_NEW_ERROR(isolate, NewTypeError(MessageTemplate::kIcuError), String);
|
||||||
|
+ }
|
||||||
|
+ return Intl::ToString(isolate, result);
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
@@ -1349,12 +1344,18 @@ std::vector<NumberFormatSpan> FlattenReg
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
-Maybe<int> ConstructParts(Isolate* isolate, const icu::UnicodeString& formatted,
|
||||||
|
- icu::FieldPositionIterator* fp_iter,
|
||||||
|
+Maybe<int> ConstructParts(Isolate* isolate,
|
||||||
|
+ icu::number::FormattedNumber* formatted,
|
||||||
|
Handle<JSArray> result, int start_index,
|
||||||
|
Handle<Object> numeric_obj, bool style_is_unit) {
|
||||||
|
+ UErrorCode status = U_ZERO_ERROR;
|
||||||
|
+ icu::UnicodeString formatted_text = formatted->toString(status);
|
||||||
|
+ if (U_FAILURE(status)) {
|
||||||
|
+ THROW_NEW_ERROR_RETURN_VALUE(
|
||||||
|
+ isolate, NewTypeError(MessageTemplate::kIcuError), Nothing<int>());
|
||||||
|
+ }
|
||||||
|
DCHECK(numeric_obj->IsNumeric());
|
||||||
|
- int32_t length = formatted.length();
|
||||||
|
+ int32_t length = formatted_text.length();
|
||||||
|
int index = start_index;
|
||||||
|
if (length == 0) return Just(index);
|
||||||
|
|
||||||
|
@@ -1363,13 +1364,14 @@ Maybe<int> ConstructParts(Isolate* isola
|
||||||
|
// other region covers some part of the formatted string. It's possible
|
||||||
|
// there's another field with exactly the same begin and end as this backdrop,
|
||||||
|
// in which case the backdrop's field_id of -1 will give it lower priority.
|
||||||
|
- regions.push_back(NumberFormatSpan(-1, 0, formatted.length()));
|
||||||
|
+ regions.push_back(NumberFormatSpan(-1, 0, formatted_text.length()));
|
||||||
|
|
||||||
|
{
|
||||||
|
- icu::FieldPosition fp;
|
||||||
|
- while (fp_iter->next(fp)) {
|
||||||
|
- regions.push_back(NumberFormatSpan(fp.getField(), fp.getBeginIndex(),
|
||||||
|
- fp.getEndIndex()));
|
||||||
|
+ icu::ConstrainedFieldPosition cfp;
|
||||||
|
+ cfp.constrainCategory(UFIELD_CATEGORY_NUMBER);
|
||||||
|
+ while (formatted->nextPosition(cfp, status)) {
|
||||||
|
+ regions.push_back(
|
||||||
|
+ NumberFormatSpan(cfp.getField(), cfp.getStart(), cfp.getLimit()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -1391,7 +1393,7 @@ Maybe<int> ConstructParts(Isolate* isola
|
||||||
|
Handle<String> substring;
|
||||||
|
ASSIGN_RETURN_ON_EXCEPTION_VALUE(
|
||||||
|
isolate, substring,
|
||||||
|
- Intl::ToString(isolate, formatted, part.begin_pos, part.end_pos),
|
||||||
|
+ Intl::ToString(isolate, formatted_text, part.begin_pos, part.end_pos),
|
||||||
|
Nothing<int>());
|
||||||
|
Intl::AddElement(isolate, result, index, field_type_string, substring);
|
||||||
|
++index;
|
||||||
|
@@ -1411,14 +1413,14 @@ MaybeHandle<JSArray> JSNumberFormat::For
|
||||||
|
number_format->icu_number_formatter().raw();
|
||||||
|
CHECK_NOT_NULL(fmt);
|
||||||
|
|
||||||
|
- icu::FieldPositionIterator fp_iter;
|
||||||
|
- Maybe<icu::UnicodeString> maybe_format =
|
||||||
|
- IcuFormatNumber(isolate, *fmt, numeric_obj, &fp_iter);
|
||||||
|
+ icu::number::FormattedNumber formatted;
|
||||||
|
+ Maybe<bool> maybe_format =
|
||||||
|
+ IcuFormatNumber(isolate, *fmt, numeric_obj, &formatted);
|
||||||
|
MAYBE_RETURN(maybe_format, Handle<JSArray>());
|
||||||
|
|
||||||
|
Handle<JSArray> result = factory->NewJSArray(0);
|
||||||
|
Maybe<int> maybe_format_to_parts = ConstructParts(
|
||||||
|
- isolate, maybe_format.FromJust(), &fp_iter, result, 0, numeric_obj,
|
||||||
|
+ isolate, &formatted, result, 0, numeric_obj,
|
||||||
|
number_format->style() == JSNumberFormat::Style::UNIT);
|
||||||
|
MAYBE_RETURN(maybe_format_to_parts, Handle<JSArray>());
|
||||||
|
|
@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 24 10:19:13 UTC 2020 - Ismail Dönmez <idonmez@suse.com>
|
||||||
|
|
||||||
|
- Add icu-v67.patch to fix compilation with icu v67, this is a backport
|
||||||
|
of https://github.com/v8/v8/commit/3f8dc4b2e5baf77b463334c769af85b79d8c1463
|
||||||
|
- Rebase icu-v67.patch on 5.15.0-beta4
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 24 07:11:42 UTC 2020 - Fabian Vogt <fabian@ritter-vogt.de>
|
||||||
|
|
||||||
|
- Update to 5.15.0-beta4:
|
||||||
|
* New bugfix release
|
||||||
|
* No changelog available
|
||||||
|
- Refresh QTBUG-82186.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Apr 14 06:47:59 UTC 2020 - Fabian Vogt <fabian@ritter-vogt.de>
|
Tue Apr 14 06:47:59 UTC 2020 - Fabian Vogt <fabian@ritter-vogt.de>
|
||||||
|
|
||||||
|
@ -35,16 +35,16 @@
|
|||||||
%global _qtwebengine_dictionaries_dir %{_libqt5_datadir}/qtwebengine_dictionaries
|
%global _qtwebengine_dictionaries_dir %{_libqt5_datadir}/qtwebengine_dictionaries
|
||||||
|
|
||||||
Name: libqt5-qtwebengine
|
Name: libqt5-qtwebengine
|
||||||
Version: 5.15.0~beta3
|
Version: 5.15.0~beta4
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Qt 5 WebEngine Library
|
Summary: Qt 5 WebEngine Library
|
||||||
License: LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
License: LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||||
Group: Development/Libraries/X11
|
Group: Development/Libraries/X11
|
||||||
URL: https://www.qt.io
|
URL: https://www.qt.io
|
||||||
%define base_name libqt5
|
%define base_name libqt5
|
||||||
%define real_version 5.15.0-beta3
|
%define real_version 5.15.0-beta4
|
||||||
%define so_version 5.15.0
|
%define so_version 5.15.0
|
||||||
%define tar_version qtwebengine-everywhere-src-5.15.0-beta3
|
%define tar_version qtwebengine-everywhere-src-5.15.0-beta4
|
||||||
Source: https://download.qt.io/development_releases/qt/5.15/%{real_version}/submodules/%{tar_version}.tar.xz
|
Source: https://download.qt.io/development_releases/qt/5.15/%{real_version}/submodules/%{tar_version}.tar.xz
|
||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
# PATCH-FIX-UPSTREAM armv6-ffmpeg-no-thumb.patch - Fix ffmpeg configuration for armv6
|
# PATCH-FIX-UPSTREAM armv6-ffmpeg-no-thumb.patch - Fix ffmpeg configuration for armv6
|
||||||
@ -58,6 +58,8 @@ Patch5: QTBUG-82186.patch
|
|||||||
# PATCH-FIX-OPENSUSE
|
# PATCH-FIX-OPENSUSE
|
||||||
Patch6: some-more-includes-gcc10.patch
|
Patch6: some-more-includes-gcc10.patch
|
||||||
Patch7: fix1163766.patch
|
Patch7: fix1163766.patch
|
||||||
|
# PATCH-FIX-UPSTREAM https://chromium-review.googlesource.com/c/v8/v8/+/2136489
|
||||||
|
Patch8: icu-v67.patch
|
||||||
# http://www.chromium.org/blink not ported to PowerPC
|
# http://www.chromium.org/blink not ported to PowerPC
|
||||||
ExcludeArch: ppc ppc64 ppc64le s390 s390x
|
ExcludeArch: ppc ppc64 ppc64le s390 s390x
|
||||||
# Try to fix i586 MemoryErrors with rpmlint
|
# Try to fix i586 MemoryErrors with rpmlint
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:5a6ebee3c679e28f8db43c31c01daef9c9d8b8b68d25d29fc66177e7c11b7bf8
|
|
||||||
size 262595012
|
|
3
qtwebengine-everywhere-src-5.15.0-beta4.tar.xz
Normal file
3
qtwebengine-everywhere-src-5.15.0-beta4.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:96da8e77eaf78d89a3f1874b4033cfcff45f84d178a21584d351b587b2fa87aa
|
||||||
|
size 278256808
|
Loading…
Reference in New Issue
Block a user