Browse Source

Move things to util/ and update docs+build system references

pull/208/head
Jonathan "Duke" Leto 2 years ago
parent
commit
2b809c56a0
  1. 2
      DEVELOPING.md
  2. 4
      Makefile.am
  3. 2
      contrib/devtools/README.md
  4. 6
      doc/release-process.md
  5. 4
      src/Makefile.am
  6. 0
      util/security-check.py
  7. 2
      util/symbol-check.py

2
DEVELOPING.md

@ -78,7 +78,7 @@ of a dependency or something inside of Rust, you will need `build.sh` .
Make sure that you have updated all version numbers in hushd and compiled, then
to generate new unix man pages for that version :
./contrib/devtools/gen-manpages.sh
./util/gen-manpages.sh
## Generating new debian packages

4
Makefile.am

@ -24,8 +24,8 @@ BITCOIN_WIN_INSTALLER=$(PACKAGE)-$(PACKAGE_VERSION)-win$(WINDOWS_BITS)-setup$(EX
DIST_DOCS = $(wildcard doc/*.md) $(wildcard doc/release-notes/*.md)
BIN_CHECKS=$(top_srcdir)/contrib/devtools/symbol-check.py \
$(top_srcdir)/contrib/devtools/security-check.py
BIN_CHECKS=$(top_srcdir)/util/symbol-check.py \
$(top_srcdir)/util/security-check.py

2
contrib/devtools/README.md

@ -14,7 +14,7 @@ still compatible with the minimum supported Linux distribution versions.
Example usage after a gitian build:
find ../gitian-builder/build -type f -executable | xargs python contrib/devtools/symbol-check.py
find ../gitian-builder/build -type f -executable | xargs python util/symbol-check.py
If only supported symbols are used the return value will be 0 and the output will be empty.

6
doc/release-process.md

@ -61,7 +61,7 @@ Install deps on Linux:
- To make a pre-release "beta" you can modify `CLIENT_VERSION_BUILD` but that is rarely done in Hush world.
- A `CLIENT_VERSION_BUILD` of 50 means "actual non-beta release"
- Make sure to keep the values in configure.ac and src/clientversion.h the same. The variables are prefixed wth an underscore in configure.ac
- Run ./contrib/devtools/gen-manpages.sh, commit + push results
- Run ./util/gen-manpages.sh, commit + push results
- PROTIP: Man page creation must be done after updating the version number and recompiling and before Debian package creation
- Update checkpoints in src/chainparams.cpp via util/checkpoints.pl
- checkpoints.pl will just generate the data you need, it must be manually copied into the correct place
@ -69,12 +69,12 @@ Install deps on Linux:
- Checkpoints make block verification a bit faster, because nodes can say "is this block a descendant of a checkpoint block" instead of doing full consensus checks, which take more time
- Checkpoints also provide a bit of security against some attacks that would create malicious chainforks
- Update man pages
- Update copyright years (if applicable) with contrib/devtools/replace.pl
- Update copyright years (if applicable) with util/replace.pl
- Do a fresh clone and fresh sync with new checkpoints
- Stop node, wait 20 minutes, and then do a partial sync with new checkpoints
- Make Gitea release
- Make Git Tag (Gitea can do this)
- Use contrib/devtools/gen-linux-binary-release.sh to make a Linux release binary
- Use util/gen-linux-binary-release.sh to make a Linux release binary
- Use util/build-debian-package.sh to make an x86 Debian package for the release
- Use util/build-debian-package-ARM.sh (does this still work?) to make an ARM Debian package for the release
- Upload the debian packages to the Gitea release page, with SHA256 sums

4
src/Makefile.am

@ -683,13 +683,13 @@ clean-local:
check-symbols: $(bin_PROGRAMS)
if GLIBC_BACK_COMPAT
@echo "Checking glibc back compat of [$(bin_PROGRAMS)]..."
$(AM_V_at) READELF=$(READELF) CPPFILT=$(CPPFILT) $(top_srcdir)/contrib/devtools/symbol-check.py $(bin_PROGRAMS)
$(AM_V_at) READELF=$(READELF) CPPFILT=$(CPPFILT) $(top_srcdir)/util/symbol-check.py $(bin_PROGRAMS)
endif
check-security: $(bin_PROGRAMS)
if HARDEN
@echo "Checking binary security of [$(bin_PROGRAMS)]..."
$(AM_V_at) READELF=$(READELF) OBJDUMP=$(OBJDUMP) $(top_srcdir)/contrib/devtools/security-check.py $(bin_PROGRAMS)
$(AM_V_at) READELF=$(READELF) OBJDUMP=$(OBJDUMP) $(top_srcdir)/util/security-check.py $(bin_PROGRAMS)
endif
%.pb.cc %.pb.h: %.proto

0
contrib/devtools/security-check.py → util/security-check.py

2
contrib/devtools/symbol-check.py → util/symbol-check.py

@ -10,7 +10,7 @@ still compatible with the minimum supported Linux distribution versions.
Example usage:
find ../gitian-builder/build -type f -executable | xargs python contrib/devtools/symbol-check.py
find ../gitian-builder/build -type f -executable | xargs python util/symbol-check.py
'''
from __future__ import division, print_function
import subprocess
Loading…
Cancel
Save