build: Guard against accidental introduction of new Boost dependencies
Summary:
Guard against accidental introduction of new Boost dependencies. Context: #13383 the usage of boost::lexical_cast was introduced in #11517 from December 2017
Backport of core PR13385
https://github.com/bitcoin/bitcoin/pull/13385/files
The lint-include.sh has been renamed as all the other parts of it
(apart from the boost dependency checks) have been ported as arcanist
linters.
The expected list has been updated to reflect our codebase.
Test Plan:
Should return no error:
./test/lint/lint-boost-dependencies.sh
Comment one of the expected boost include and run again. Check the error
is found.
Add a boost/dummy.hpp to the expected list and run again. Check the
linter displays a Good job! message.
Reviewers: #bitcoin_abc, deadalnix
Reviewed By: #bitcoin_abc, deadalnix
Differential Revision: https://reviews.bitcoinabc.org/D3723