From 9f23c7919d9f7c46a65ace1d92ba1ddbcf8eec4a Mon Sep 17 00:00:00 2001 From: Evgeniy Patlan Date: Fri, 6 Nov 2026 19:11:46 +0200 Subject: [PATCH] Relax the antlr4 runtime upper bound in package dependencies The RPM spec required antlr4-cpp-runtime-devel < 4.11 and the Debian control file required libantlr4-runtime-dev (<<4.11). Distributions that ship a newer runtime (Fedora 45 has 4.13.2, for example) could therefore never satisfy the build dependencies of a system-ANTLR build, even though the shell builds and runs with the 4.13 runtime. Keep only the lower bound of 4.10 in both the spec and the Debian build dependencies. Builds that use BUNDLED_ANTLR_DIR are unaffected. --- packaging/debian/CMakeLists.txt | 1 - packaging/rpm/mysql-shell.spec.in | 1 - 2 files changed, 2 deletions(-) diff --git a/packaging/debian/CMakeLists.txt b/packaging/debian/CMakeLists.txt index fed5454ce..db7b9c056 100644 --- a/packaging/debian/CMakeLists.txt +++ b/packaging/debian/CMakeLists.txt @@ -218,7 +218,6 @@ if(BUNDLED_ANTLR_DIR) list(APPEND EXTRA_CMAKE_OPTS "-DBUNDLED_ANTLR_DIR=${BUNDLED_ANTLR_DIR}") else() list(APPEND DEB_BUILD_DEPS "libantlr4-runtime-dev (>=4.10)") - list(APPEND DEB_BUILD_DEPS "libantlr4-runtime-dev (<<4.11)") endif() string(REPLACE ";" " " EXTRA_CMAKE_OPTS "${EXTRA_CMAKE_OPTS}") diff --git a/packaging/rpm/mysql-shell.spec.in b/packaging/rpm/mysql-shell.spec.in index d92d6e5ea..7c4327067 100644 --- a/packaging/rpm/mysql-shell.spec.in +++ b/packaging/rpm/mysql-shell.spec.in @@ -79,7 +79,6 @@ BuildRequires: libssh-devel >= 0.9.2 %endif %if 0%{!?bundled_antlr:1} BuildRequires: antlr4-cpp-runtime-devel >= 4.10 -BuildRequires: antlr4-cpp-runtime-devel < 4.11 %endif %if 0%{!?static} BuildRequires: mysql-devel