[BTC-dev] Rotor!

Stanislav Datskovskiy stas at loper-os.org
Mon Jul 27 21:15:52 UTC 2015


Name: README_s.txt
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20150727/README_s_14971be368dc231e73f704f3d4c71d30836b1646.txt>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Meet 'Rotor.'

This is the full orchestra at last.

It will build a fully-static, DETERMINISTIC bitcoind,
using a DETERMINISTIC gcc (!!!) of your choice [1],
on any reasonable unix, on any reasonable machine,
optionally cross-compiled TO any reasonable machine. [2]

The buildroot .config given below is configured for musl!
It works.
But you can change it to glibc or uclibc if you like.

Read these instructions very carefully.
The exact placement of the files in this tarball to your subdirs is critical.!

Get buildroot-2015.XX.tar.gz from http://buildroot.uclibc.org/download.html :

$ sha512sum buildroot-2015.05.tar.gz 
c42fdd39cb2bc46804a86a7d7b2605bd3cd9ddcb365c4e5a1fb147eb02b234fc31a70c8140be2f4d27cd371c84e0c6701f8cb47697dd1c18dd0e0cce784aa07a  buildroot-2015.05.tar.gz

1) Check my pgp sig.
2) Check his pgp sig.
3) Put on a kettle of tea
4) Make a directory to hold everything in, e.g., /home/luser/rotor
5) Make a subdir in it, for the toolchain, e.g,, /home/luser/rotor/toolchain
6) in it, set up a stator dir, e.g.,
   /home/luser/rotor/stator
   and fill distfiles with tarballs, etc. as before.
7) copy buildroot-2015.05.tar.gz to the rotor base dir (from step 4)
8) tar xvfz buildroot-2015.05.tar.gz
9) copy my rotor_buildroot_dot_config to the now-untarred buildroot dir as '.config'
10) cd to the above dir
11) make
12) ...... tea time ......
.... gcc, toolchain, etc. will LOAD FROM THE NET!
.... TODO: we need to freeze all of it in time. and sign.
............................................................
13) you now have a custom toolchain (gcc, binutils.)
    if you don't like musl for some reason, can change .config.
14) you are now read to build 'stator' with the new toolchain:
    you will need to copy these to your ~stator~ dir:
      1) openssl-004-musl-termios.patch
      2) rotor.sh
      3) rotor_bitcoin_only.sh
    Also this is when you should apply your favourite patch set,
    to get the kind of bitcoin you want.
15) Run:
    A) ./rotor.sh to build the whole orchestra.
    B) ./rotor_bitcoin_only.sh to build ONLY bitcoind
       (given that you have already built the deps.)
16) Finish your tea...

- ----------------------------------------
$ objdump  -T bitcoind

bitcoind:     file format elf64-x86-64

objdump: bitcoind: not a dynamic object
DYNAMIC SYMBOL TABLE:
no symbols
- ----------------------------------------

IF YOU ARE HAVING 'LOCALE' ISSUES:

17) LC_ALL=C ./bitcoind -myip=xxx.xxx.xxx.xxx -addnode=195.211.154.159 &

*******

Attached is a proof-of-concept bitcoind (patches ONLY through classic 'stator'),
build using the above procedure.

- -------
[1] [2] edit the buildroot .config. RTFM.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQEcBAEBCgAGBQJVtp8UAAoJELmCKKABq//HIzgH/2NXyqwnZsnzgn+In+3ZMSnY
D7KstGy3aAjxt8YawBlpsAOXh/XYDglhXig9UShSuv+7Xr1yiune3ULzQiCtmTPZ
kodeqITMTqgjU/vA7HXkC2IE1Bz0azKRSrRG9ZIV7zs2NWseywaAU2y6Gyi1gls9
QxBqcNuouqS4CX+s32/qdgv/XVBZMdLmlSGdTATkBGJikJXw5CSWuU5MxKr0j5ed
x2/u4jqoJ1J+lTzwBehgJlpNIdSM3IkfkEKwskswuHBVWG1FUTZmVi9GaQf6fzCz
6/+vo3FDge5wMQzAYkpGPPLSSL4yIXHjJTnv9QoZ3UZKSl3rc/wx7iqQoe/CpOc=
=kXP9
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rotor.tar.gz
Type: application/x-gzip
Size: 10976 bytes
Desc: not available
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20150727/rotor_4c86b82236ebc4926a6ace8fb8310f37b948c8f1.tar.gz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rotor.tar.gz.sig
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20150727/rotor_b5a9f18591eff649d632065fc53ba5bc0c23d9ab.tar.gz.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bitcoind.gz
Type: application/x-gzip
Size: 1822681 bytes
Desc: not available
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20150727/bitcoind_c7843763b5d2d62f10915cd12d024649ed43e788.gz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bitcoind.gz.sig
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20150727/bitcoind_aff34e8a08189c498f1d6158d0e6e49e12682143.gz.sig>


More information about the BTC-dev mailing list