Skip to content

Commit

Permalink
lang/v8: Update to 9.1.269.28
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed Jul 6, 2021
1 parent 2e5262c commit 0937dde
Show file tree
Hide file tree
Showing 11 changed files with 69 additions and 68 deletions.
24 changes: 12 additions & 12 deletions lang/v8/Makefile
@@ -1,5 +1,8 @@
# We follow the stable channel on https://omahaproxy.appspot.com/
# https://chromium.googlesource.com/v8/v8/+/refs/heads/9.1-lkgr

PORTNAME= v8
PORTVERSION= 9.0.257.29
PORTVERSION= 9.1.269.36
CATEGORIES= lang
MASTER_SITES= LOCAL/sunpoet/v8/${PORTVERSION:R:R}
DISTFILES= build-${BUILD_REV}.tar.gz \
Expand Down Expand Up @@ -36,18 +39,15 @@ USE_GITHUB= yes

CPE_VENDOR= google

# We follow the stable channel on https://omahaproxy.appspot.com/
PORTSCOUT= ignore:1

BUILD_REV= 446bf3e5a00bfe4fd99d91cb76ec3b3a7b34d226
BUILDTOOLS_REV= 4c78ef9c38b683c5c5cbac70445378c2362cebfc
CLANG_REV= cfd0f628093b7382ac054fb33e23fa9d9a278bc3
COMMON_REV= 7af6071eddf11ad91fbd5df54138f9d3c6d980d5
GOOGLETEST_REV= 1e315c5b1a62707fac9b8f1d4e03180ee7507f98
ICU_REV= e05b663d1c50b4e9ecc3ff9325f5158f1d071471
ZLIB_REV= 348acca950b1d6de784a954f4fda0952046c652c
BUILD_REV= 77edba11e25386aa719d4f08c3ce2d8c4f868c15
BUILDTOOLS_REV= 5dbd89c9d9c0b0ff47cefdc2bc421b8c9a1c5a21
CLANG_REV= a387faa2a6741f565e45d78804a49a0e55de5909
COMMON_REV= cab90cbdaaf4444d67aef6ce3cef09fc5fdeb560
GOOGLETEST_REV= 07f4869221012b16b7f9ee685d94856e1fc9f361
ICU_REV= 81d656878ec611cb0b42d52c82e9dae93920d9ba
ZLIB_REV= 09490503d0f201b81e03f5ca0ab8ba8ee76d4a8e

