1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
Po-Chuan Hsieh 2021-10-14 03:12:10 +08:00
parent b6b619fc4a
commit 1125c42dbd
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
11 changed files with 75 additions and 66 deletions

View File

@ -1,8 +1,8 @@
# We follow the stable channel on https://omahaproxy.appspot.com/
# https://chromium.googlesource.com/v8/v8/+/refs/heads/9.3-lkgr
# https://chromium.googlesource.com/v8/v8/+/refs/heads/9.4-lkgr
PORTNAME= v8
PORTVERSION= 9.3.345.19
PORTVERSION= 9.4.146.21
CATEGORIES= lang
MASTER_SITES= LOCAL/sunpoet/v8/${PORTVERSION:R:R}
DISTFILES= build-${BUILD_REV}.tar.gz \
@ -39,13 +39,13 @@ USE_GITHUB= yes
CPE_VENDOR= google
BUILD_REV= 2d999384c270a340f592cce0a0fb3f8f94c15290
BUILDTOOLS_REV= 2500c1d8f3a20a66a7cbafe3f69079a2edb742dd
CLANG_REV= 9d0a403e85d25b5b0d3016a342d4b83b12941fd5
COMMON_REV= d5bb24e5d9802c8c917fcaa4375d5239a586c168
GOOGLETEST_REV= 4ec4cd23f486bf70efcc5d2caa40f24368f752e3
ICU_REV= b9dfc58bf9b02ea0365509244aca13841322feb0
ZLIB_REV= dfbc590f5855bc2765256a743cad0abc56330a30
BUILD_REV= bbf7f0ed65548c4df862d2a2748e3a9b908a3217
BUILDTOOLS_REV= 37dc929ecb351687006a61744b116cda601753d7
CLANG_REV= 6a8e571efd68de48d226950d1e10cb8982e71496
COMMON_REV= 3da1e2fcf66acd5c7194497b4285ac163f32e239
GOOGLETEST_REV= 47f819c3ca54fb602f432904443e00a0a1fe2f42
ICU_REV= 75e34bcccea0be165c31fdb278b3712c516c5876
ZLIB_REV= 563140dd9c24f84bf40919196e9e7666d351cc0d
# 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

View File

