From fcbb6ddcc712910808a855c81a5e951ac9645f1a Mon Sep 17 00:00:00 2001 From: Evgeniy Patlan Date: Wed, 19 Aug 2026 12:54:29 +0300 Subject: [PATCH] Declare bison and python3 as Debian build dependencies mysqlshdk/libs/yparser generates its SQL parsers with bison, and yparser/mysql/CMakeLists.txt does find_package(Python3 REQUIRED COMPONENTS Interpreter). Neither was listed in Build-Depends, so the build fails on a clean builder that has only the declared packages installed. python3-dev was already listed but does not guarantee the interpreter is present in a minimal chroot. --- packaging/debian/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packaging/debian/CMakeLists.txt b/packaging/debian/CMakeLists.txt index 31e178358..d92e4b7ea 100644 --- a/packaging/debian/CMakeLists.txt +++ b/packaging/debian/CMakeLists.txt @@ -134,6 +134,11 @@ message(STATUS "OS code name : ${CODENAME}") set(EXTRA_CMAKE_OPTS) set(DEB_BUILD_DEPS) set(DEB_DEPS) + +# Always required: mysqlshdk/libs/yparser generates its parsers with bison and +# drives the generation from a python3 interpreter +list(APPEND DEB_BUILD_DEPS "bison") +list(APPEND DEB_BUILD_DEPS "python3") if(BUNDLED_SSH_DIR) list(APPEND EXTRA_CMAKE_OPTS "-DBUNDLED_SSH_DIR=${BUNDLED_SSH_DIR}") else()