# Run "gn args out/Release --list" for all variables.
# 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
# replace_gn_files.py script, some parts just turned on/off for target host
# OS "target_os == is_bsd", like libusb, libpci.
Expand Down
34 changes: 17 additions & 17 deletions lang/v8/distinfo
@@ -1,17 +1,17 @@
TIMESTAMP = 1621183180
SHA256 (v8/9.0/build-446bf3e5a00bfe4fd99d91cb76ec3b3a7b34d226.tar.gz) = 59d9e28fa0ad2786de81dbfae197e42735852aae19c0b487dcd1cc5e8f88f3f4
SIZE (v8/9.0/build-446bf3e5a00bfe4fd99d91cb76ec3b3a7b34d226.tar.gz) = 1292231
SHA256 (v8/9.0/buildtools-4c78ef9c38b683c5c5cbac70445378c2362cebfc.tar.gz) = 396a63c34bb66ba907688dde75d539c7a0a8eb26abd5f3e6560af262edd1d9dd
SIZE (v8/9.0/buildtools-4c78ef9c38b683c5c5cbac70445378c2362cebfc.tar.gz) = 87113
SHA256 (v8/9.0/clang-cfd0f628093b7382ac054fb33e23fa9d9a278bc3.tar.gz) = d80b5bce57636ced70025ae5d4788e28c8c3e846aeda0cda40c05cd1fc0ca313
SIZE (v8/9.0/clang-cfd0f628093b7382ac054fb33e23fa9d9a278bc3.tar.gz) = 279457
SHA256 (v8/9.0/common-7af6071eddf11ad91fbd5df54138f9d3c6d980d5.tar.gz) = 4b59d47ac6821abb847640821f8e289de5b2b33fadeaa32bd366d053ef1b2727
SIZE (v8/9.0/common-7af6071eddf11ad91fbd5df54138f9d3c6d980d5.tar.gz) = 10417
SHA256 (v8/9.0/googletest-1e315c5b1a62707fac9b8f1d4e03180ee7507f98.tar.gz) = 65783bd41ab59df3760c9590049507c490e73ba25df4f867382748b870b23f5f
SIZE (v8/9.0/googletest-1e315c5b1a62707fac9b8f1d4e03180ee7507f98.tar.gz) = 866766
SHA256 (v8/9.0/icu-e05b663d1c50b4e9ecc3ff9325f5158f1d071471.tar.gz) = 78a812ba28510cc8b4b8256155cc1eaf5f0f3d404bf712562e57f344a96ae8b5
SIZE (v8/9.0/icu-e05b663d1c50b4e9ecc3ff9325f5158f1d071471.tar.gz) = 43787352
SHA256 (v8/9.0/zlib-348acca950b1d6de784a954f4fda0952046c652c.tar.gz) = 2bfc65e6699d960a3152fa06a41e4ac6dd5bd186cb2fe7e4fa9df24a9e207c7b
SIZE (v8/9.0/zlib-348acca950b1d6de784a954f4fda0952046c652c.tar.gz) = 308614
SHA256 (v8/9.0/v8-v8-9.0.257.29_GH0.tar.gz) = c39f769f791a5c374b4f4a98e12f2534a23a41cb2e278856429752b98b0fc828
SIZE (v8/9.0/v8-v8-9.0.257.29_GH0.tar.gz) = 26087215
TIMESTAMP = 1625323521
SHA256 (v8/9.1/build-77edba11e25386aa719d4f08c3ce2d8c4f868c15.tar.gz) = 97d1bb27062a95f8530fffe139e7975e8defb674f1f634b990b86ad3a3b4b3b8
SIZE (v8/9.1/build-77edba11e25386aa719d4f08c3ce2d8c4f868c15.tar.gz) = 1308703
SHA256 (v8/9.1/buildtools-5dbd89c9d9c0b0ff47cefdc2bc421b8c9a1c5a21.tar.gz) = b99ac9048540ab238baa49c0ef9a6a998d77fb0e3f8673b047455b6e713ab707
SIZE (v8/9.1/buildtools-5dbd89c9d9c0b0ff47cefdc2bc421b8c9a1c5a21.tar.gz) = 85078
SHA256 (v8/9.1/clang-a387faa2a6741f565e45d78804a49a0e55de5909.tar.gz) = 219ea26d69180d9b50bb464862599ca5a126ecfaa4949f69f23533b08d969346
SIZE (v8/9.1/clang-a387faa2a6741f565e45d78804a49a0e55de5909.tar.gz) = 286943
SHA256 (v8/9.1/common-cab90cbdaaf4444d67aef6ce3cef09fc5fdeb560.tar.gz) = add0d37321ad5d848dd1db89d46fd59eb7e402e6cb2144330f321eacada6a6c7
SIZE (v8/9.1/common-cab90cbdaaf4444d67aef6ce3cef09fc5fdeb560.tar.gz) = 10445
SHA256 (v8/9.1/googletest-07f4869221012b16b7f9ee685d94856e1fc9f361.tar.gz) = 65ca26abd11bab18d90bd75f40181024ce40768ba77d9a2e4df5e4463a7de12f
SIZE (v8/9.1/googletest-07f4869221012b16b7f9ee685d94856e1fc9f361.tar.gz) = 866951
SHA256 (v8/9.1/icu-81d656878ec611cb0b42d52c82e9dae93920d9ba.tar.gz) = 6a492d5eff781c3d74896feb1da367b8215d5a80ce475b3e14ab56013ce77ae8
SIZE (v8/9.1/icu-81d656878ec611cb0b42d52c82e9dae93920d9ba.tar.gz) = 43789541
SHA256 (v8/9.1/zlib-09490503d0f201b81e03f5ca0ab8ba8ee76d4a8e.tar.gz) = c32fb5084029935cef78e23648d669bcddefd6ea32e1dcc52f0ae7da4dbd1a41
SIZE (v8/9.1/zlib-09490503d0f201b81e03f5ca0ab8ba8ee76d4a8e.tar.gz) = 308621
SHA256 (v8/9.1/v8-v8-9.1.269.36_GH0.tar.gz) = c3ba0ce39d735987d4b6d7791f9f1ef4c70d995ee8570345ec7089724997191f
SIZE (v8/9.1/v8-v8-9.1.269.36_GH0.tar.gz) = 26286032
10 changes: 5 additions & 5 deletions lang/v8/files/patch-BUILD.gn
@@ -1,6 +1,6 @@
--- BUILD.gn.orig 2021-04-22 15:00:28 UTC
--- BUILD.gn.orig 2021-06-08 16:09:55 UTC
+++ BUILD.gn
@@ -4438,7 +4438,7 @@ v8_component("v8_libbase") {
@@ -4600,7 +4600,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",
@@ -4455,6 +4455,12 @@ v8_component("v8_libbase") {
@@ -4617,6 +4617,12 @@ v8_component("v8_libbase") {
]

libs = [ "dl" ]
Expand All @@ -22,8 +22,8 @@
} else if (is_android) {
if (current_toolchain == host_toolchain) {
libs = [
@@ -4890,6 +4896,7 @@ if (v8_monolithic) {
":v8_libsampler",
@@ -5049,6 +5055,7 @@ if (v8_monolithic) {
":v8_libplatform",
"//build/win:default_exe_manifest",
]
+ libs = ["execinfo"]
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-01 21:15:31 UTC
--- build/config/BUILD.gn.orig 2021-05-26 12:26:11 UTC
+++ build/config/BUILD.gn
@@ -133,7 +133,7 @@ config("debug") {
@@ -128,7 +128,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 .
@@ -232,9 +232,7 @@ config("default_libs") {
@@ -227,9 +227,7 @@ config("default_libs") {
]
} else if (is_linux || is_chromeos) {
libs = [
Expand All @@ -19,7 +19,7 @@
]
}
}
@@ -313,7 +311,7 @@ config("executable_config") {
@@ -308,7 +306,7 @@ config("executable_config") {
"//build/config/ios:ios_dynamic_flags",
"//build/config/ios:ios_executable_flags",
]
Expand Down
10 changes: 5 additions & 5 deletions lang/v8/files/patch-build_config_BUILDCONFIG.gn
@@ -1,4 +1,4 @@
--- build/config/BUILDCONFIG.gn.orig 2021-05-01 21:15:31 UTC
--- build/config/BUILDCONFIG.gn.orig 2021-05-26 12:26:11 UTC
+++ build/config/BUILDCONFIG.gn
@@ -131,7 +131,7 @@ declare_args() {
is_official_build = false
Expand All @@ -8,8 +8,8 @@
+ is_clang = current_os != "linux" || current_os == "freebsd" ||
(current_cpu != "s390x" && current_cpu != "s390" &&
current_cpu != "ppc64" && current_cpu != "ppc" &&
current_cpu != "mips" && current_cpu != "mips64")
@@ -183,8 +183,8 @@ if (host_toolchain == "") {
current_cpu != "mips" && current_cpu != "mips64" &&
@@ -184,8 +184,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"
@@ -221,7 +221,7 @@ if (target_os == "android") {
@@ -222,7 +222,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"
@@ -285,10 +285,11 @@ is_android = current_os == "android"
@@ -287,10 +287,11 @@ is_android = current_os == "android"
is_chromeos = current_os == "chromeos"
is_fuchsia = current_os == "fuchsia"
is_ios = current_os == "ios"
Expand Down
24 changes: 12 additions & 12 deletions lang/v8/files/patch-build_config_compiler_BUILD.gn
@@ -1,6 +1,6 @@
--- build/config/compiler/BUILD.gn.orig 2021-05-01 21:15:31 UTC
--- build/config/compiler/BUILD.gn.orig 2021-05-26 12:26:11 UTC
+++ build/config/compiler/BUILD.gn
@@ -132,7 +132,7 @@ declare_args() {
@@ -133,7 +133,7 @@ declare_args() {
#
# TODO(crbug.com/977230): Enabling this when 'use_xcode_clang' is true may
# call an old clang that doesn't support auto-init.
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
@@ -324,7 +324,7 @@ config("compiler") {
@@ -333,7 +333,7 @@ config("compiler") {
}

# Linker warnings.
Expand All @@ -18,7 +18,7 @@
ldflags += [ "-Wl,--fatal-warnings" ]
}
if (fatal_linker_warnings && is_apple) {
@@ -419,7 +419,7 @@ config("compiler") {
@@ -428,7 +428,7 @@ config("compiler") {

# Compiler instrumentation can introduce dependencies in DSOs to symbols in
# the executable they are loaded into, so they are unresolved at link-time.
Expand All @@ -27,16 +27,16 @@
ldflags += [
"-Wl,-z,defs",
"-Wl,--as-needed",
@@ -509,7 +509,7 @@ config("compiler") {
@@ -518,7 +518,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) {
cflags += [ "-fcrash-diagnostics-dir=" + clang_diagnostic_dir ]

cflags += [
@@ -841,7 +841,7 @@ config("compiler_cpu_abi") {
# TODO(hans): Remove this once Clang generates better optimized debug info
@@ -851,7 +851,7 @@ config("compiler_cpu_abi") {
cflags += [ "-mtune=$arm_tune" ]
}
} else if (current_cpu == "arm64") {
Expand All @@ -45,7 +45,7 @@
cflags += [ "--target=aarch64-linux-gnu" ]
ldflags += [ "--target=aarch64-linux-gnu" ]
}
@@ -1191,7 +1191,7 @@ config("compiler_deterministic") {
@@ -1201,7 +1201,7 @@ config("compiler_deterministic") {
"-Xclang",
".",
]
Expand All @@ -54,7 +54,7 @@
# We don't use clang -cc1as on Windows (yet? https://crbug.com/762167)
asmflags = [ "-Wa,-fdebug-compilation-dir,." ]
}
@@ -1574,7 +1574,7 @@ config("default_warnings") {
@@ -1584,7 +1584,7 @@ config("default_warnings") {
cflags += [ "-Wno-nonportable-include-path" ]
}

Expand All @@ -63,7 +63,7 @@
# Flags NaCl (Clang 3.7) and Xcode 9.2 (Clang clang-900.0.39.2) do not
# recognize.
cflags += [
@@ -1822,7 +1822,7 @@ config("export_dynamic") {
@@ -1832,7 +1832,7 @@ config("export_dynamic") {
config("thin_archive") {
# The macOS and iOS default linker ld64 does not support reading thin
# archives.
Expand All @@ -72,7 +72,7 @@
arflags = [ "-T" ]
} else if (is_win && use_lld) {
arflags = [ "/llvmlibthin" ]
@@ -2367,7 +2367,7 @@ config("symbols") {
@@ -2373,7 +2373,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) {
Expand All @@ -81,7 +81,7 @@
}

# TODO(https://crbug.com/1050118): Investigate missing debug info on mac.
@@ -2400,7 +2400,7 @@ config("symbols") {
@@ -2406,7 +2406,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" &&
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-05-01 21:15:31 UTC
--- build/config/compiler/compiler.gni.orig 2021-05-26 12:26:11 UTC
+++ build/config/compiler/compiler.gni
@@ -201,7 +201,7 @@ declare_args() {
@@ -202,7 +202,7 @@ declare_args() {

declare_args() {
# Whether to use the gold linker from binutils instead of lld or bfd.
Expand Down
12 changes: 6 additions & 6 deletions lang/v8/files/patch-build_toolchain_gcc__toolchain.gni
@@ -1,4 +1,4 @@
--- build/toolchain/gcc_toolchain.gni.orig 2021-05-01 21:15:31 UTC
--- build/toolchain/gcc_toolchain.gni.orig 2021-05-26 12:26:11 UTC
+++ build/toolchain/gcc_toolchain.gni
@@ -51,6 +51,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).
#
@@ -646,13 +651,23 @@ template("clang_toolchain") {
@@ -654,13 +659,23 @@ template("clang_toolchain") {
}

gcc_toolchain(target_name) {
Expand All @@ -22,23 +22,23 @@
- ld = cxx
- readelf = "${toolprefix}readelf"
- ar = "${prefix}/llvm-ar"
- nm = "${toolprefix}nm"
- nm = "${prefix}/llvm-nm"
+ if (is_bsd) {
+ prefix = "%%LOCALBASE%%/bin"
+ cc = "cc"
+ cxx = "c++"
+ ld = cxx
+ readelf = "readelf"
+ readelf = "${toolprefix}readelf"
+ ar = "${prefix}/ar"
+ nm = "${toolprefix}nm"
+ 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"
+ ar = "${prefix}/llvm-ar"
+ nm = "${toolprefix}nm"
+ nm = "${prefix}/llvm-nm"
+ }

forward_variables_from(invoker,
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-04-22 15:00:28 UTC
--- src/api/api.cc.orig 2021-06-08 16:09:55 UTC
+++ src/api/api.cc
@@ -5694,7 +5694,7 @@ bool v8::V8::Initialize(const int build_config) {
@@ -5764,7 +5764,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-04-22 15:00:28 UTC
--- src/base/cpu.cc.orig 2021-06-08 16:09:55 UTC
+++ src/base/cpu.cc
@@ -545,6 +545,7 @@ CPU::CPU()
@@ -572,6 +572,7 @@ CPU::CPU()

#if V8_OS_LINUX

+#if V8_OS_LINUX
CPUInfo cpu_info;

// Extract implementor from the "CPU implementer" field.
@@ -578,6 +579,7 @@ CPU::CPU()
@@ -605,6 +606,7 @@ CPU::CPU()
}
delete[] part;
}
Expand Down
1 change: 1 addition & 0 deletions lang/v8/pkg-plist
Expand Up @@ -7,6 +7,7 @@ include/cppgc/cross-thread-persistent.h
include/cppgc/custom-space.h
include/cppgc/default-platform.h
include/cppgc/ephemeron-pair.h
include/cppgc/explicit-management.h
include/cppgc/garbage-collected.h
include/cppgc/heap-consistency.h
include/cppgc/heap-state.h
Expand Down

0 comments on commit 0937dde

Please sign in to comment.