Skip to content

Commit

Permalink
lang/v8: Update to 9.8.177.9
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed Feb 28, 2022
1 parent 4d818fa commit 129dc03
Show file tree
Hide file tree
Showing 12 changed files with 80 additions and 79 deletions.
16 changes: 8 additions & 8 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.7-lkgr
# https://chromium.googlesource.com/v8/v8/+/refs/heads/9.8-lkgr

PORTNAME= v8
PORTVERSION= 9.7.106.19
PORTVERSION= 9.8.177.9
CATEGORIES= lang
MASTER_SITES= LOCAL/sunpoet/v8/${PORTVERSION:R:R}
DISTFILES= v8-${PORTVERSION}.tar.gz \
Expand Down Expand Up @@ -43,13 +43,13 @@ CPE_VENDOR= google

CONFLICTS_INSTALL= v8-beta

BUILD_REV= cf325916d58a194a935c26a56fcf6b525d1e2bf4
BUILDTOOLS_REV= 80e4f838faaf50e18629ae630df1d421f255a62a
CLANG_REV= 21baac0e13389b03d6f805701c75544ed0b1ebb0
BUILD_REV= 9cfc74504f0c5093fe6799e70f15bded2423b5b4
BUILDTOOLS_REV= 075dd7e22837a69189003e4fa84499acf63188cf
CLANG_REV= 336fcfd099995c128bc93e97b8263cc6fc891cc8
COMMON_REV= 7f36dbc19d31e2aad895c60261ca8f726442bfbb
GOOGLETEST_REV= 16f637fbf4ffc3f7a01fa4eceb7906634565242f
ICU_REV= eedbaf76e49d28465d9119b10c30b82906e606ff
ZLIB_REV= 6da1d53b97c89b07e47714d88cab61f1ce003c68
GOOGLETEST_REV= 4c5650f68866e3c2e60361d5c4c95c6f335fb64b
ICU_REV= edf883ad2db9c723b058a6a17a146d68d6343143
ZLIB_REV= efd9399ae01364926be2a38946127fdf463480db

