Skip to content

Commit c0dba3f

Browse files
committed
electron8: update to v8.1.1.
Chromium patches have been obtained from www/chromium r528250.
1 parent 24f9a42 commit c0dba3f

File tree

55 files changed

+736
-800
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+736
-800
lines changed

devel/electron8/Makefile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PORTNAME= electron
44
DISTVERSIONPREFIX= v
55
DISTVERSION= ${ELECTRON_VER:S/-beta./.b/}
66
CATEGORIES= devel java
7-
MASTER_SITES= https://github.com/tagattie/FreeBSD-Electron/releases/download/v8.0.3/:chromium \
7+
MASTER_SITES= https://github.com/tagattie/FreeBSD-Electron/releases/download/v8.1.1/:chromium \
88
https://commondatastorage.googleapis.com/chromium-browser-official/:chromium_official \
99
https://commondatastorage.googleapis.com/chromium-nodejs/:chromium_node \
1010
https://commondatastorage.googleapis.com/chromium-fonts/:chromium_testfonts
@@ -42,6 +42,7 @@ LIB_DEPENDS= libatk-bridge-2.0.so:accessibility/at-spi2-atk \
4242
libnspr4.so:devel/nspr \
4343
libre2.so:devel/re2 \
4444
libdrm.so:graphics/libdrm \
45+
libpng.so:graphics/png \
4546
libwebp.so:graphics/webp \
4647
libavcodec.so:multimedia/ffmpeg \
4748
libopenh264.so:multimedia/openh264 \
@@ -68,9 +69,9 @@ GH_TUPLE= nodejs:node:v${NODE_VER}:node \
6869
# kennethreitz:requests:e4d59bedfd3c7f4f254f4f5d036587bcd8152458:requests
6970

7071
# Official chromium version containing "gn" which is known to work
71-
CHROMIUM_OFFICIAL_VER= 80.0.3987.122
72+
CHROMIUM_OFFICIAL_VER= 80.0.3987.132
7273
# See ${WRKSRC}/electron/DEPS for CHROMIUM_VER
73-
CHROMIUM_VER= 80.0.3987.134
74+
CHROMIUM_VER= 80.0.3987.141
7475
# See ${WRKSRC}/third_party/node/node_modules.tar.gz.sha1 for CHROMIUM_NODE_MODULES_HASH
7576
CHROMIUM_NODE_MODULES_HASH= a9603a3dc03fa41af9cc5c8ac28d23d1f98dfe3c
7677
# See ${WRKSRC}/third_party/test_fonts/test_fonts.tar.gz.sha1 for CHROMIUM_TEST_FONTS_HASH
@@ -162,7 +163,7 @@ PULSEAUDIO_VARS_OFF= GN_ARGS+=use_pulseaudio=false
162163
POST_BUILD_TARGETS= licenses version
163164
POST_BUILD_DIST_TARGETS= electron_dist_zip electron_chromedriver_zip electron_mksnapshot_zip
164165

165-
YARN_TIMESTAMP= 1583225313
166+
YARN_TIMESTAMP= 1583989772
166167

167168
PLIST_SUB= ELECTRON_VER=${ELECTRON_VER} \
168169
ELECTRON_VER_MAJOR=${ELECTRON_VER_MAJOR}
@@ -228,8 +229,8 @@ post-extract:
228229

229230
pre-patch:
230231
${SH} ${FILESDIR}/apply-electron-patches.sh ${WRKSRC}
231-
${FIND} ${WRKSRC} -type f -name '*.orig' -print -delete
232-
${FIND} ${WRKSRC} -type f -name '*~' -print -delete
232+
# ${FIND} ${WRKSRC} -type f -name '*.orig' -print -delete
233+
# ${FIND} ${WRKSRC} -type f -name '*~' -print -delete
233234

234235
pre-configure:
235236
# cd ${WRKSRC}/electron/vendor/${GH_PROJECT_boto} && \
@@ -242,8 +243,8 @@ pre-configure:
242243
#./build/linux/unbundle/remove_bundled_libraries.py [list of preserved]
243244
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${PYTHON_CMD} \
244245
./build/linux/unbundle/replace_gn_files.py --system-libraries \
245-
ffmpeg flac freetype harfbuzz-ng libdrm libusb libwebp libxslt \
246-
openh264 opus snappy yasm || ${FALSE}
246+
ffmpeg flac fontconfig freetype harfbuzz-ng libdrm libpng \
247+
libusb libwebp libxml libxslt openh264 opus snappy yasm || ${FALSE}
247248

