Compare commits
10 Commits
367bbae3b1
...
6775f754b3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6775f754b3 | ||
|
|
d2c0d6376a | ||
|
|
9fe75c4bb8 | ||
|
|
410a003d58 | ||
|
|
a61a513319 | ||
|
|
3a50cd6803 | ||
|
|
86de6d6964 | ||
|
|
2bc29008b9 | ||
|
|
1a4a435fdd | ||
|
|
ce0d570af6 |
@ -6,7 +6,7 @@
|
||||
|
||||
Name: qt5-qtwebengine
|
||||
Version: 5.11.1
|
||||
Release: 5
|
||||
Release: 9
|
||||
Summary: Qt5 - QtWebEngine components
|
||||
License: (LGPLv2 with exceptions or GPLv3 with exceptions) and BSD and LGPLv2+ and ASL 2.0 and IJG and MIT and GPLv2+ and ISC and OpenSSL and (MPLv1.1 or GPLv2 or LGPLv2)
|
||||
URL: http://www.qt.io
|
||||
@ -42,6 +42,9 @@ Patch0006: qtwebengine-everywhere-src-5.10.0-gn-bootstrap-verbose.patch
|
||||
# to get the value we expect (and chromium checks for). Patch by spot.
|
||||
# From: https://gitlab.com/unity-mageia/qtwebengine5/-/blob/master/qtwebengine-everywhere-src-5.10.1-gcc8-alignof.patch
|
||||
Patch0009: qtwebengine-everywhere-src-5.10.1-gcc8-alignof.patch
|
||||
## bug48291 add for deepin manual
|
||||
Patch0010: qtwebengine-everywhere-src-5.11.1-enable-64k-pagesize.patch
|
||||
|
||||
BuildRequires: qt5-qtbase-devel qt5-qtbase-private-devel qt5-qtdeclarative-devel qt5-qtxmlpatterns-devel
|
||||
BuildRequires: qt5-qtlocation-devel qt5-qtsensors-devel qt5-qtwebchannel-devel qt5-qttools-static
|
||||
BuildRequires: qt5-qtquickcontrols2-devel ninja-build cmake bison flex git-core gperf libicu-devel
|
||||
@ -80,16 +83,11 @@ Requires: qt5-qtwebengine = %{version}-%{release} qt5-qtbase-devel qt5-qtd
|
||||
%description devel
|
||||
Qt5 - QtWebEngine components.
|
||||
|
||||
%package help
|
||||
Summary: Help documentation for qt5-qtwebengine
|
||||
BuildRequires: qt5-qdoc qt5-qhelpgenerator qt5-qtbase-doc qt5-qtxmlpatterns-doc qt5-qtdeclarative-doc
|
||||
Requires: qt5-qtbase-doc qt5-qtxmlpatterns-doc qt5-qtdeclarative-doc
|
||||
Provides: qt5-qtwebengine-doc = %{version}-%{release} qt5-qtwebengine-examples = %{version}-%{release}
|
||||
Obsoletes: qt5-qtwebengine-doc < %{version}-%{release} qt5-qtwebengine-examples < %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
%package examples
|
||||
Summary: Example files for qt5-qtwebengine
|
||||
|
||||
%description help
|
||||
Qt5 - QtWebEngine components.
|
||||
%description examples
|
||||
Example files for qt5-qtwebengine.
|
||||
|
||||
%prep
|
||||
%autosetup -n qtwebengine-everywhere-src-%{version}%{?prerelease:-%{prerelease}} -p1
|
||||
@ -99,9 +97,10 @@ sed -i -e 's!audio_processing//!audio_processing/!g' src/3rdparty/chromium/third
|
||||
sed -i -e 's!\./!!g' src/3rdparty/chromium/third_party/angle/src/compiler/preprocessor/Tokenizer.cpp \
|
||||
src/3rdparty/chromium/third_party/angle/src/compiler/translator/glslang_lex.cpp
|
||||
sed -i -e '/toolprefix = /d' -e 's/\${toolprefix}//g' src/3rdparty/chromium/build/toolchain/linux/BUILD.gn
|
||||
sed -i 's/link_pulseaudio = false/link_pulseaudio = true/g' src/3rdparty/chromium/media/media_options.gni
|
||||
cp -bv /usr/include/re2/*.h src/3rdparty/chromium/third_party/re2/src/re2/
|
||||
cd src/3rdparty
|
||||
python chromium/tools/licenses.py --file-template ../../tools/about_credits.tmpl \
|
||||
python2 chromium/tools/licenses.py --file-template ../../tools/about_credits.tmpl \
|
||||
--entry-template ../../tools/about_credits_entry.tmpl credits >../webengine/doc/src/qtwebengine-3rdparty.qdoc
|
||||
cd -
|
||||
cp -p src/3rdparty/chromium/LICENSE LICENSE.Chromium
|
||||
@ -110,13 +109,11 @@ cp -p src/3rdparty/chromium/LICENSE LICENSE.Chromium
|
||||
export STRIP=strip
|
||||
export NINJAFLAGS="%{__ninja_common_opts}"
|
||||
export NINJA_PATH=%{__ninja}
|
||||
%{qmake_qt5} CONFIG+="force_debug_info" QMAKE_EXTRA_ARGS+="-system-webengine-icu" .
|
||||
%{qmake_qt5} CONFIG+="force_debug_info" CONFIG+="link_pulseaudio" QMAKE_EXTRA_ARGS+="-system-webengine-icu" .
|
||||
%make_build
|
||||
%make_build docs
|
||||
|
||||
%install
|
||||
make install INSTALL_ROOT=%{buildroot}
|
||||
make install_docs INSTALL_ROOT=%{buildroot}
|
||||
echo -e "%_qt5_qtwebengine @@NAME@@\n%_qt5_qtwebengine_epoch @@EPOCH@@\n%_qt5_qtwebengine_version @@VERSION@@\n%_qt5_qtwebengine_evr @@EVR@@" > macros.qt5-qtwebengine
|
||||
install -p -m644 -D macros.qt5-qtwebengine %{buildroot}%(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)/macros.qt5-qtwebengine
|
||||
rm -f macros.qt5-qtwebengine
|
||||
@ -221,10 +218,21 @@ done
|
||||
%{_qt5_libdir}/{libQt5*.so,libQt5*.prl,cmake/Qt5*/,pkgconfig/Qt5*.pc}
|
||||
%{_qt5_archdatadir}/mkspecs/modules/*.pri
|
||||
|
||||
%files help
|
||||
%{_qt5_docdir}/*
|
||||
%files examples
|
||||
%{_qt5_examplesdir}/
|
||||
|
||||
%changelog
|
||||
* Wed Dec 22 2021 weidong <weidong@uniontech.com> - 5.11.1-9
|
||||
- Fix bug48291,enable 64k pagesize
|
||||
|
||||
* Tue May 19 2020 fengtao <fengtao40@huawei.com> - 5.11.1-8
|
||||
- rebuild for libwebp-1.1.0
|
||||
|
||||
* Wed Mar 18 2020 gulining <gulining1@huawei.com> - 5.11.1-7
|
||||
- Fix build error
|
||||
|
||||
* Wed Mar 18 2020 yanglijin <yanglijin@huawei.com> - 5.11.1-6
|
||||
- Remove help package
|
||||
|
||||
* Fri Mar 6 2020 Ling Yang <lingyang2@huawei.com> - 5.11.1-5
|
||||
- Package Init
|
||||
|
||||
89
qtwebengine-everywhere-src-5.11.1-enable-64k-pagesize.patch
Normal file
89
qtwebengine-everywhere-src-5.11.1-enable-64k-pagesize.patch
Normal file
@ -0,0 +1,89 @@
|
||||
diff --git a/src/3rdparty/chromium/base/allocator/partition_allocator/page_allocator.h b/src/3rdparty/chromium/base/allocator/partition_allocator/page_allocator.h
|
||||
index a39b4e3013e82fcfcde99d6e4e0a4bb798260984..a25d7a4e16ba9fec94617e1e82631604ebe1d852 100644
|
||||
--- a/src/3rdparty/chromium/base/allocator/partition_allocator/page_allocator.h
|
||||
+++ b/src/3rdparty/chromium/base/allocator/partition_allocator/page_allocator.h
|
||||
@@ -15,13 +15,13 @@
|
||||
|
||||
namespace base {
|
||||
|
||||
-#if defined(OS_WIN)
|
||||
+//#if defined(OS_WIN)
|
||||
static const size_t kPageAllocationGranularityShift = 16; // 64KB
|
||||
-#elif defined(_MIPS_ARCH_LOONGSON)
|
||||
-static const size_t kPageAllocationGranularityShift = 14; // 16KB
|
||||
-#else
|
||||
-static const size_t kPageAllocationGranularityShift = 12; // 4KB
|
||||
-#endif
|
||||
+//#elif defined(_MIPS_ARCH_LOONGSON)
|
||||
+//static const size_t kPageAllocationGranularityShift = 14; // 16KB
|
||||
+//#else
|
||||
+//static const size_t kPageAllocationGranularityShift = 12; // 4KB
|
||||
+//#endif
|
||||
static const size_t kPageAllocationGranularity =
|
||||
1 << kPageAllocationGranularityShift;
|
||||
static const size_t kPageAllocationGranularityOffsetMask =
|
||||
@@ -29,11 +29,11 @@ static const size_t kPageAllocationGranularityOffsetMask =
|
||||
static const size_t kPageAllocationGranularityBaseMask =
|
||||
~kPageAllocationGranularityOffsetMask;
|
||||
|
||||
-#if defined(_MIPS_ARCH_LOONGSON)
|
||||
-static const size_t kSystemPageSize = 16384;
|
||||
-#else
|
||||
-static const size_t kSystemPageSize = 4096;
|
||||
-#endif
|
||||
+//#if defined(_MIPS_ARCH_LOONGSON)
|
||||
+//static const size_t kSystemPageSize = 16384;
|
||||
+//#else
|
||||
+static const size_t kSystemPageSize = 65536;
|
||||
+//#endif
|
||||
static const size_t kSystemPageOffsetMask = kSystemPageSize - 1;
|
||||
static_assert((kSystemPageSize & (kSystemPageSize - 1)) == 0,
|
||||
"kSystemPageSize must be power of 2");
|
||||
diff --git a/src/3rdparty/chromium/base/allocator/partition_allocator/partition_alloc.h b/src/3rdparty/chromium/base/allocator/partition_allocator/partition_alloc.h
|
||||
index 6e5143b094ae2e99fdcfe6b9d60d93a662200d29..4f7c1498ee2618464a4cd9dfa473ea28ea9a3944 100644
|
||||
--- a/src/3rdparty/chromium/base/allocator/partition_allocator/partition_alloc.h
|
||||
+++ b/src/3rdparty/chromium/base/allocator/partition_allocator/partition_alloc.h
|
||||
@@ -97,11 +97,14 @@ static const size_t kBucketShift = (kAllocationGranularity == 8) ? 3 : 2;
|
||||
// system page of the span. For our current max slot span size of 64k and other
|
||||
// constant values, we pack _all_ PartitionRootGeneric::Alloc() sizes perfectly
|
||||
// up against the end of a system page.
|
||||
-#if defined(_MIPS_ARCH_LOONGSON)
|
||||
-static const size_t kPartitionPageShift = 16; // 64KB
|
||||
-#else
|
||||
-static const size_t kPartitionPageShift = 14; // 16KB
|
||||
-#endif
|
||||
+//#if defined(_MIPS_ARCH_LOONGSON)
|
||||
+//static const size_t kPartitionPageShift = 16; // 64KB
|
||||
+//#else
|
||||
+//static const size_t kPartitionPageShift = 14; // 16KB
|
||||
+//#endif
|
||||
+
|
||||
+static const size_t kPartitionPageShift = 18; // 256KB
|
||||
+
|
||||
static const size_t kPartitionPageSize = 1 << kPartitionPageShift;
|
||||
static const size_t kPartitionPageOffsetMask = kPartitionPageSize - 1;
|
||||
static const size_t kPartitionPageBaseMask = ~kPartitionPageOffsetMask;
|
||||
diff --git a/src/3rdparty/chromium/third_party/WebKit/Source/platform/heap/HeapPage.h b/src/3rdparty/chromium/third_party/WebKit/Source/platform/heap/HeapPage.h
|
||||
index 20674563ebabb60dccbb8adb4ebc2a4b2cee4117..7b47a30d5502f6c1222226017cddfac6082daeec 100644
|
||||
--- a/src/3rdparty/chromium/third_party/WebKit/Source/platform/heap/HeapPage.h
|
||||
+++ b/src/3rdparty/chromium/third_party/WebKit/Source/platform/heap/HeapPage.h
|
||||
@@ -62,15 +62,15 @@ constexpr size_t kBlinkPageBaseMask = ~kBlinkPageOffsetMask;
|
||||
constexpr size_t kBlinkPagesPerRegion = 10;
|
||||
|
||||
// TODO(nya): Replace this with something like #if ENABLE_NACL.
|
||||
-#if 0
|
||||
+//#if 0
|
||||
// NaCl's system page size is 64 KiB. This causes a problem in Oilpan's heap
|
||||
// layout because Oilpan allocates two guard pages for each Blink page (whose
|
||||
// size is kBlinkPageSize = 2^17 = 128 KiB). So we don't use guard pages in
|
||||
// NaCl.
|
||||
constexpr size_t kBlinkGuardPageSize = 0;
|
||||
-#else
|
||||
-constexpr size_t kBlinkGuardPageSize = base::kSystemPageSize;
|
||||
-#endif
|
||||
+//#else
|
||||
+//constexpr size_t kBlinkGuardPageSize = base::kSystemPageSize;
|
||||
+//#endif
|
||||
|
||||
// Double precision floats are more efficient when 8-byte aligned, so we 8-byte
|
||||
// align all allocations (even on 32 bit systems).
|
||||
Loading…
x
Reference in New Issue
Block a user