Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/qt:master commit in: dev-qt/qtwebengine/, dev-qt/qtwebengine/files/
Date: Fri, 24 Dec 2021 23:57:42
Message-Id: 1640390151.83411b823ced34db7cad8f19b7c4212b4af5ffe7.asturm@gentoo
1 commit: 83411b823ced34db7cad8f19b7c4212b4af5ffe7
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 17 06:43:59 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 24 23:55:51 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=83411b82
7
8 dev-qt/qtwebengine: Sync patches from Gentoo ebuild repo
9
10 - pdfium-system-lcms2 patch
11 - supposed systemwide-clang w/ glibc-2.34 fix
12
13 Bug: https://bugs.gentoo.org/828099
14 Package-Manager: Portage-3.0.30, Repoman-3.0.3
15 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
16
17 ...gine-5.15.2_p20211015-pdfium-system-lcms2.patch | 79 ++++++++++++++++++++++
18 ...ngine-5.15.2_p20211210-sandbox-glibc-2.34.patch | 27 ++++++++
19 dev-qt/qtwebengine/qtwebengine-5.15.2.9999.ebuild | 2 +
20 3 files changed, 108 insertions(+)
21
22 diff --git a/dev-qt/qtwebengine/files/qtwebengine-5.15.2_p20211015-pdfium-system-lcms2.patch b/dev-qt/qtwebengine/files/qtwebengine-5.15.2_p20211015-pdfium-system-lcms2.patch
23 new file mode 100644
24 index 00000000..b3c2ffb3
25 --- /dev/null
26 +++ b/dev-qt/qtwebengine/files/qtwebengine-5.15.2_p20211015-pdfium-system-lcms2.patch
27 @@ -0,0 +1,79 @@
28 +Description: Use system lcms2
29 +Author: Sandro Knauß <hefee@××××××.org>
30 +Origin: Debian
31 +Forwarded: https://bugreports.qt.io/browse/QTBUG-61746
32 +Reviewed-by: Sandro Knauß <hefee@××××××.org>
33 +Last-Update: 2021-03-08
34 +---
35 +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
36 +--- a/src/3rdparty/chromium/third_party/pdfium/third_party/BUILD.gn
37 ++++ b/src/3rdparty/chromium/third_party/pdfium/third_party/BUILD.gn
38 +@@ -239,58 +239,19 @@ if (!pdf_use_skia && !pdf_use_skia_paths
39 + }
40 + }
41 +
42 +-config("fx_lcms2_warnings") {
43 +- visibility = [ ":*" ]
44 +- if (is_clang) {
45 +- cflags = [
46 +- # cmslut.cc is sloppy with aggregate initialization. Version 2.7 of this
47 +- # library doesn't appear to have this problem.
48 +- "-Wno-missing-braces",
49 +- ]
50 +- }
51 ++import("//build/shim_headers.gni")
52 ++
53 ++shim_headers("lcms2_shim") {
54 ++ root_path = "lcms/include"
55 ++ headers = [
56 ++ "lcms2.h",
57 ++ "lcms2_plugin.h",
58 ++ ]
59 + }
60 +
61 + source_set("fx_lcms2") {
62 +- configs -= [ "//build/config/compiler:chromium_code" ]
63 +- configs += [
64 +- "//build/config/compiler:no_chromium_code",
65 +- "//build/config/sanitizers:cfi_icall_generalize_pointers",
66 +- ":pdfium_third_party_config",
67 +-
68 +- # Must be after no_chromium_code for warning flags to be ordered correctly.
69 +- ":fx_lcms2_warnings",
70 +- ]
71 +- sources = [
72 +- "lcms/include/lcms2.h",
73 +- "lcms/include/lcms2_plugin.h",
74 +- "lcms/src/cmsalpha.c",
75 +- "lcms/src/cmscam02.c",
76 +- "lcms/src/cmscgats.c",
77 +- "lcms/src/cmscnvrt.c",
78 +- "lcms/src/cmserr.c",
79 +- "lcms/src/cmsgamma.c",
80 +- "lcms/src/cmsgmt.c",
81 +- "lcms/src/cmshalf.c",
82 +- "lcms/src/cmsintrp.c",
83 +- "lcms/src/cmsio0.c",
84 +- "lcms/src/cmsio1.c",
85 +- "lcms/src/cmslut.c",
86 +- "lcms/src/cmsmd5.c",
87 +- "lcms/src/cmsmtrx.c",
88 +- "lcms/src/cmsnamed.c",
89 +- "lcms/src/cmsopt.c",
90 +- "lcms/src/cmspack.c",
91 +- "lcms/src/cmspcs.c",
92 +- "lcms/src/cmsplugin.c",
93 +- "lcms/src/cmsps2.c",
94 +- "lcms/src/cmssamp.c",
95 +- "lcms/src/cmssm.c",
96 +- "lcms/src/cmstypes.c",
97 +- "lcms/src/cmsvirt.c",
98 +- "lcms/src/cmswtpnt.c",
99 +- "lcms/src/cmsxform.c",
100 +- ]
101 +- deps = [ "../core/fxcrt" ]
102 ++ deps = [ ":lcms2_shim" ]
103 ++ libs = ["lcms2"]
104 + }
105 +
106 + if (!build_with_chromium) {
107
108 diff --git a/dev-qt/qtwebengine/files/qtwebengine-5.15.2_p20211210-sandbox-glibc-2.34.patch b/dev-qt/qtwebengine/files/qtwebengine-5.15.2_p20211210-sandbox-glibc-2.34.patch
109 new file mode 100644
110 index 00000000..aac512a3
111 --- /dev/null
112 +++ b/dev-qt/qtwebengine/files/qtwebengine-5.15.2_p20211210-sandbox-glibc-2.34.patch
113 @@ -0,0 +1,27 @@
114 +Patch taken from www-client/chromium:
115 +https://gitweb.gentoo.org/repo/gentoo.git/plain/www-client/chromium/files/chromium-glibc-2.34.patch
116 +
117 +Dropped parts already upstream.
118 +
119 +diff --git a/src/3rdparty/chromium/sandbox/linux/services/credentials.cc b/src/3rdparty/chromium/sandbox/linux/services/credentials.cc
120 +index ca6b595..1c1ee42 100644
121 +--- a/src/3rdparty/chromium/sandbox/linux/services/credentials.cc
122 ++++ b/src/3rdparty/chromium/sandbox/linux/services/credentials.cc
123 +@@ -11,6 +11,7 @@
124 + #include <stddef.h>
125 + #include <stdint.h>
126 + #include <stdio.h>
127 ++#include <string.h>
128 + #include <sys/syscall.h>
129 + #include <sys/types.h>
130 + #include <sys/wait.h>
131 +@@ -100,7 +101,8 @@ bool ChrootToSafeEmptyDir() {
132 + // TODO(crbug.com/1247458) Broken in MSan builds after LLVM f1bb30a4956f.
133 + clone_flags |= CLONE_VM | CLONE_VFORK | CLONE_SETTLS;
134 +
135 +- char tls_buf[PTHREAD_STACK_MIN] = {0};
136 ++ char tls_buf[PTHREAD_STACK_MIN];
137 ++ memset(tls_buf, 0, PTHREAD_STACK_MIN);
138 + tls = tls_buf;
139 + #endif
140 +
141
142 diff --git a/dev-qt/qtwebengine/qtwebengine-5.15.2.9999.ebuild b/dev-qt/qtwebengine/qtwebengine-5.15.2.9999.ebuild
143 index f2b7c789..d7d70f98 100644
144 --- a/dev-qt/qtwebengine/qtwebengine-5.15.2.9999.ebuild
145 +++ b/dev-qt/qtwebengine/qtwebengine-5.15.2.9999.ebuild
146 @@ -105,6 +105,8 @@ PATCHES=(
147 "${FILESDIR}/${PN}-5.15.2-extra_gn.patch" # downstream, bug 774186
148 "${FILESDIR}/${PN}-5.15.2_p20210224-chromium-87-v8-icu68.patch" # downstream, bug 757606
149 "${FILESDIR}/${PN}-5.15.2_p20210224-disable-git.patch" # downstream snapshot fix
150 + "${FILESDIR}/${PN}-5.15.2_p20211015-pdfium-system-lcms2.patch" # by Debian, QTBUG-61746
151 + "${FILESDIR}/${PN}-5.15.2_p20211210-sandbox-glibc-2.34.patch" # bug 828099, systemwide-clang?
152 "${WORKDIR}/${PN}-5.15.2_p20211019-jumbo-build.patch" # bug 813957
153 )