user/mbedtls: FTBFS: checkdepends=python3 required for build
Found on x86_64 (autobuilder) with ABUILD_BOOTSTRAP=1
to disable tests:
...
-- The C compiler identification is GNU 8.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/local/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Could NOT find Python3 (missing: Python3_EXECUTABLE Interpreter)
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
env: ‘python3’: No such file or directory
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
CMake Error at tests/CMakeLists.txt:13 (message):
Cannot build test suites without Python 3
-- Configuring incomplete, errors occurred!
See also "/usr/src/packages/user/mbedtls/src/mbedtls-3.4.1/CMakeFiles/CMakeOutput.log".
>>> ERROR: mbedtls: build failed
>>> mbedtls: Uninstalling dependencies...
(1/5) Purging .makedepends-mbedtls (20231202.070042)
(2/5) Purging cmake (3.23.5-r0)
(3/5) Purging libarchive (3.7.2-r0)
(4/5) Purging libuv (1.44.2-r0)
(5/5) Purging rhash-libs (1.4.3-r0)
OK: 418 MiB in 91 packages
As discussed in IRC last week about a theoretical checkmakedepends
, this issue crops up because python3
is not installed as a dependency when the !check
option is set.
I'm not sure the best/correct way forward, whether that is to move python3
to the makedepends
variable (it's only needed to build the tests, not run them?), or to patch the build script to detect whether tests are enabled (options_has
or such?).