1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
Po-Chuan Hsieh 2021-11-01 21:23:58 +08:00
parent 3e0e341fb5
commit 71d0bbaa42
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
11 changed files with 111 additions and 57 deletions

View File

@ -1,9 +1,8 @@
# We follow the stable channel on https://omahaproxy.appspot.com/
# https://chromium.googlesource.com/v8/v8/+/refs/heads/9.4-lkgr
# https://chromium.googlesource.com/v8/v8/+/refs/heads/9.5-lkgr
PORTNAME= v8
PORTVERSION= 9.4.146.21
PORTREVISION= 1
PORTVERSION= 9.5.172.21
CATEGORIES= lang
MASTER_SITES= LOCAL/sunpoet/v8/${PORTVERSION:R:R}
DISTFILES= build-${BUILD_REV}.tar.gz \
@ -40,13 +39,15 @@ USE_GITHUB= yes
CPE_VENDOR= google
BUILD_REV= bbf7f0ed65548c4df862d2a2748e3a9b908a3217
BUILDTOOLS_REV= 37dc929ecb351687006a61744b116cda601753d7
CLANG_REV= 6a8e571efd68de48d226950d1e10cb8982e71496
COMMON_REV= 3da1e2fcf66acd5c7194497b4285ac163f32e239
GOOGLETEST_REV= 47f819c3ca54fb602f432904443e00a0a1fe2f42
ICU_REV= 75e34bcccea0be165c31fdb278b3712c516c5876
ZLIB_REV= 563140dd9c24f84bf40919196e9e7666d351cc0d
CONFLICTS_INSTALL= v8-beta
BUILD_REV= 17d097b0ffdc297f04afb54e9e3abff3f1203f06
BUILDTOOLS_REV= 7ea3a871db68ae2cbbeaf5433a3192a799ef3c11
CLANG_REV= 664e4259b150e07f1a1e440459f59fbc68edb82f
COMMON_REV= 715537d6007ca71837f48bcb04fc3d482aed2507
GOOGLETEST_REV= 955c7f837efad184ec63e771c42542d37545eaef
ICU_REV= ece15d049f2d360721716089372e3749fb89e0f4
ZLIB_REV= 77c132322fe81a1f5518b326e18c99ebd3281627
# 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 = 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
TIMESTAMP = 1635730887
SHA256 (v8/9.5/build-17d097b0ffdc297f04afb54e9e3abff3f1203f06.tar.gz) = 573a14277f0396036cee590ad8bde975d548e0bc8e058d903b85bd1e267e8daf
SIZE (v8/9.5/build-17d097b0ffdc297f04afb54e9e3abff3f1203f06.tar.gz) = 1352410
SHA256 (v8/9.5/buildtools-7ea3a871db68ae2cbbeaf5433a3192a799ef3c11.tar.gz) = 983ec9c9c86500c7e6d8268154288d9210dfe266412e4d0100a01c45b61b3b02
SIZE (v8/9.5/buildtools-7ea3a871db68ae2cbbeaf5433a3192a799ef3c11.tar.gz) = 86616
SHA256 (v8/9.5/clang-664e4259b150e07f1a1e440459f59fbc68edb82f.tar.gz) = 66773f87adfe5f52e37fb09b0264cb43d5cfe3b24f9e33aa55617cf426612ffc
SIZE (v8/9.5/clang-664e4259b150e07f1a1e440459f59fbc68edb82f.tar.gz) = 288513
SHA256 (v8/9.5/common-715537d6007ca71837f48bcb04fc3d482aed2507.tar.gz) = dcc753c65559edff8701726f8a290967af7facb7fa874a027dc9f206ba991e51
SIZE (v8/9.5/common-715537d6007ca71837f48bcb04fc3d482aed2507.tar.gz) = 10621
SHA256 (v8/9.5/googletest-955c7f837efad184ec63e771c42542d37545eaef.tar.gz) = 094db2b1ca9a6c416de65b82c3cae1867a9a35055b4d46834500854be0c92875
SIZE (v8/9.5/googletest-955c7f837efad184ec63e771c42542d37545eaef.tar.gz) = 860816
SHA256 (v8/9.5/icu-ece15d049f2d360721716089372e3749fb89e0f4.tar.gz) = 97dd96538d6d1f4933d5b74cafe83ccc01722a9c567be76d8f71131e11c4a082
SIZE (v8/9.5/icu-ece15d049f2d360721716089372e3749fb89e0f4.tar.gz) = 43800859
SHA256 (v8/9.5/zlib-77c132322fe81a1f5518b326e18c99ebd3281627.tar.gz) = a1a87e62c5f33c49095e648c8a5f6a446ebb6b8b41f00557ccf7abfd3d4810a5
SIZE (v8/9.5/zlib-77c132322fe81a1f5518b326e18c99ebd3281627.tar.gz) = 313072
SHA256 (v8/9.5/v8-v8-9.5.172.21_GH0.tar.gz) = ee5a4659880cf3ef05e1cfa65a280ea4b35439e59db138501a211256451ba15f
SIZE (v8/9.5/v8-v8-9.5.172.21_GH0.tar.gz) = 27039038

