Skip to content

Commit d71612a

Browse files
committed
fix(smol-builder): convert remaining patches to standard unified diff format
Converted patches 003 and 004 from git format to standard unified diff: - Removed `diff --git a/... b/...` lines - Removed `index xxxxxxxx..yyyyyyyy` lines - Updated patch creation documentation All Node.js patches now use clean, portable unified diff format compatible with standard `patch -p1` command across all platforms.
1 parent de3baa3 commit d71612a

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

packages/node-smol-builder/patches/003-socketsecurity_brotli_friend_v24.10.0.patch

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
# IMPORTANT: Forward declaration MUST be in global namespace (before node namespace)
1616
# to avoid name collisions and ensure correct friend declaration matching.
1717

18-
diff --git a/src/node_union_bytes.h b/src/node_union_bytes.h
19-
index 4a3f6798..3a144bdb 100644
2018
--- a/src/node_union_bytes.h
2119
+++ b/src/node_union_bytes.h
2220
@@ -6,6 +6,13 @@

packages/node-smol-builder/patches/004-socketsecurity_brotli2c_build_v24.10.0.patch

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,16 @@
1717
# Brotli-compressed binary data must be output as byte arrays, not string literals.
1818
#
1919
# PATCH CREATION PROCESS:
20-
# This patch was created using git diff against pristine Node.js v24.10.0 source.
20+
# This patch was created using standard unified diff format (not git format).
2121
# Steps:
2222
# 1. Clone Node.js v24.10.0
2323
# 2. Modify node.gyp to:
2424
# - Add socket_brotli2c target
2525
# - Add socket_brotli2c_exec variable
2626
# - Modify node_js2c action to use socket_brotli2c_exec
27-
# 3. Generate patch with: git add node.gyp && git diff --cached
28-
# 4. Validate with: git reset --hard && patch -p1 --dry-run < patch-file
27+
# 3. Generate patch with: diff -u original.gyp modified.gyp
28+
# 4. Validate with: patch -p1 --dry-run < patch-file
2929
#
30-
diff --git a/node.gyp b/node.gyp
31-
index 420d5713..a9e77596 100644
3230
--- a/node.gyp
3331
+++ b/node.gyp
3432
@@ -434,6 +434,7 @@

0 commit comments

Comments
 (0)