# 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 = 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
TIMESTAMP = 1643970994
SHA256 (v8/9.8/v8-9.8.177.9.tar.gz) = 98cbbad48c1ac97871304a50220e41a18e632dd415b072bc82f9f6178059505d
SIZE (v8/9.8/v8-9.8.177.9.tar.gz) = 27365748
SHA256 (v8/9.8/build-9cfc74504f0c5093fe6799e70f15bded2423b5b4.tar.gz) = 15703b71589b1d0bf6ee666d62b413ff0ac3b29448a8396e22994d6b7e6ed037
SIZE (v8/9.8/build-9cfc74504f0c5093fe6799e70f15bded2423b5b4.tar.gz) = 1380406
SHA256 (v8/9.8/buildtools-075dd7e22837a69189003e4fa84499acf63188cf.tar.gz) = 952ff349a2cbda6ecab58458a9c473c68acd8ae71386f0304c3c877f42bf5468
SIZE (v8/9.8/buildtools-075dd7e22837a69189003e4fa84499acf63188cf.tar.gz) = 87271
SHA256 (v8/9.8/clang-336fcfd099995c128bc93e97b8263cc6fc891cc8.tar.gz) = b284869f82815c194926f2fec6fbccbce5b48ae43720173320098d3a49652a0e
SIZE (v8/9.8/clang-336fcfd099995c128bc93e97b8263cc6fc891cc8.tar.gz) = 292729
SHA256 (v8/9.8/common-7f36dbc19d31e2aad895c60261ca8f726442bfbb.tar.gz) = 5757e6ba719c12168b8787543eb2c9d08630435daa02a04e124ab349ed53bfaa
SIZE (v8/9.8/common-7f36dbc19d31e2aad895c60261ca8f726442bfbb.tar.gz) = 10490
SHA256 (v8/9.8/googletest-4c5650f68866e3c2e60361d5c4c95c6f335fb64b.tar.gz) = 42cc6bf8f7b502a72af135b10afdae3600e54d29f5a2ec7fe37840629a18dbb5
SIZE (v8/9.8/googletest-4c5650f68866e3c2e60361d5c4c95c6f335fb64b.tar.gz) = 832346
SHA256 (v8/9.8/icu-edf883ad2db9c723b058a6a17a146d68d6343143.tar.gz) = d78b88d872c31b88c79eaaa80e96dd7692edde65bf6d36f57dc59af8bc5fcdb5
SIZE (v8/9.8/icu-edf883ad2db9c723b058a6a17a146d68d6343143.tar.gz) = 51809103
SHA256 (v8/9.8/zlib-efd9399ae01364926be2a38946127fdf463480db.tar.gz) = edb4335e9be454c741b3bdc2af46955fb37f937b7b40f534b55e4b92c0819150
SIZE (v8/9.8/zlib-efd9399ae01364926be2a38946127fdf463480db.tar.gz) = 313373
8 changes: 4 additions & 4 deletions lang/v8/files/patch-BUILD.gn
@@ -1,6 +1,6 @@
--- BUILD.gn.orig 2021-11-15 18:52:12 UTC
--- BUILD.gn.orig 2022-01-23 11:58:51 UTC
+++ BUILD.gn
@@ -5090,7 +5090,7 @@ v8_component("v8_libbase") {
@@ -5094,7 +5094,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",
@@ -5107,6 +5107,12 @@ v8_component("v8_libbase") {
@@ -5111,6 +5111,12 @@ v8_component("v8_libbase") {
]

libs = [ "dl" ]
Expand All @@ -22,7 +22,7 @@
} else if (is_android) {
if (current_toolchain == host_toolchain) {
libs = [
@@ -5607,6 +5613,7 @@ if (v8_monolithic) {
@@ -5611,6 +5617,7 @@ if (v8_monolithic) {
":v8_libplatform",
"//build/win:default_exe_manifest",
]
Expand Down
8 changes: 4 additions & 4 deletions lang/v8/files/patch-build_config_BUILD.gn
@@ -1,6 +1,6 @@
--- build/config/BUILD.gn.orig 2021-05-26 12:26:11 UTC
--- build/config/BUILD.gn.orig 2022-01-23 11:59:03 UTC
+++ build/config/BUILD.gn
@@ -128,7 +128,7 @@ config("debug") {
@@ -125,7 +125,7 @@ config("debug") {
# builds, and we have to tell it to turn it off.
defines += [ "_HAS_ITERATOR_DEBUGGING=0" ]
}
Expand All @@ -9,7 +9,7 @@
enable_iterator_debugging) {
# Enable libstdc++ debugging facilities to help catch problems early, see
# http://crbug.com/65151 .
@@ -227,9 +227,7 @@ config("default_libs") {
@@ -224,9 +224,7 @@ config("default_libs") {
]
} else if (is_linux || is_chromeos) {
libs = [
Expand All @@ -19,7 +19,7 @@
]
}
}
@@ -308,7 +306,7 @@ config("executable_config") {
@@ -305,7 +303,7 @@ config("executable_config") {
"//build/config/ios:ios_dynamic_flags",
"//build/config/ios:ios_executable_flags",
]
Expand Down
58 changes: 29 additions & 29 deletions lang/v8/files/patch-build_config_compiler_BUILD.gn
@@ -1,4 +1,4 @@
--- build/config/compiler/BUILD.gn.orig 2021-11-15 18:52:18 UTC
--- build/config/compiler/BUILD.gn.orig 2022-01-23 11:59:03 UTC
+++ build/config/compiler/BUILD.gn
@@ -140,7 +140,7 @@ declare_args() {
#
Expand All @@ -9,7 +9,7 @@

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

# Linker warnings.
Expand All @@ -18,16 +18,16 @@
current_os != "zos") {
ldflags += [ "-Wl,--fatal-warnings" ]
}
@@ -539,7 +539,7 @@ config("compiler") {
@@ -534,7 +534,7 @@ config("compiler") {
ldflags += [ "-Wl,-z,keep-text-section-prefix" ]
}

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

# TODO(hans): Remove this once Clang generates better optimized debug info
@@ -910,7 +910,7 @@ config("compiler_cpu_abi") {
@@ -917,7 +917,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" ]
}
@@ -1254,7 +1254,7 @@ config("compiler_deterministic") {
@@ -1238,7 +1238,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",
@@ -1267,7 +1267,7 @@ config("compiler_deterministic") {
@@ -1251,7 +1251,7 @@ config("compiler_deterministic") {
# and -fcoverage-compilation-dir=.
cflags += [ "-ffile-compilation-dir=." ]
}
Expand All @@ -54,16 +54,16 @@
# We don't use clang -cc1as on Windows (yet? https://crbug.com/762167)
asmflags = [ "-Wa,-fdebug-compilation-dir,." ]
}
@@ -1515,7 +1515,7 @@ config("default_warnings") {
cflags += [ "-Wno-null-pointer-subtraction" ]
}
@@ -1502,7 +1502,7 @@ config("default_warnings") {
"-Wno-unneeded-internal-declaration",
]

- if (current_toolchain == host_toolchain || !use_xcode_clang) {
+ if ((current_toolchain == host_toolchain || !use_xcode_clang) && !is_bsd) {
# Flags Xcode 9.2 (Clang clang-900.0.39.2) does not recognize.
cflags += [
"-Wenum-compare-conditional",
@@ -1763,7 +1763,7 @@ config("thin_archive") {
- if (!is_nacl || is_nacl_saigo) {
+ if ((!is_nacl || is_nacl_saigo) && !is_bsd) {
if (is_win) {
# TODO(thakis): https://crbug.com/617318
# Currently goma can not handle case sensitiveness for windows well.
@@ -1791,7 +1791,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" ]
@@ -2263,7 +2263,7 @@ config("symbols") {
@@ -2289,7 +2289,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) && current_os != "zos") {
- cflags += [ "-g2" ]
+ cflags += [ "-g0" ]
}

# 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
if (!is_nacl && is_clang && !is_tsan && !is_asan &&
@@ -2329,7 +2329,7 @@ config("symbols") {
# sections" there. Maybe just a bug in nacl_switch_32.S.
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.
@@ -2316,7 +2316,7 @@ config("symbols") {
_enable_gdb_index =
symbol_level == 2 && !is_apple && !is_nacl && current_cpu != "x86" &&
- current_os != "zos" && (use_gold || use_lld) &&
+ current_os != "zos" && (use_gold || use_lld) && !is_bsd &&
# Disable on non-fission 32-bit Android because it pushes
# libcomponents_unittests over the 4gb size limit.
!(is_android && !use_debug_fission && current_cpu != "x64" &&
@@ -2347,7 +2347,7 @@ config("symbols") {
}

if (is_clang && !is_nacl && !use_xcode_clang && current_os != "zos") {
if (is_clang && (!is_nacl || is_nacl_saigo) && 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-11-15 18:52:18 UTC
--- build/config/compiler/compiler.gni.orig 2022-01-23 11:59:03 UTC
+++ build/config/compiler/compiler.gni
@@ -219,7 +219,7 @@ declare_args() {
@@ -224,7 +224,7 @@ declare_args() {

declare_args() {
# Whether to use the gold linker from binutils instead of lld or bfd.
Expand Down
8 changes: 4 additions & 4 deletions lang/v8/files/patch-build_config_rust.gni
@@ -1,11 +1,11 @@
--- build/config/rust.gni.orig 2021-11-15 18:52:18 UTC
--- build/config/rust.gni.orig 2022-01-23 11:59:03 UTC
+++ build/config/rust.gni
@@ -67,7 +67,7 @@ toolchain_has_official_rust =
@@ -66,7 +66,7 @@ toolchain_has_official_rust =
(!is_nacl &&
(is_android && (current_cpu == "arm" || current_cpu == "arm64" ||
current_cpu == "x64" || current_cpu == "x86"))) ||
- (is_linux && current_cpu == "x64")
+ (current_os == "linux" && current_cpu == "x64")

toolchain_has_rust = enable_rust && (toolchain_has_official_rust ||
use_unverified_rust_toolchain)
toolchain_has_rust =
enable_rust && (toolchain_has_official_rust || rust_sysroot_absolute != "")
4 changes: 2 additions & 2 deletions lang/v8/files/patch-build_toolchain_gcc__toolchain.gni
@@ -1,4 +1,4 @@
--- build/toolchain/gcc_toolchain.gni.orig 2021-11-15 18:52:18 UTC
--- build/toolchain/gcc_toolchain.gni.orig 2022-01-23 11:59:03 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,7 +12,7 @@
# This template defines a toolchain for something that works like gcc
# (including clang).
#
@@ -731,13 +736,23 @@ template("gcc_toolchain") {
@@ -738,13 +743,23 @@ template("gcc_toolchain") {
# use_gold too.
template("clang_toolchain") {
gcc_toolchain(target_name) {
Expand Down
8 changes: 4 additions & 4 deletions lang/v8/files/patch-include_v8config.h
@@ -1,8 +1,8 @@
--- include/v8config.h.orig 2021-10-06 18:22:58 UTC
--- include/v8config.h.orig 2022-01-23 11:58:51 UTC
+++ include/v8config.h
@@ -338,7 +338,18 @@ path. Add it with -I<path> to the command line

# define V8_HAS_CPP_ATTRIBUTE_NODISCARD (V8_HAS_CPP_ATTRIBUTE(nodiscard))
@@ -342,7 +342,18 @@ path. Add it with -I<path> to the command line
# define V8_HAS_CPP_ATTRIBUTE_NO_UNIQUE_ADDRESS \
(V8_HAS_CPP_ATTRIBUTE(no_unique_address))

+// Work around Clang bug present in 9.0.1, at least.
+//
Expand Down
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:52:12 UTC
--- src/api/api.cc.orig 2022-01-23 11:58:51 UTC
+++ src/api/api.cc
@@ -6054,7 +6054,7 @@ bool v8::V8::Initialize(const int build_config) {
@@ -6126,7 +6126,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_platform_platform-posix.cc
@@ -1,6 +1,6 @@
--- src/base/platform/platform-posix.cc.orig 2021-11-15 18:52:12 UTC
--- src/base/platform/platform-posix.cc.orig 2022-01-23 11:58:51 UTC
+++ src/base/platform/platform-posix.cc
@@ -511,7 +511,7 @@ bool OS::DecommitPages(void* address, size_t size) {
@@ -547,7 +547,7 @@ bool OS::FreeAddressSpaceReservation(AddressSpaceReser

// static
bool OS::HasLazyCommits() {
Expand All @@ -9,7 +9,7 @@
return true;
#else
// TODO(bbudge) Return true for all POSIX platforms.
@@ -650,6 +650,12 @@ int OS::GetCurrentThreadId() {
@@ -686,6 +686,12 @@ int OS::GetCurrentThreadId() {
return static_cast<int>(syscall(__NR_gettid));
#elif V8_OS_ANDROID
return static_cast<int>(gettid());
Expand Down
1 change: 1 addition & 0 deletions lang/v8/pkg-plist
Expand Up @@ -52,6 +52,7 @@ include/v8-data.h
include/v8-date.h
include/v8-debug.h
include/v8-embedder-heap.h
include/v8-embedder-state-scope.h
include/v8-exception.h
include/v8-extension.h
include/v8-external.h
Expand Down

0 comments on commit 129dc03

Please sign in to comment.