View File

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

View File

@ -1,4 +1,4 @@
--- build/config/BUILDCONFIG.gn.orig 2021-05-26 12:26:11 UTC
--- build/config/BUILDCONFIG.gn.orig 2021-10-20 15:47:54 UTC
+++ build/config/BUILDCONFIG.gn
@@ -131,7 +131,7 @@ declare_args() {
is_official_build = false

View File

@ -1,6 +1,6 @@
--- build/config/compiler/BUILD.gn.orig 2021-10-13 07:49:03 UTC
--- build/config/compiler/BUILD.gn.orig 2021-10-20 15:47:54 UTC
+++ build/config/compiler/BUILD.gn
@@ -139,7 +139,7 @@ declare_args() {
@@ -140,7 +140,7 @@ declare_args() {
#
# TODO(crbug.com/1131993): Enabling this when 'is_android' is true breaks
# content_shell_test_apk on both ARM and x86.
@ -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
@@ -354,7 +354,7 @@ config("compiler") {
@@ -355,7 +355,7 @@ config("compiler") {
}
# Linker warnings.
@ -18,7 +18,7 @@
ldflags += [ "-Wl,--fatal-warnings" ]
}
if (fatal_linker_warnings && is_apple) {
@@ -530,7 +530,7 @@ config("compiler") {
@@ -531,7 +531,7 @@ config("compiler") {
ldflags += [ "-Wl,-z,keep-text-section-prefix" ]
}
@ -27,7 +27,7 @@
cflags += [ "-fcrash-diagnostics-dir=" + clang_diagnostic_dir ]
# TODO(hans): Remove this once Clang generates better optimized debug info
@@ -879,7 +879,7 @@ config("compiler_cpu_abi") {
@@ -909,7 +909,7 @@ config("compiler_cpu_abi") {
cflags += [ "-mtune=$arm_tune" ]
}
} else if (current_cpu == "arm64") {
@ -36,7 +36,7 @@
cflags += [ "--target=aarch64-linux-gnu" ]
ldflags += [ "--target=aarch64-linux-gnu" ]
}
@@ -1223,7 +1223,7 @@ config("compiler_deterministic") {
@@ -1253,7 +1253,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.
@ -45,7 +45,7 @@
# TODO(https://crbug.com/1231236): Use -ffile-compilation-dir= here.
cflags += [
"-Xclang",
@@ -1236,7 +1236,7 @@ config("compiler_deterministic") {
@@ -1266,7 +1266,7 @@ config("compiler_deterministic") {
# and -fcoverage-compilation-dir=.
cflags += [ "-ffile-compilation-dir=." ]
}
@ -54,16 +54,16 @@
# We don't use clang -cc1as on Windows (yet? https://crbug.com/762167)
asmflags = [ "-Wa,-fdebug-compilation-dir,." ]
}
@@ -1610,7 +1610,7 @@ config("default_warnings") {
@@ -1650,7 +1650,7 @@ config("default_warnings") {
cflags += [ "-Wno-null-pointer-subtraction" ]
}
- if (current_toolchain == host_toolchain || !use_xcode_clang) {
+ if ((current_toolchain == host_toolchain || !use_xcode_clang) && !is_bsd) {
# Flags NaCl (Clang 3.7) and Xcode 9.2 (Clang clang-900.0.39.2) do not
# recognize.
# Flags Xcode 9.2 (Clang clang-900.0.39.2) does not recognize.
cflags += [
@@ -1858,7 +1858,7 @@ config("thin_archive") {
"-Wenum-compare-conditional",
@@ -1904,7 +1904,7 @@ config("thin_archive") {
# archives.
# TODO(crbug.com/1221615): Enable on is_apple if use_lld once that no longer
# confuses lldb.
@ -72,7 +72,7 @@
arflags = [ "-T" ]
} else if (is_win && use_lld) {
arflags = [ "/llvmlibthin" ]
@@ -2372,7 +2372,7 @@ config("symbols") {
@@ -2404,7 +2404,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) {
@ -80,8 +80,8 @@
+ cflags += [ "-g0" ]
}
if (is_apple) {
@@ -2397,7 +2397,7 @@ config("symbols") {
if (!is_nacl && is_clang && !is_tsan && !is_asan) {
@@ -2439,7 +2439,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" &&
@ -90,7 +90,7 @@
if (is_clang) {
# This flag enables the GNU-format pubnames and pubtypes sections,
# which lld needs in order to generate a correct GDB index.
@@ -2410,7 +2410,7 @@ config("symbols") {
@@ -2452,7 +2452,7 @@ config("symbols") {
}
if (is_clang && !is_nacl && !use_xcode_clang) {

View File

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

View File

@ -0,0 +1,11 @@
--- build/config/rust.gni.orig 2021-10-20 15:47:54 UTC
+++ build/config/rust.gni
@@ -58,7 +58,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)

View File

@ -1,6 +1,6 @@
--- build/toolchain/gcc_toolchain.gni.orig 2021-10-13 07:49:03 UTC
--- build/toolchain/gcc_toolchain.gni.orig 2021-10-20 15:47:54 UTC
+++ build/toolchain/gcc_toolchain.gni
@@ -48,6 +48,11 @@ if (enable_resource_allowlist_generation) {
@@ -49,6 +49,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).
#
@@ -673,13 +678,23 @@ template("clang_toolchain") {
@@ -736,13 +741,23 @@ template("clang_toolchain") {
}
gcc_toolchain(target_name) {

View File

@ -1,6 +1,6 @@
--- src/api/api.cc.orig 2021-10-06 18:22:58 UTC
--- src/api/api.cc.orig 2021-10-12 18:11:43 UTC
+++ src/api/api.cc
@@ -5886,7 +5886,7 @@ bool v8::V8::Initialize(const int build_config) {
@@ -5989,7 +5989,7 @@ bool v8::V8::Initialize(const int build_config) {
return true;
}

View File

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

View File

@ -43,21 +43,63 @@ include/cppgc/visitor.h
include/libplatform/libplatform-export.h
include/libplatform/libplatform.h
include/libplatform/v8-tracing.h
include/v8-array-buffer.h
include/v8-callbacks.h
include/v8-container.h
include/v8-context.h
include/v8-cppgc.h
include/v8-data.h
include/v8-date.h
include/v8-debug.h
include/v8-embedder-heap.h
include/v8-exception.h
include/v8-extension.h
include/v8-external.h
include/v8-fast-api-calls.h
include/v8-forward.h
include/v8-function-callback.h
include/v8-function.h
include/v8-initialization.h
include/v8-inspector-protocol.h
include/v8-inspector.h
include/v8-internal.h
include/v8-isolate.h
include/v8-json.h
include/v8-local-handle.h
include/v8-locker.h
include/v8-maybe.h
include/v8-memory-span.h
include/v8-message.h
include/v8-metrics.h
include/v8-microtask-queue.h
include/v8-microtask.h
include/v8-object.h
include/v8-persistent-handle.h
include/v8-platform.h
include/v8-primitive-object.h
include/v8-primitive.h
include/v8-profiler.h
include/v8-promise.h
include/v8-proxy.h
include/v8-regexp.h
include/v8-script.h
include/v8-snapshot.h
include/v8-statistics.h
include/v8-template.h
include/v8-traced-handle.h
include/v8-typed-array.h
include/v8-unwinder-state.h
include/v8-unwinder.h
include/v8-util.h
include/v8-value-serializer-version.h
include/v8-value-serializer.h
include/v8-value.h
include/v8-version-string.h
include/v8-version.h
include/v8-wasm-trap-handler-posix.h
include/v8-wasm-trap-handler-win.h
include/v8-wasm.h
include/v8-weak-callback-info.h
include/v8.h
include/v8config.h
lib/libchrome_zlib.so