From 57ad0dcc4898ba06eec8e860ce9831dc2e0b44c7 Mon Sep 17 00:00:00 2001 From: Evgeniy Patlan Date: Wed, 19 Aug 2026 12:53:59 +0300 Subject: [PATCH] Fix cmake line continuation in non-static RPM builds The %else branch of %if 0%{?static} ended -DHAVE_JS=OFF without a trailing backslash, terminating the cmake invocation. Every option after it (-DWITH_PROTOBUF, -DMYSQL_SOURCE_DIR, -DHAVE_PYTHON=1, -DLIBEXECDIR) was then parsed as a separate shell command and %build failed. Only builds without --define "static 1" are affected, which is why this has gone unnoticed. --- packaging/rpm/mysql-shell.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/rpm/mysql-shell.spec.in b/packaging/rpm/mysql-shell.spec.in index 8ce0809f5..c87e3cc33 100644 --- a/packaging/rpm/mysql-shell.spec.in +++ b/packaging/rpm/mysql-shell.spec.in @@ -198,7 +198,7 @@ cmake .. \ -DMYSQLCLIENT_STATIC_LINKING=ON \ %else -DMYSQLCLIENT_STATIC_LINKING=ON \ - -DHAVE_JS=OFF + -DHAVE_JS=OFF \ %endif %if 0%{?with_protobuf:1} -DWITH_PROTOBUF=%{with_protobuf} \