248249
do-configure:
249250
# GN generator bootstrapping and generating ninja files

devel/electron8/Makefile.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# $FreeBSD$
22

3-
ELECTRON_VER= 8.0.3
3+
ELECTRON_VER= 8.1.1
44
ELECTRON_VER_MAJOR= ${ELECTRON_VER:C/\..*//}

devel/electron8/distinfo

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
TIMESTAMP = 1583226734
2-
SHA256 (electron/chromium-80.0.3987.134.tar.xz) = 53e75cba0c915a21a6e0bf42e712f9909d83d4baaec1b2d7d7a46979e152bfff
3-
SIZE (electron/chromium-80.0.3987.134.tar.xz) = 1402880060
4-
SHA256 (electron/chromium-80.0.3987.122.tar.xz) = 48ebcbdcc20fa5864f1b0f0bf8163f8801ed59f82d13744f0303b497db412473
5-
SIZE (electron/chromium-80.0.3987.122.tar.xz) = 801340492
1+
TIMESTAMP = 1583990380
2+
SHA256 (electron/chromium-80.0.3987.141.tar.xz) = 3282df70e4f805f354131e07d3fef8c31dcf28f9b0997af42b376736b897d5c0
3+
SIZE (electron/chromium-80.0.3987.141.tar.xz) = 1403988704
4+
SHA256 (electron/chromium-80.0.3987.132.tar.xz) = 2c0012059046a5a7e2bf6e9502f1898f1953226d63b724b82fc18226e285c201
5+
SIZE (electron/chromium-80.0.3987.132.tar.xz) = 796975056
66
SHA256 (electron/a9603a3dc03fa41af9cc5c8ac28d23d1f98dfe3c) = b8b23fa102ddea8b6b4b6b9161c76636fd48b37e6bcfe955e56bfe04e31ba13b
77
SIZE (electron/a9603a3dc03fa41af9cc5c8ac28d23d1f98dfe3c) = 8072260
88
SHA256 (electron/a22de844e32a3f720d219e3911c3da3478039f89) = 6e331676d098a57c53c1250821dc47ed84c47f823901bf30c4704df90d8a34be
99
SIZE (electron/a22de844e32a3f720d219e3911c3da3478039f89) = 17469927
10-
SHA256 (electron/electron-yarn-cache-8.0.3.tar.xz) = da659d02e4c4945a37a323b2a399b811f1d5a0898384652efa1a9b5cb901cd4e
11-
SIZE (electron/electron-yarn-cache-8.0.3.tar.xz) = 32374720
12-
SHA256 (electron/electron-electron-v8.0.3_GH0.tar.gz) = e3d015479e725a12ef7259f401b8d30b8d0fed74a211aba314b6a402a3117fa6
13-
SIZE (electron/electron-electron-v8.0.3_GH0.tar.gz) = 5423521
10+
SHA256 (electron/electron-yarn-cache-8.1.1.tar.xz) = 630ba4e166aa7d9045ad705f372600c327f2447b0de30b8795d20cd28c131405
11+
SIZE (electron/electron-yarn-cache-8.1.1.tar.xz) = 32374184
12+
SHA256 (electron/electron-electron-v8.1.1_GH0.tar.gz) = 6a4486ae4e88ea895f589dd87692e00d288f89cd56ed01d3acaacc414009b4c5
13+
SIZE (electron/electron-electron-v8.1.1_GH0.tar.gz) = 5426414
1414
SHA256 (electron/nodejs-node-v12.13.0_GH0.tar.gz) = 91518dc2506e33d3ac919ed781661082c620b888fa79c2483f4f902584d0e1d9
1515
SIZE (electron/nodejs-node-v12.13.0_GH0.tar.gz) = 72661495
1616
SHA256 (electron/nodejs-nan-2ee313aaca52e2b478965ac50eb5082520380d1b_GH0.tar.gz) = e6d0727f2f33d6c0fdbee3182543cb23679551dc15318cc8a2489901eabe9915

devel/electron8/files/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "electron",
3-
"version": "8.0.3",
3+
"version": "8.1.1",
44
"repository": "https://github.com/electron/electron",
55
"description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
66
"devDependencies": {

devel/electron8/files/patch-base_BUILD.gn

Lines changed: 5 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,6 @@
1-
--- base/BUILD.gn.orig 2020-03-03 07:02:14 UTC
1+
--- base/BUILD.gn.orig 2020-03-11 11:34:46 UTC
22
+++ base/BUILD.gn
3-
@@ -908,7 +908,7 @@ jumbo_component("base") {
4-
"timer/hi_res_timer_manager_posix.cc",
5-
]
6-
7-
- if (!is_nacl && !is_mac && !is_ios) {
8-
+ if (!is_nacl && !is_mac && !is_ios && !is_bsd) {
9-
sources += [
10-
"profiler/stack_copier_signal.cc",
11-
"profiler/stack_copier_signal.h",
12-
@@ -917,6 +917,12 @@ jumbo_component("base") {
13-
"profiler/thread_delegate_posix.h",
14-
]
15-
}
16-
+
17-
+ if (is_bsd) {
18-
+ sources += [
19-
+ "profiler/stack_sampler_posix.cc",
20-
+ ]
21-
+ }
22-
}
23-
24-
if (is_win) {
25-
@@ -1302,7 +1308,7 @@ jumbo_component("base") {
3+
@@ -1302,7 +1302,7 @@ jumbo_component("base") {
264
# Needed for <atomic> if using newer C++ library than sysroot, except if
275
# building inside the cros_sdk environment - use host_toolchain as a
286
# more robust check for this.
@@ -31,7 +9,7 @@
319
host_toolchain != "//build/toolchain/cros:host") {
3210
libs += [ "atomic" ]
3311
}
34-
@@ -1328,7 +1334,7 @@ jumbo_component("base") {
12+
@@ -1328,7 +1328,7 @@ jumbo_component("base") {
3513
"allocator/allocator_shim_override_glibc_weak_symbols.h",
3614
]
3715
deps += [ "//base/allocator:tcmalloc" ]
@@ -40,7 +18,7 @@
4018
sources += [ "allocator/allocator_shim_default_dispatch_to_glibc.cc" ]
4119
} else if (is_android && use_allocator == "none") {
4220
sources += [
43-
@@ -1919,6 +1925,33 @@ jumbo_component("base") {
21+
@@ -1919,6 +1919,33 @@ jumbo_component("base") {
4422
}
4523
}
4624

@@ -74,16 +52,7 @@
7452
# iOS
7553
if (is_ios) {
7654
sources -= [
77-
@@ -2885,7 +2918,7 @@ test("base_unittests") {
78-
"posix/unix_domain_socket_unittest.cc",
79-
"task/thread_pool/task_tracker_posix_unittest.cc",
80-
]
81-
- if (!is_nacl && !is_mac && !is_ios) {
82-
+ if (!is_nacl && !is_mac && !is_ios && !is_bsd) {
83-
sources += [ "profiler/stack_copier_signal_unittest.cc" ]
84-
}
85-
}
86-
@@ -3069,6 +3102,12 @@ test("base_unittests") {
55+
@@ -3069,6 +3096,12 @@ test("base_unittests") {
8756

8857
manifest = "//build/config/fuchsia/tests.cmx"
8958
}

devel/electron8/files/patch-base_debug_elf__reader.cc

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,14 @@
1-
--- base/debug/elf_reader.cc.orig 2020-03-03 07:02:14 UTC
1+
--- base/debug/elf_reader.cc.orig 2020-03-11 11:34:46 UTC
22
+++ base/debug/elf_reader.cc
3-
@@ -35,7 +35,9 @@ using Nhdr = Elf64_Nhdr;
4-
using Word = Elf64_Word;
5-
#endif
6-
7-
+#if !defined(OS_BSD)
8-
constexpr char kGnuNoteName[] = "GNU";
9-
+#endif
10-
11-
// Returns a pointer to the header of the ELF binary mapped into memory,
12-
// or a null pointer if the header is invalid.
13-
@@ -98,6 +100,7 @@ size_t ReadElfBuildId(const void* elf_mapped_base,
3+
@@ -98,6 +98,7 @@ size_t ReadElfBuildId(const void* elf_mapped_base,
144
bool found = false;
155
while (current_section < section_end) {
166
current_note = reinterpret_cast<const Nhdr*>(current_section);
177
+#if !defined(OS_BSD)
188
if (current_note->n_type == NT_GNU_BUILD_ID) {
199
StringPiece note_name(current_section + sizeof(Nhdr),
2010
current_note->n_namesz);
21-
@@ -107,6 +110,7 @@ size_t ReadElfBuildId(const void* elf_mapped_base,
11+
@@ -107,6 +108,7 @@ size_t ReadElfBuildId(const void* elf_mapped_base,
2212
break;
2313
}
2414
}

devel/electron8/files/patch-base_memory_discardable__memory.cc

Lines changed: 0 additions & 63 deletions
This file was deleted.

devel/electron8/files/patch-base_memory_discardable__memory__internal.h

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 22 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--- base/profiler/register_context.h.orig 2020-03-03 07:02:14 UTC
1+
--- base/profiler/register_context.h.orig 2020-03-11 11:34:46 UTC
22
+++ base/profiler/register_context.h
33
@@ -17,7 +17,7 @@
44
#include <windows.h>
@@ -9,60 +9,52 @@
99
#include <sys/ucontext.h>
1010
#endif
1111

12-
@@ -136,6 +136,56 @@ inline uintptr_t& RegisterContextInstructionPointer(mc
12+
@@ -152,6 +152,48 @@ inline uintptr_t& RegisterContextInstructionPointer(mc
1313
}
1414

15-
#else // #if defined(ARCH_CPU_ARM_FAMILY) && defined(ARCH_CPU_32_BITS)
15+
#endif // #if defined(ARCH_CPU_ARM_FAMILY) && defined(ARCH_CPU_32_BITS)
1616
+
17-
+// Placeholders for other POSIX platforms that just return the first
18-
+// three register slots in the context.
17+
+#elif defined(OS_FREEBSD)
18+
+
19+
+using RegisterContext = mcontext_t;
20+
+
21+
+#if defined(ARCH_CPU_X86_64)
1922
+inline uintptr_t& RegisterContextStackPointer(mcontext_t* context) {
20-
+ return *reinterpret_cast<uintptr_t*>(context);
23+
+ return AsUintPtr(&context->mc_rsp);
2124
+}
2225
+
2326
+inline uintptr_t& RegisterContextFramePointer(mcontext_t* context) {
24-
+ return *(reinterpret_cast<uintptr_t*>(context) + 1);
27+
+ return AsUintPtr(&context->mc_rbp);
2528
+}
2629
+
2730
+inline uintptr_t& RegisterContextInstructionPointer(mcontext_t* context) {
28-
+ return *(reinterpret_cast<uintptr_t*>(context) + 2);
31+
+ return AsUintPtr(&context->mc_rip);
2932
+}
30-
+
31-
+#endif // #if defined(ARCH_CPU_ARM_FAMILY) && defined(ARCH_CPU_32_BITS)
32-
+
33-
+#elif defined(OS_BSD) // #if defined(OS_WIN)
34-
+
35-
+using RegisterContext = mcontext_t;
36-
+
37-
+#if defined(ARCH_CPU_ARM_FAMILY)
38-
+
33+
+#elif defined(ARCH_CPU_X86)
3934
+inline uintptr_t& RegisterContextStackPointer(mcontext_t* context) {
40-
+ return AsUintPtr(&context->__gregs[_REG_SP]);
35+
+ return AsUintPtr(&context->mc_esp);
4136
+}
4237
+
4338
+inline uintptr_t& RegisterContextFramePointer(mcontext_t* context) {
44-
+ return AsUintPtr(&context->__gregs[_REG_FP]);
39+
+ return AsUintPtr(&context->mc_ebp);
4540
+}
4641
+
4742
+inline uintptr_t& RegisterContextInstructionPointer(mcontext_t* context) {
48-
+ return AsUintPtr(&context->__gregs[_REG_PC]);
43+
+ return AsUintPtr(&context->mc_eip);
4944
+}
50-
+
51-
+#elif defined(ARCH_CPU_X86_64) // #if defined(ARCH_CPU_ARM_FAMILY)
52-
+
45+
+#elif defined(ARCH_CPU_ARM64)
5346
+inline uintptr_t& RegisterContextStackPointer(mcontext_t* context) {
54-
+ return AsUintPtr(&context->mc_rsp);
47+
+ return AsUintPtr(&context->mc_gpregs.gp_sp);
5548
+}
5649
+
5750
+inline uintptr_t& RegisterContextFramePointer(mcontext_t* context) {
58-
+ return AsUintPtr(&context->mc_rbp);
51+
+ return AsUintPtr(&context->mc_gpregs.gp_x[29]);
5952
+}
6053
+
6154
+inline uintptr_t& RegisterContextInstructionPointer(mcontext_t* context) {
62-
+ return AsUintPtr(&context->mc_rip);
55+
+ return AsUintPtr(&context->mc_gpregs.gp_elr);
6356
+}
64-
+
65-
+#else // #if defined(ARCH_CPU_ARM_FAMILY)
57+
+#endif
58+
59+
#else // #if defined(OS_WIN)
6660

67-
// Placeholders for other POSIX platforms that just return the first
68-
// three register slots in the context.

0 commit comments

Comments
 (0)