Skip to content

Commit

Permalink
lang/v8: Update to 9.7.106.19
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed Jan 25, 2022
1 parent 4dc53c1 commit b980e61
Show file tree
Hide file tree
Showing 14 changed files with 77 additions and 89 deletions.
20 changes: 9 additions & 11 deletions lang/v8/Makefile
@@ -1,8 +1,8 @@
# We follow the stable channel on https://omahaproxy.appspot.com/
# https://chromium.googlesource.com/v8/v8/+/refs/heads/9.6-lkgr
# https://chromium.googlesource.com/v8/v8/+/refs/heads/9.7-lkgr

PORTNAME= v8
PORTVERSION= 9.6.180.21
PORTVERSION= 9.7.106.19
CATEGORIES= lang
MASTER_SITES= LOCAL/sunpoet/v8/${PORTVERSION:R:R}
DISTFILES= v8-${PORTVERSION}.tar.gz \
Expand Down Expand Up @@ -37,19 +37,17 @@ USE_LDCONFIG= yes

SUB_FILES= v8.pc v8_libbase.pc v8_libplatform.pc

#USE_GITHUB= yes

CPE_VENDOR= google

CONFLICTS_INSTALL= v8-beta

BUILD_REV= ebad8533842661f66b9b905e0ee9890a32f628d5
BUILDTOOLS_REV= a9bc3e283182a586998338a665c7eae17406ec54
CLANG_REV= c06edd1f455183fc89e9f8c2cf745db8f564d8ea
COMMON_REV= 68d816952258c9d817bba656ee2664b35507f01b
GOOGLETEST_REV= 3b49be074d5c1340eeb447e6a8e78427051e675a
ICU_REV= 3f443830bd52d3aa5fab3c1aa2b6d0848bb5039d
ZLIB_REV= dfa96e81458fb3b39676e45f7e9e000dff789b05
BUILD_REV= cf325916d58a194a935c26a56fcf6b525d1e2bf4
BUILDTOOLS_REV= 80e4f838faaf50e18629ae630df1d421f255a62a
CLANG_REV= 21baac0e13389b03d6f805701c75544ed0b1ebb0
COMMON_REV= 7f36dbc19d31e2aad895c60261ca8f726442bfbb
GOOGLETEST_REV= 16f637fbf4ffc3f7a01fa4eceb7906634565242f
ICU_REV= eedbaf76e49d28465d9119b10c30b82906e606ff
ZLIB_REV= 6da1d53b97c89b07e47714d88cab61f1ce003c68

