This PR adds file-based logging for individual packages in depends. To use this feature one should provide LOG=1
.
A log file is printed out automatically in case of a build error. After successful build log files are being moved along with package archives:
0$ make -C depends HOST=x86_64-w64-mingw32 LOG=1
1$ find ./depends/built/x86_64-w64-mingw32 -name '*.log' | sort
2./depends/built/x86_64-w64-mingw32/bdb/bdb-4.8.30-5100a099801.log
3./depends/built/x86_64-w64-mingw32/boost/boost-1_71_0-313f82dc7de.log
4./depends/built/x86_64-w64-mingw32/libevent/libevent-2.1.12-stable-3fa27048d5e.log
5./depends/built/x86_64-w64-mingw32/libnatpmp/libnatpmp-4536032ae32268a45c073a4d5e91bbab4534773a-9db4850dd32.log
6./depends/built/x86_64-w64-mingw32/miniupnpc/miniupnpc-2.2.2-75d9a1807e0.log
7./depends/built/x86_64-w64-mingw32/native_b2/native_b2-1_71_0-3bf253c19bf.log
8./depends/built/x86_64-w64-mingw32/qrencode/qrencode-3.4.4-dfac87af599.log
9./depends/built/x86_64-w64-mingw32/qt/qt-5.15.2-9304e03d3ac.log
10./depends/built/x86_64-w64-mingw32/sqlite/sqlite-3320100-455acafa7be.log
11./depends/built/x86_64-w64-mingw32/zeromq/zeromq-4.3.1-5ff627ec84a.log
An example of CI tasks with package build errors – https://cirrus-ci.com/task/5275741788045312
Closes #16368.