I’m following this guide to build a page-graph enabled version of Brave: https://github.com/brave/brave-browser/wiki/PageGraph
The wiki page suggests
git clone -b page-graph https://github.com/brave/brave-browser
but page-graph branch does not exist anymore. Based on the logs, it looks like it was removed couple of months ago.
Looking at git history, the removed branch was pointing to page-graph branch under package.json for brave-core. But after making this change, I get an error when applying the patches during npm run init:
6 failed patches:
content/browser/renderer_host/render_process_host_impl.cc
- Patch applied because: No corresponding .patchinfo file was found.
- Error - Program git exited with error code 1.
error: patch failed: content/browser/renderer_host/render_process_host_impl.cc:298
error: content/browser/renderer_host/render_process_host_impl.cc: patch does not apply
------------------------------------------------------------------------------------------------------------------------------------
content/browser/renderer_host/render_process_host_impl.h
- Patch applied because: No corresponding .patchinfo file was found.
- Error - Program git exited with error code 1.
error: patch failed: content/browser/renderer_host/render_process_host_impl.h:796
error: content/browser/renderer_host/render_process_host_impl.h: patch does not apply
------------------------------------------------------------------------------------------------------------------------------------
content/common/view_messages.h
- Patch applied because: No corresponding .patchinfo file was found.
- Error - Program git exited with error code 1.
error: content/common/view_messages.h: No such file or directory
------------------------------------------------------------------------------------------------------------------------------------
content/renderer/render_view_impl.cc
- Patch applied because: No corresponding .patchinfo file was found.
- Error - Program git exited with error code 1.
error: patch failed: content/renderer/render_view_impl.cc:434
error: content/renderer/render_view_impl.cc: patch does not apply
------------------------------------------------------------------------------------------------------------------------------------
content/renderer/render_view_impl.h
- Patch applied because: No corresponding .patchinfo file was found.
- Error - Program git exited with error code 1.
error: patch failed: content/renderer/render_view_impl.h:235
error: content/renderer/render_view_impl.h: patch does not apply
------------------------------------------------------------------------------------------------------------------------------------
third_party/blink/renderer/bindings/core/v8/script_controller.cc
- Patch applied because: No corresponding .patchinfo file was found.
- Error - Program git exited with error code 1.
error: patch failed: third_party/blink/renderer/bindings/core/v8/script_controller.cc:71
error: third_party/blink/renderer/bindings/core/v8/script_controller.cc: patch does not apply
I have tried different combinations of using “page-graph-rebase” branches for “brave-browser” and “brave-core” but all of them would return a slightly different version of the same error (failing to apply the patches).
Any help with regards to building page-graph enabled Brave would be greatly appreciated.