# Run "gn args --list out/Release" for all variables.
# Some parts don't have use_system_* flag, and can be turned on/off by using
Expand Down
34 changes: 17 additions & 17 deletions lang/v8/distinfo
@@ -1,17 +1,17 @@
TIMESTAMP = 1641045804
SHA256 (v8/9.6/v8-9.6.180.21.tar.gz) = fd3fc40d2eeef4919e9e1c103b995093884e217808cc164a40899369fbe43d06
SIZE (v8/9.6/v8-9.6.180.21.tar.gz) = 27083425
SHA256 (v8/9.6/build-ebad8533842661f66b9b905e0ee9890a32f628d5.tar.gz) = d8e9e21f48b0a88f456d88bb76fe6381ba2d3429c36f371dbabf11f50c704468
SIZE (v8/9.6/build-ebad8533842661f66b9b905e0ee9890a32f628d5.tar.gz) = 1357606
SHA256 (v8/9.6/buildtools-a9bc3e283182a586998338a665c7eae17406ec54.tar.gz) = 4aaec99b3c5cc9bf588a5ddd76efdc024276097a9bdddf1364936f9ddcdf7f78
SIZE (v8/9.6/buildtools-a9bc3e283182a586998338a665c7eae17406ec54.tar.gz) = 86607
SHA256 (v8/9.6/clang-c06edd1f455183fc89e9f8c2cf745db8f564d8ea.tar.gz) = 1f03b84dad25f4b80fcb137e00be9efc9f0503146103ec4ac6b792df78700aa7
SIZE (v8/9.6/clang-c06edd1f455183fc89e9f8c2cf745db8f564d8ea.tar.gz) = 288468
SHA256 (v8/9.6/common-68d816952258c9d817bba656ee2664b35507f01b.tar.gz) = 6d84abfe22276bf1940b617aa8c320ec098d40c7d6dc83978b157836061f5c34
SIZE (v8/9.6/common-68d816952258c9d817bba656ee2664b35507f01b.tar.gz) = 10624
SHA256 (v8/9.6/googletest-3b49be074d5c1340eeb447e6a8e78427051e675a.tar.gz) = 75be476046d5135185521ed95a8c03872d6eb1ff3a2d956ee7d0739936492df6
SIZE (v8/9.6/googletest-3b49be074d5c1340eeb447e6a8e78427051e675a.tar.gz) = 830864
SHA256 (v8/9.6/icu-3f443830bd52d3aa5fab3c1aa2b6d0848bb5039d.tar.gz) = 033b914dba13dbb5599ab1e21c652d707c3b5d96184c535c6a3dc65f6c0d610b
SIZE (v8/9.6/icu-3f443830bd52d3aa5fab3c1aa2b6d0848bb5039d.tar.gz) = 43801217
SHA256 (v8/9.6/zlib-dfa96e81458fb3b39676e45f7e9e000dff789b05.tar.gz) = aefe670a752dd8ac2e6d3e9820cdcb83f660a849750d6da1301bb06be97a2528
SIZE (v8/9.6/zlib-dfa96e81458fb3b39676e45f7e9e000dff789b05.tar.gz) = 313143
TIMESTAMP = 1643133659
SHA256 (v8/9.7/v8-9.7.106.19.tar.gz) = 90321cc252be625f050c26eeed5e4b98450782f8ef88e9db7e259c5f789e594b
SIZE (v8/9.7/v8-9.7.106.19.tar.gz) = 27222789
SHA256 (v8/9.7/build-cf325916d58a194a935c26a56fcf6b525d1e2bf4.tar.gz) = 41d40b8a5d229207f06df96808c7fb4677f0b6c3352b4d322563bcd9e1af8d2a
SIZE (v8/9.7/build-cf325916d58a194a935c26a56fcf6b525d1e2bf4.tar.gz) = 1359676
SHA256 (v8/9.7/buildtools-80e4f838faaf50e18629ae630df1d421f255a62a.tar.gz) = 4744899438381aab671aa9587ebb76a73d176a3bb93726685772c675eaa9c6a3
SIZE (v8/9.7/buildtools-80e4f838faaf50e18629ae630df1d421f255a62a.tar.gz) = 86765
SHA256 (v8/9.7/clang-21baac0e13389b03d6f805701c75544ed0b1ebb0.tar.gz) = 6aedadb4fc21499ada70b4fce41343e7ae5c4da41a4d0ab15adc19176569b438
SIZE (v8/9.7/clang-21baac0e13389b03d6f805701c75544ed0b1ebb0.tar.gz) = 291551
SHA256 (v8/9.7/common-7f36dbc19d31e2aad895c60261ca8f726442bfbb.tar.gz) = a09d581f42705f5c31a4eae0450e45dd34643ed61db449111dc200d71f7e37c3
SIZE (v8/9.7/common-7f36dbc19d31e2aad895c60261ca8f726442bfbb.tar.gz) = 10491
SHA256 (v8/9.7/googletest-16f637fbf4ffc3f7a01fa4eceb7906634565242f.tar.gz) = 8c9ebaaf090de7e2703fcd61e7027a91ab9071ab23a1df95b8d27accba5f088d
SIZE (v8/9.7/googletest-16f637fbf4ffc3f7a01fa4eceb7906634565242f.tar.gz) = 831669
SHA256 (v8/9.7/icu-eedbaf76e49d28465d9119b10c30b82906e606ff.tar.gz) = aacf852a7bc1bd2744cb27601b2dcb74fa3505d3eb898de16ec59d027d792def
SIZE (v8/9.7/icu-eedbaf76e49d28465d9119b10c30b82906e606ff.tar.gz) = 43814466
SHA256 (v8/9.7/zlib-6da1d53b97c89b07e47714d88cab61f1ce003c68.tar.gz) = 6265faae2e649ddb51fdf59518c08d5cb22b3e552f6cad219f65a26b02ac5474
SIZE (v8/9.7/zlib-6da1d53b97c89b07e47714d88cab61f1ce003c68.tar.gz) = 313216
8 changes: 4 additions & 4 deletions lang/v8/files/patch-BUILD.gn
@@ -1,6 +1,6 @@
--- BUILD.gn.orig 2021-11-15 18:49:49 UTC
--- BUILD.gn.orig 2021-11-15 18:52:12 UTC
+++ BUILD.gn
@@ -5058,7 +5058,7 @@ v8_component("v8_libbase") {
@@ -5090,7 +5090,7 @@ v8_component("v8_libbase") {
}
}

