BUG/MEDIUM: contrib/spoa: do not register python3.8 if --embed fail
authorBertrand Jacquin <bertrand@jacquin.bzh>
Fri, 22 May 2020 16:03:46 +0000 (17:03 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 26 May 2020 14:16:19 +0000 (16:16 +0200)
commit54f7823ed5243be936e5310bc0edba222978fc94
treed422051315d6ec3167750e9fd4f70e56a6147654
parentb0b8b26e164ef6c7a407e8c36ac1889efad466a8
BUG/MEDIUM: contrib/spoa: do not register python3.8 if --embed fail

spoa server fails to build when python3.8 is not available. If
python3-config --embed fails, the output of the command is registered in
check_python_config.  However when it's later used to define
PYTHON_DEFAULT_INC and PYTHON_DEFAULT_LIB it's content does not match
and fallback to python2.7

Content of check_python_config when building with python3.6:

  Usage: bin/python3-config --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--help|--abiflags|--configdir python3

As we are only looking for return code, this commit ensure we always
ignore the output of python3-config or hash commands.
contrib/spoa_server/Makefile