status-go/_assets/patches/geth-xgo
Dmitry Shulyak c8a553f9c1 Fix 0002 xgo patch which changed because metrics got forked 2018-05-02 22:59:54 +02:00
..
0001-fix-duktapev3-missing-SIZE_MAX-def.patch Update to go-ethereum 1.8.1 (#702) 2018-02-27 11:39:30 +01:00
0002-remove-dashboard-collectData.patch Fix 0002 xgo patch which changed because metrics got forked 2018-05-02 22:59:54 +02:00
README.md Update to go-ethereum 1.8.1 (#702) 2018-02-27 11:39:30 +01:00

README.md

Status Patches for geth (go-ethereum) cross-compiled in Xgo


Status-go uses go-ethereum (upstream) as its dependency. When cross-compiling with Xgo, some headers or definitions are not available within the Xgo environment. In such a situation, we temporarily patch the sources before kicking the build in Xgo and revert them afterwards (this is taken care by the respective Makefile targets).

We try to minimize number and amount of changes in those patches as much as possible, and whereas possible, to contribute changes into the upstream.

Creating patches

Instructions for creating a patch from the command line:

  1. Enter the command line at the go-ethereum dependency root in vendor folder.
  2. Create the patch:
    1. If you already have a commit that represents the change, find its SHA1 (e.g. $COMMIT_SHA1) and do git diff $COMMIT_SHA1 > file.patch
    2. If the files are staged, do git diff --cached > file.patch

Patches