J2V8 icon indicating copy to clipboard operation
J2V8 copied to clipboard

nodejs diff apply error

Open mccoysc opened this issue 6 years ago • 3 comments

nodejs diff apply [apply-diff] Applying Node.js patch: node.patches\7.4.0.diff error: patch failed: common.gypi:183 error: common.gypi: patch does not apply error: patch failed: deps/cares/common.gypi:80 error: deps/cares/common.gypi: patch does not apply error: patch failed: deps/uv/common.gypi:87 error: deps/uv/common.gypi: patch does not apply error: patch failed: src/node.h:414 error: src/node.h: patch does not apply Traceback (most recent call last): File "nodejs.py", line 332, in cmd_handler.function(sys.argv[3:]) File "nodejs.py", line 272, in apply_diff utils.execute("git apply " + os.path.join("..", patch_file), "node") File "d:\code\j2v8\J2V8\build_system\build_utils.py", line 157, in execute raise subprocess.CalledProcessError(return_code, cmd) subprocess.CalledProcessError: Command 'git apply ..\node.patches\7.4.0.diff' returned non-zero exit status 1

mccoysc avatar May 19 '18 02:05 mccoysc

Same error here

emmanuelandre avatar Feb 24 '19 09:02 emmanuelandre

Same issue. Has anyone figured out the resolution? Is this a directory structure issue?

prad2019 avatar May 25 '19 13:05 prad2019

On windows, I find my issue is that node.patches\7.4.0.diff use CRLF as line end. and in node folder, files are use LF as line end.

To resolve this. I change the node.patches\7.4.0.diff's CRLF to LF. And it works.

If you use vscode, you can change at right bottom, there's a button.

huhuang03 avatar May 23 '20 02:05 huhuang03