Expand All @@ -9,7 +9,7 @@
sources += [
"src/base/debug/stack_trace_posix.cc",
"src/base/platform/platform-linux.cc",
@@ -5075,6 +5075,12 @@ v8_component("v8_libbase") {
@@ -5107,6 +5107,12 @@ v8_component("v8_libbase") {
]

libs = [ "dl" ]
Expand All @@ -22,7 +22,7 @@
} else if (is_android) {
if (current_toolchain == host_toolchain) {
libs = [
@@ -5574,6 +5580,7 @@ if (v8_monolithic) {
@@ -5607,6 +5613,7 @@ if (v8_monolithic) {
":v8_libplatform",
"//build/win:default_exe_manifest",
]
Expand Down
10 changes: 5 additions & 5 deletions lang/v8/files/patch-build_config_BUILDCONFIG.gn
@@ -1,6 +1,6 @@
--- build/config/BUILDCONFIG.gn.orig 2021-10-20 15:47:54 UTC
--- build/config/BUILDCONFIG.gn.orig 2021-11-15 18:52:18 UTC
+++ build/config/BUILDCONFIG.gn
@@ -131,7 +131,7 @@ declare_args() {
@@ -136,7 +136,7 @@ declare_args() {
is_official_build = false

# Set to true when compiling with the Clang compiler.
Expand All @@ -9,7 +9,7 @@
(current_cpu != "s390x" && current_cpu != "s390" &&
current_cpu != "ppc64" && current_cpu != "ppc" &&
current_cpu != "mips" && current_cpu != "mips64" &&
@@ -184,8 +184,8 @@ if (host_toolchain == "") {
@@ -189,8 +189,8 @@ if (host_toolchain == "") {
# TODO(dpranke): Add some sort of assert here that verifies that
# no toolchain omitted host_toolchain from its toolchain_args().

Expand All @@ -20,7 +20,7 @@
host_toolchain = "//build/toolchain/linux:clang_$host_cpu"
} else if (is_clang) {
host_toolchain = "//build/toolchain/linux:clang_$host_cpu"
@@ -222,7 +222,7 @@ if (target_os == "android") {
@@ -229,7 +229,7 @@ if (target_os == "android") {
assert(host_os == "linux" || host_os == "mac",
"Android builds are only supported on Linux and Mac hosts.")
_default_toolchain = "//build/toolchain/android:android_clang_$target_cpu"
Expand All @@ -29,7 +29,7 @@
# See comments in build/toolchain/cros/BUILD.gn about board compiles.
if (is_clang) {
_default_toolchain = "//build/toolchain/linux:clang_$target_cpu"
@@ -287,10 +287,11 @@ is_android = current_os == "android"
@@ -296,10 +296,11 @@ is_android = current_os == "android"
is_chromeos = current_os == "chromeos"
is_fuchsia = current_os == "fuchsia"
is_ios = current_os == "ios"
Expand Down
40 changes: 20 additions & 20 deletions lang/v8/files/patch-build_config_compiler_BUILD.gn
@@ -1,4 +1,4 @@
--- build/config/compiler/BUILD.gn.orig 2021-10-20 16:29:11 UTC
--- build/config/compiler/BUILD.gn.orig 2021-11-15 18:52:18 UTC
+++ build/config/compiler/BUILD.gn
@@ -140,7 +140,7 @@ declare_args() {
#
Expand All @@ -9,25 +9,25 @@

# This argument is to control whether enabling text section splitting in the
# final binary. When enabled, the separated text sections with prefix
@@ -355,7 +355,7 @@ config("compiler") {
@@ -361,7 +361,7 @@ config("compiler") {
}

# Linker warnings.
- if (fatal_linker_warnings && !is_apple && current_os != "aix") {
+ if (fatal_linker_warnings && !is_apple && !is_bsd && current_os != "aix") {
- if (fatal_linker_warnings && !is_apple && current_os != "aix" &&
+ if (fatal_linker_warnings && !is_apple && !is_bsd && current_os != "aix" &&
current_os != "zos") {
ldflags += [ "-Wl,--fatal-warnings" ]
}
if (fatal_linker_warnings && is_apple) {
@@ -532,7 +532,7 @@ config("compiler") {
@@ -539,7 +539,7 @@ config("compiler") {
ldflags += [ "-Wl,-z,keep-text-section-prefix" ]
}

- if (is_clang && !is_nacl && !use_xcode_clang) {
+ if (is_clang && !is_nacl && !use_xcode_clang && !is_bsd) {
- if (is_clang && !is_nacl && !use_xcode_clang && current_os != "zos") {
+ if (is_clang && !is_nacl && !use_xcode_clang && !is_bsd && current_os != "zos") {
cflags += [ "-fcrash-diagnostics-dir=" + clang_diagnostic_dir ]

# TODO(hans): Remove this once Clang generates better optimized debug info
@@ -903,7 +903,7 @@ config("compiler_cpu_abi") {
@@ -910,7 +910,7 @@ config("compiler_cpu_abi") {
cflags += [ "-mtune=$arm_tune" ]
}
} else if (current_cpu == "arm64") {
Expand All @@ -36,7 +36,7 @@
cflags += [ "--target=aarch64-linux-gnu" ]
ldflags += [ "--target=aarch64-linux-gnu" ]
}
@@ -1247,7 +1247,7 @@ config("compiler_deterministic") {
@@ -1254,7 +1254,7 @@ config("compiler_deterministic") {
# different build directory like "out/feature_a" and "out/feature_b" if
# we build same files with same compile flag.
# Other paths are already given in relative, no need to normalize them.
Expand All @@ -45,7 +45,7 @@
# TODO(https://crbug.com/1231236): Use -ffile-compilation-dir= here.
cflags += [
"-Xclang",
@@ -1260,7 +1260,7 @@ config("compiler_deterministic") {
@@ -1267,7 +1267,7 @@ config("compiler_deterministic") {
# and -fcoverage-compilation-dir=.
cflags += [ "-ffile-compilation-dir=." ]
}
Expand All @@ -54,7 +54,7 @@
# We don't use clang -cc1as on Windows (yet? https://crbug.com/762167)
asmflags = [ "-Wa,-fdebug-compilation-dir,." ]
}
@@ -1644,7 +1644,7 @@ config("default_warnings") {
@@ -1515,7 +1515,7 @@ config("default_warnings") {
cflags += [ "-Wno-null-pointer-subtraction" ]
}

Expand All @@ -63,7 +63,7 @@
# Flags Xcode 9.2 (Clang clang-900.0.39.2) does not recognize.
cflags += [
"-Wenum-compare-conditional",
@@ -1898,7 +1898,7 @@ config("thin_archive") {
@@ -1763,7 +1763,7 @@ config("thin_archive") {
# archives.
# TODO(crbug.com/1221615): Enable on is_apple if use_lld once that no longer
# confuses lldb.
Expand All @@ -72,28 +72,28 @@
arflags = [ "-T" ]
} else if (is_win && use_lld) {
arflags = [ "/llvmlibthin" ]
@@ -2398,7 +2398,7 @@ config("symbols") {
@@ -2263,7 +2263,7 @@ config("symbols") {
# flag, so we can use use -g1 for pnacl and nacl-clang compiles.
# gcc nacl is is_nacl && !is_clang, pnacl and nacl-clang are && is_clang.
if (!is_nacl || is_clang) {
if ((!is_nacl || is_clang) && current_os != "zos") {
- cflags += [ "-g2" ]
+ cflags += [ "-g0" ]
}

if (!is_nacl && is_clang && !is_tsan && !is_asan) {
@@ -2433,7 +2433,7 @@ config("symbols") {
# Since only one of the build options -gdwarf-aranges and -fembed-bitcode
@@ -2303,7 +2303,7 @@ config("symbols") {
# DWARF info may be corrupt; offsets in a range list entry are in different
# sections" there. Maybe just a bug in nacl_switch_32.S.
if (!is_apple && !is_nacl && current_cpu != "x86" &&
if (!is_apple && !is_nacl && current_cpu != "x86" && current_os != "zos" &&
- (use_gold || use_lld)) {
+ (use_gold || use_lld) && !is_bsd) {
if (is_clang) {
# This flag enables the GNU-format pubnames and pubtypes sections,
# which lld needs in order to generate a correct GDB index.
@@ -2446,7 +2446,7 @@ config("symbols") {
@@ -2316,7 +2316,7 @@ config("symbols") {
}

if (is_clang && !is_nacl && !use_xcode_clang) {
if (is_clang && !is_nacl && !use_xcode_clang && current_os != "zos") {
- if (is_apple) {
+ if (is_apple || is_bsd) {
# TODO(https://crbug.com/1050118): Investigate missing debug info on mac.
Expand Down
4 changes: 2 additions & 2 deletions lang/v8/files/patch-build_config_compiler_compiler.gni
@@ -1,6 +1,6 @@
--- build/config/compiler/compiler.gni.orig 2021-10-20 15:47:54 UTC
--- build/config/compiler/compiler.gni.orig 2021-11-15 18:52:18 UTC
+++ build/config/compiler/compiler.gni
@@ -218,7 +218,7 @@ declare_args() {
@@ -219,7 +219,7 @@ declare_args() {

declare_args() {
# Whether to use the gold linker from binutils instead of lld or bfd.
Expand Down
4 changes: 2 additions & 2 deletions lang/v8/files/patch-build_config_rust.gni
@@ -1,6 +1,6 @@
--- build/config/rust.gni.orig 2021-10-20 15:47:54 UTC
--- build/config/rust.gni.orig 2021-11-15 18:52:18 UTC
+++ build/config/rust.gni
@@ -58,7 +58,7 @@ toolchain_has_official_rust =
@@ -67,7 +67,7 @@ toolchain_has_official_rust =
(!is_nacl &&
(is_android && (current_cpu == "arm" || current_cpu == "arm64" ||
current_cpu == "x64" || current_cpu == "x86"))) ||
Expand Down
@@ -1,4 +1,4 @@
--- build/linux/unbundle/replace_gn_files.py.orig 2021-10-20 16:29:11 UTC
--- build/linux/unbundle/replace_gn_files.py.orig 2021-11-15 18:52:18 UTC
+++ build/linux/unbundle/replace_gn_files.py
@@ -25,6 +25,7 @@ REPLACEMENTS = {
'libevent': 'base/third_party/libevent/BUILD.gn',
Expand Down
18 changes: 9 additions & 9 deletions lang/v8/files/patch-build_toolchain_gcc__toolchain.gni
@@ -1,4 +1,4 @@
--- build/toolchain/gcc_toolchain.gni.orig 2021-10-20 15:47:54 UTC
--- build/toolchain/gcc_toolchain.gni.orig 2021-11-15 18:52:18 UTC
+++ build/toolchain/gcc_toolchain.gni
@@ -49,6 +49,11 @@ if (enable_resource_allowlist_generation) {
"enable_resource_allowlist_generation=true does not work for target_os=$target_os")
Expand All @@ -12,31 +12,31 @@
# This template defines a toolchain for something that works like gcc
# (including clang).
#
@@ -736,13 +741,23 @@ template("clang_toolchain") {
}

@@ -731,13 +736,23 @@ template("gcc_toolchain") {
# use_gold too.
template("clang_toolchain") {
gcc_toolchain(target_name) {
- prefix = rebase_path("$clang_base_path/bin", root_build_dir)
- cc = "$prefix/clang"
- cxx = "$prefix/clang++"
- cc = "${prefix}/clang"
- cxx = "${prefix}/clang++"
- ld = cxx
- readelf = "${toolprefix}readelf"
- readelf = "${prefix}/llvm-readelf"
- ar = "${prefix}/llvm-ar"
- nm = "${prefix}/llvm-nm"
+ if (is_bsd) {
+ prefix = "%%LOCALBASE%%/bin"
+ cc = "cc"
+ cxx = "c++"
+ ld = cxx
+ readelf = "${toolprefix}readelf"
+ readelf = "${prefix}/readelf"
+ ar = "${prefix}/ar"
+ nm = "${prefix}/nm"
+ } else {
+ prefix = rebase_path("$clang_base_path/bin", root_build_dir)
+ cc = "$prefix/clang"
+ cxx = "$prefix/clang++"
+ ld = cxx
+ readelf = "${toolprefix}readelf"
+ readelf = "${prefix}/readelf"
+ ar = "${prefix}/llvm-ar"
+ nm = "${prefix}/llvm-nm"
+ }
Expand Down
10 changes: 0 additions & 10 deletions lang/v8/files/patch-build_toolchain_linux_BUILD.gn

This file was deleted.

4 changes: 2 additions & 2 deletions lang/v8/files/patch-src_api_api.cc
@@ -1,6 +1,6 @@
--- src/api/api.cc.orig 2021-11-15 18:49:49 UTC
--- src/api/api.cc.orig 2021-11-15 18:52:12 UTC
+++ src/api/api.cc
@@ -5975,7 +5975,7 @@ bool v8::V8::Initialize(const int build_config) {
@@ -6054,7 +6054,7 @@ bool v8::V8::Initialize(const int build_config) {
return true;
}

Expand Down
6 changes: 3 additions & 3 deletions lang/v8/files/patch-src_base_cpu.cc
@@ -1,14 +1,14 @@
--- src/base/cpu.cc.orig 2021-10-06 18:22:58 UTC
--- src/base/cpu.cc.orig 2021-11-15 18:52:12 UTC
+++ src/base/cpu.cc
@@ -568,6 +568,7 @@ CPU::CPU()
@@ -575,6 +575,7 @@ CPU::CPU()

#if V8_OS_LINUX

+#if V8_OS_LINUX
CPUInfo cpu_info;

// Extract implementor from the "CPU implementer" field.
@@ -601,6 +602,7 @@ CPU::CPU()
@@ -608,6 +609,7 @@ CPU::CPU()
}
delete[] part;
}
Expand Down
2 changes: 1 addition & 1 deletion lang/v8/files/patch-src_base_platform_platform-posix.cc
@@ -1,4 +1,4 @@
--- src/base/platform/platform-posix.cc.orig 2021-10-12 18:11:43 UTC
--- src/base/platform/platform-posix.cc.orig 2021-11-15 18:52:12 UTC
+++ src/base/platform/platform-posix.cc
@@ -511,7 +511,7 @@ bool OS::DecommitPages(void* address, size_t size) {

Expand Down
4 changes: 2 additions & 2 deletions lang/v8/files/patch-third__party_zlib_BUILD.gn
@@ -1,6 +1,6 @@
--- third_party/zlib/BUILD.gn.orig 2020-11-16 14:31:04 UTC
--- third_party/zlib/BUILD.gn.orig 2021-11-15 18:52:29 UTC
+++ third_party/zlib/BUILD.gn
@@ -108,6 +108,8 @@ if (use_arm_neon_optimizations) {
@@ -119,6 +119,8 @@ if (use_arm_neon_optimizations) {
defines = [ "CRC32_ARMV8_CRC32" ]
if (is_android) {
defines += [ "ARMV8_OS_ANDROID" ]
Expand Down

0 comments on commit b980e61

Please sign in to comment.