From a20690304b864d931706b1720e0cd2e1512af4f4 Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Sat, 11 Apr 2026 09:26:01 +0200 Subject: [PATCH 1/4] Try to fix printf linking error --- mingw-w64-v8/PKGBUILD | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mingw-w64-v8/PKGBUILD b/mingw-w64-v8/PKGBUILD index 18cda3c..5cb3997 100644 --- a/mingw-w64-v8/PKGBUILD +++ b/mingw-w64-v8/PKGBUILD @@ -177,6 +177,9 @@ prepare() { # Fix for silly comment warning in clang sed -e 's|^//.*\\$|//|g' -i include/v8-internal.h + + sed -e 's|_MSC_VER|9999|g' -i src/utils/ostreams.cc + sed -e 's|MINGW_HAS_SECURE_API|BLABLA|g' -i src/base/platform/platform-win32.cc } build() { From 21d13b443192a9822a7db0284420060840cbd8d8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 11 Apr 2026 08:03:22 +0000 Subject: [PATCH 2/4] Add v8_enable_sandbox=false to build flags Agent-Logs-Url: https://github.com/r-windows/ucrt-libs/sessions/f8176838-5df3-462c-9c3c-035c9a615288 Co-authored-by: jeroen <216319+jeroen@users.noreply.github.com> --- mingw-w64-v8/PKGBUILD | 1 + 1 file changed, 1 insertion(+) diff --git a/mingw-w64-v8/PKGBUILD b/mingw-w64-v8/PKGBUILD index 5cb3997..f7bd44d 100644 --- a/mingw-w64-v8/PKGBUILD +++ b/mingw-w64-v8/PKGBUILD @@ -222,6 +222,7 @@ build() { v8_enable_verify_heap=false v8_symbol_level=${_symbol} v8_enable_partition_alloc=false + v8_enable_sandbox=false v8_enable_temporal_support=false v8_use_external_startup_data=false chrome_pgo_phase=0 From ba707f5f3faaad1ca8483a61e319ae8c746a0040 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 11 Apr 2026 10:27:01 +0000 Subject: [PATCH 3/4] Fix linker order issue by wrapping RSP file with --start-group/--end-group Agent-Logs-Url: https://github.com/r-windows/ucrt-libs/sessions/38900fd5-6fe4-45f7-af0e-68ad464e7041 Co-authored-by: jeroen <216319+jeroen@users.noreply.github.com> --- mingw-w64-v8/001-add-mingw-toolchain.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-v8/001-add-mingw-toolchain.patch b/mingw-w64-v8/001-add-mingw-toolchain.patch index 149ed6e..cf99dde 100644 --- a/mingw-w64-v8/001-add-mingw-toolchain.patch +++ b/mingw-w64-v8/001-add-mingw-toolchain.patch @@ -1256,7 +1256,7 @@ diff -ruN --ex build-repo/toolchain/gcc_toolchain.gni build-repo-check/toolchain # Rust libraries are alpha-sorted instead of by dependencies so they fail # to link if not properly ordered or grouped. - link_command = "$ld {{ldflags}}${extra_ldflags} -o \"$unstripped_outfile\" $start_group_flag @\"$rspfile\" $end_group_flag {{solibs}} {{libs}} $start_group_flag {{rlibs}} $end_group_flag" -+ link_command = "$ld {{ldflags}}${extra_ldflags} -o \"$unstripped_outfile\" @\"$rspfile\" $start_group_flag {{solibs}} {{libs}} $end_group_flag {{rlibs}}" ++ link_command = "$ld {{ldflags}}${extra_ldflags} -o \"$unstripped_outfile\" -Wl,--start-group @\"$rspfile\" -Wl,--end-group $start_group_flag {{solibs}} {{libs}} $end_group_flag {{rlibs}}" # Generate a map file to be used for binary size analysis. # Map file adds ~10% to the link time on a z620. From f80baf6e44201a83ded7881d84420d9a22173a7a Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Sat, 11 Apr 2026 12:30:10 +0200 Subject: [PATCH 4/4] Bump build --- mingw-w64-v8/PKGBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mingw-w64-v8/PKGBUILD b/mingw-w64-v8/PKGBUILD index f7bd44d..0aa50df 100644 --- a/mingw-w64-v8/PKGBUILD +++ b/mingw-w64-v8/PKGBUILD @@ -5,7 +5,7 @@ _realname=v8 pkgbase=mingw-w64-${_realname} pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" pkgver=14.6.202.26 -pkgrel=1 +pkgrel=2 pkgdesc="Fast and modern Javascript engine (mingw-w64)" arch=('any') mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') @@ -70,7 +70,7 @@ sha256sums=('9967736b8381fdf34de72c3f84eebbdb30a867cb94d9a8ff6993504549cc65b5' 'SKIP' 'SKIP' 'SKIP' - '04ccd7b9ff3064bd74d4e521facadf71cdc09c8304fe58cdcf52901a345500da' + 'f718e60f47248e7138158b61818631dc1eca582be8122f91e33cf20069e27d1e' 'ebd7b8e2b91e02879cb6c83154cb276be2a820f939b6d166e98b39c175b0eb51' '274d4cfc5a8a4f99699e67fed36565f315dd3bc0d1335bbf5070ba7052d99541' 'aa7255002773aa3944027e0aab19627eee089c2ec3893713c8c7ff082e214553'