@ -1,17 +1,17 @@
TIMESTAMP = 1632036874
SHA256 (v8/9.3/build-2d999384c270a340f592cce0a0fb3f8f94c15290.tar.gz) = a9334d354661e6a57b30dc3947eb03035fa179961ac3cd47dcb8c5126c8a6608
SIZE (v8/9.3/build-2d999384c270a340f592cce0a0fb3f8f94c15290.tar.gz) = 1328866
SHA256 (v8/9.3/buildtools-2500c1d8f3a20a66a7cbafe3f69079a2edb742dd.tar.gz) = 9bd8855fa25ada8c13774394dfdfc68010d0234d368dbbb87f23b3ae8f3f33fb
SIZE (v8/9.3/buildtools-2500c1d8f3a20a66a7cbafe3f69079a2edb742dd.tar.gz) = 86060
SHA256 (v8/9.3/clang-9d0a403e85d25b5b0d3016a342d4b83b12941fd5.tar.gz) = bb635538b3cfe95dcbf3e26cef1a7fe02be5351c7a383b7c4471e58b3745e695
SIZE (v8/9.3/clang-9d0a403e85d25b5b0d3016a342d4b83b12941fd5.tar.gz) = 289476
SHA256 (v8/9.3/common-d5bb24e5d9802c8c917fcaa4375d5239a586c168.tar.gz) = 12f544af0133bc92760971357d8369b0caff91d0081297e1ca161ae4dc217633
SIZE (v8/9.3/common-d5bb24e5d9802c8c917fcaa4375d5239a586c168.tar.gz) = 10408
SHA256 (v8/9.3/googletest-4ec4cd23f486bf70efcc5d2caa40f24368f752e3.tar.gz) = cebe048b4144505ff2f656fabbac07c70422a682f4bdbf96c880011c58bcb8fe
SIZE (v8/9.3/googletest-4ec4cd23f486bf70efcc5d2caa40f24368f752e3.tar.gz) = 886821
SHA256 (v8/9.3/icu-b9dfc58bf9b02ea0365509244aca13841322feb0.tar.gz) = 03e15831ec4573894fd0677353a573902ed8ea5a97dfbafe7fc31ed3cea92ca7
SIZE (v8/9.3/icu-b9dfc58bf9b02ea0365509244aca13841322feb0.tar.gz) = 43743513
SHA256 (v8/9.3/zlib-dfbc590f5855bc2765256a743cad0abc56330a30.tar.gz) = 1797490cd58608bb24ac2b4fc2c30c76496aed25c018c6e849187575d392dfc4
SIZE (v8/9.3/zlib-dfbc590f5855bc2765256a743cad0abc56330a30.tar.gz) = 311694
SHA256 (v8/9.3/v8-v8-9.3.345.19_GH0.tar.gz) = ff17118d966f781742869fa8fbfb5c8429f38e44969aa677168daed54967f000
SIZE (v8/9.3/v8-v8-9.3.345.19_GH0.tar.gz) = 26651059
TIMESTAMP = 1634111648
SHA256 (v8/9.4/build-bbf7f0ed65548c4df862d2a2748e3a9b908a3217.tar.gz) = 40fce87e984c4970b719aefad09fda534c2bb517afac1e4829b4885d897fb123
SIZE (v8/9.4/build-bbf7f0ed65548c4df862d2a2748e3a9b908a3217.tar.gz) = 1338052
SHA256 (v8/9.4/buildtools-37dc929ecb351687006a61744b116cda601753d7.tar.gz) = a474c54cec7af1b76f520dd650594cb12e4c5dfbf3f0f3aeff1c75fd9922633e
SIZE (v8/9.4/buildtools-37dc929ecb351687006a61744b116cda601753d7.tar.gz) = 86046
SHA256 (v8/9.4/clang-6a8e571efd68de48d226950d1e10cb8982e71496.tar.gz) = fd363836d59923f0f30d4e9cc7b542e274bd2db1bf3ae6befb62a70db60ee4ad
SIZE (v8/9.4/clang-6a8e571efd68de48d226950d1e10cb8982e71496.tar.gz) = 289845
SHA256 (v8/9.4/common-3da1e2fcf66acd5c7194497b4285ac163f32e239.tar.gz) = e425acc90c104d4e3aa424f90769859afef3387dc053317147cf58104d40b349
SIZE (v8/9.4/common-3da1e2fcf66acd5c7194497b4285ac163f32e239.tar.gz) = 10576
SHA256 (v8/9.4/googletest-47f819c3ca54fb602f432904443e00a0a1fe2f42.tar.gz) = c38ac836ed70ea29fcadb83abdfe21050b2a913df9be643a2cd8527eb6f15982
SIZE (v8/9.4/googletest-47f819c3ca54fb602f432904443e00a0a1fe2f42.tar.gz) = 860683
SHA256 (v8/9.4/icu-75e34bcccea0be165c31fdb278b3712c516c5876.tar.gz) = 66627727e82ccec8ee534a613d22bab23d2144145822e6cda34671a9b9b46790
SIZE (v8/9.4/icu-75e34bcccea0be165c31fdb278b3712c516c5876.tar.gz) = 43800465
SHA256 (v8/9.4/zlib-563140dd9c24f84bf40919196e9e7666d351cc0d.tar.gz) = cc10b7e8c1500c916499b3e1254381e1136c486d8fad2e5258bc079fecd21cc8
SIZE (v8/9.4/zlib-563140dd9c24f84bf40919196e9e7666d351cc0d.tar.gz) = 313040
SHA256 (v8/9.4/v8-v8-9.4.146.21_GH0.tar.gz) = e251ee991561f422627e52d921b152e0c8a7f8bffb064942897e5bb700a3c402
SIZE (v8/9.4/v8-v8-9.4.146.21_GH0.tar.gz) = 26707097

View File

@ -1,6 +1,6 @@
--- BUILD.gn.orig 2021-06-08 16:09:55 UTC
--- BUILD.gn.orig 2021-10-06 18:22:58 UTC
+++ BUILD.gn
@@ -4600,7 +4600,7 @@ v8_component("v8_libbase") {
@@ -4804,7 +4804,7 @@ v8_component("v8_libbase") {
}
}
@ -9,7 +9,7 @@
sources += [
"src/base/debug/stack_trace_posix.cc",
"src/base/platform/platform-linux.cc",
@@ -4617,6 +4617,12 @@ v8_component("v8_libbase") {
@@ -4821,6 +4821,12 @@ v8_component("v8_libbase") {
]
libs = [ "dl" ]
@ -22,7 +22,7 @@
} else if (is_android) {
if (current_toolchain == host_toolchain) {
libs = [
@@ -5049,6 +5055,7 @@ if (v8_monolithic) {
@@ -5313,6 +5319,7 @@ if (v8_monolithic) {
":v8_libplatform",
"//build/win:default_exe_manifest",
]

View File

@ -1,4 +1,4 @@
--- build/config/compiler/BUILD.gn.orig 2021-09-19 10:01:13 UTC
--- build/config/compiler/BUILD.gn.orig 2021-10-13 07:49:03 UTC
+++ build/config/compiler/BUILD.gn
@@ -139,7 +139,7 @@ declare_args() {
#
@ -27,7 +27,7 @@
cflags += [ "-fcrash-diagnostics-dir=" + clang_diagnostic_dir ]
# TODO(hans): Remove this once Clang generates better optimized debug info
@@ -867,7 +867,7 @@ config("compiler_cpu_abi") {
@@ -879,7 +879,7 @@ config("compiler_cpu_abi") {
cflags += [ "-mtune=$arm_tune" ]
}
} else if (current_cpu == "arm64") {
@ -36,17 +36,26 @@
cflags += [ "--target=aarch64-linux-gnu" ]
ldflags += [ "--target=aarch64-linux-gnu" ]
}
@@ -1217,7 +1217,7 @@ config("compiler_deterministic") {
"-Xclang",
".",
]
@@ -1223,7 +1223,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.
- if (is_nacl) {
+ if (is_nacl || is_bsd) {
# TODO(https://crbug.com/1231236): Use -ffile-compilation-dir= here.
cflags += [
"-Xclang",
@@ -1236,7 +1236,7 @@ config("compiler_deterministic") {
# and -fcoverage-compilation-dir=.
cflags += [ "-ffile-compilation-dir=." ]
}
- if (!is_win) {
+ if (!is_win && !is_bsd) {
# We don't use clang -cc1as on Windows (yet? https://crbug.com/762167)
asmflags = [ "-Wa,-fdebug-compilation-dir,." ]
}
@@ -1594,7 +1594,7 @@ config("default_warnings") {
cflags += [ "-Wno-nonportable-include-path" ]
@@ -1610,7 +1610,7 @@ config("default_warnings") {
cflags += [ "-Wno-null-pointer-subtraction" ]
}
- if (current_toolchain == host_toolchain || !use_xcode_clang) {
@ -54,7 +63,7 @@
# Flags NaCl (Clang 3.7) and Xcode 9.2 (Clang clang-900.0.39.2) do not
# recognize.
cflags += [
@@ -1856,7 +1856,7 @@ config("thin_archive") {
@@ -1858,7 +1858,7 @@ config("thin_archive") {
# archives.
# TODO(crbug.com/1221615): Enable on is_apple if use_lld once that no longer
# confuses lldb.
@ -63,7 +72,7 @@
arflags = [ "-T" ]
} else if (is_win && use_lld) {
arflags = [ "/llvmlibthin" ]
@@ -2387,7 +2387,7 @@ config("symbols") {
@@ -2372,7 +2372,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) {
@ -72,7 +81,7 @@
}
if (is_apple) {
@@ -2412,7 +2412,7 @@ config("symbols") {
@@ -2397,7 +2397,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" &&
@ -81,12 +90,12 @@
if (is_clang) {
# This flag enables the GNU-format pubnames and pubtypes sections,
# which lld needs in order to generate a correct GDB index.
@@ -2425,7 +2425,7 @@ config("symbols") {
@@ -2410,7 +2410,7 @@ config("symbols") {
}
# TODO(https://crbug.com/1050118): Investigate missing debug info on mac.
- if (is_clang && !is_nacl && !use_xcode_clang && !is_apple) {
+ if (is_clang && !is_nacl && !use_xcode_clang && !is_apple && !is_bsd) {
# Use constructor homing for debug info. This option reduces debug info
# by emitting class type info only when constructors are emitted.
cflags += [
if (is_clang && !is_nacl && !use_xcode_clang) {
- if (is_apple) {
+ if (is_apple || is_bsd) {
# TODO(https://crbug.com/1050118): Investigate missing debug info on mac.
# Make sure we don't use constructor homing on mac.
cflags += [

View File

@ -1,6 +1,6 @@
--- build/config/compiler/compiler.gni.orig 2021-05-26 12:26:11 UTC
--- build/config/compiler/compiler.gni.orig 2021-10-13 07:49:03 UTC
+++ build/config/compiler/compiler.gni
@@ -202,7 +202,7 @@ declare_args() {
@@ -205,7 +205,7 @@ declare_args() {
declare_args() {
# Whether to use the gold linker from binutils instead of lld or bfd.

View File

@ -1,6 +1,6 @@
--- build/config/linux/BUILD.gn.orig 2021-05-01 21:15:31 UTC
--- build/config/linux/BUILD.gn.orig 2021-10-13 07:49:03 UTC
+++ build/config/linux/BUILD.gn
@@ -30,7 +30,7 @@ config("runtime_library") {
@@ -39,7 +39,7 @@ config("runtime_library") {
if ((!(is_chromeos_ash || is_chromeos_lacros) ||
default_toolchain != "//build/toolchain/cros:target") &&

View File

@ -1,6 +1,6 @@
--- build/toolchain/gcc_toolchain.gni.orig 2021-05-26 12:26:11 UTC
--- build/toolchain/gcc_toolchain.gni.orig 2021-10-13 07:49:03 UTC
+++ build/toolchain/gcc_toolchain.gni
@@ -51,6 +51,11 @@ if (enable_resource_allowlist_generation) {
@@ -48,6 +48,11 @@ if (enable_resource_allowlist_generation) {
"enable_resource_allowlist_generation=true does not work for target_os=$target_os")
}
@ -12,7 +12,7 @@
# This template defines a toolchain for something that works like gcc
# (including clang).
#
@@ -654,13 +659,23 @@ template("clang_toolchain") {
@@ -673,13 +678,23 @@ template("clang_toolchain") {
}
gcc_toolchain(target_name) {

View File

@ -1,6 +1,6 @@
--- include/v8config.h.orig 2021-04-22 15:00:28 UTC
--- include/v8config.h.orig 2021-10-06 18:22:58 UTC
+++ include/v8config.h
@@ -293,7 +293,18 @@ path. Add it with -I<path> to the command line
@@ -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))

View File

@ -1,6 +1,6 @@
--- src/api/api.cc.orig 2021-06-08 16:09:55 UTC
--- src/api/api.cc.orig 2021-10-06 18:22:58 UTC
+++ src/api/api.cc
@@ -5764,7 +5764,7 @@ bool v8::V8::Initialize(const int build_config) {
@@ -5886,7 +5886,7 @@ bool v8::V8::Initialize(const int build_config) {
return true;
}
@ -8,4 +8,4 @@
+#if V8_OS_LINUX || V8_OS_MACOSX || V8_OS_OPENBSD || V8_OS_FREEBSD
bool TryHandleWebAssemblyTrapPosix(int sig_code, siginfo_t* info,
void* context) {
// When the target code runs on the V8 arm simulator, the trap handler does
#if V8_ENABLE_WEBASSEMBLY && V8_TRAP_HANDLER_SUPPORTED

View File

@ -1,6 +1,6 @@
--- src/base/cpu.cc.orig 2021-06-08 16:09:55 UTC
--- src/base/cpu.cc.orig 2021-10-06 18:22:58 UTC
+++ src/base/cpu.cc
@@ -572,6 +572,7 @@ CPU::CPU()
@@ -568,6 +568,7 @@ CPU::CPU()
#if V8_OS_LINUX
@ -8,7 +8,7 @@
CPUInfo cpu_info;
// Extract implementor from the "CPU implementer" field.
@@ -605,6 +606,7 @@ CPU::CPU()
@@ -601,6 +602,7 @@ CPU::CPU()
}
delete[] part;
}

View File

@ -1,6 +1,6 @@
--- src/base/platform/platform-posix.cc.orig 2021-04-22 15:00:28 UTC
--- src/base/platform/platform-posix.cc.orig 2021-10-06 18:22:58 UTC
+++ src/base/platform/platform-posix.cc
@@ -478,7 +478,7 @@ bool OS::DiscardSystemPages(void* address, size_t size
@@ -493,7 +493,7 @@ bool OS::DiscardSystemPages(void* address, size_t size
// static
bool OS::HasLazyCommits() {
@ -9,7 +9,7 @@
return true;
#else
// TODO(bbudge) Return true for all POSIX platforms.
@@ -611,6 +611,12 @@ int OS::GetCurrentThreadId() {
@@ -626,6 +626,12 @@ int OS::GetCurrentThreadId() {
return static_cast<int>(syscall(__NR_gettid));
#elif V8_OS_ANDROID
return static_cast<int>(gettid());