Bug #115032 -DHAVE_V8=OFF Missing connection symbol, causing error
Submitted: 16 May 8:27 Modified: 17 May 20:45
Reporter: xiaojuan zhai Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version: OS:Linux
Assigned to: MySQL Verification Team CPU Architecture:Any
Tags: build

[16 May 8:27] xiaojuan zhai
Description:
When the if conditions in lines 206 to 230 of the code below are not met, the build fails because there is no connection symbol after "-DHAVE_V8=OFF".
202 %else
203     -DMYSQLCLIENT_STATIC_LINKING=ON \
204     -DHAVE_V8=OFF
205 %endif
206 %if 0%{?with_protobuf:1}
207     -DWITH_PROTOBUF=%{with_protobuf} \
208 %endif
209 %if 0%{?with_gmock:1} || 0%{?with_tests:1}
210     -DWITH_TESTS=ON \
211 %endif
212 %if 0%{?python_deps:1}
213     -DPYTHON_DEPS=%{python_deps} \
214 %endif
215 %if 0%{?with_mysql_source:1}
216     -DMYSQL_SOURCE_DIR="%{with_mysql_source}" \
217     -DMYSQL_BUILD_DIR="%{with_mysql_source}/bld" \
218 %endif
219 %if 0%{?bundled_openssl:1}
220     -DBUNDLED_OPENSSL_DIR="%{bundled_openssl}" \
221 %endif
222 %if 0%{?bundled_curl:1}
223     -DWITH_CURL="%{bundled_curl}" \
224 %endif
225 %if 0%{?bundled_python:1}
226     -DBUNDLED_PYTHON_DIR="%{bundled_python}" \
227 %endif
228 %if 0%{?bundled_antlr:1}
229     -DBUNDLED_ANTLR_DIR="%{bundled_antlr}" \
230 %endif
231     -DHAVE_PYTHON=1 \
232     -DLIBEXECDIR=`basename %{_libexecdir}`

How to repeat:
command: 
rpmbuild -ba mysql-shell.spec
error:
-- Build files have been written to: /root/rpmbuild/BUILD/mysql-shell-8.0.30-src/build
+ -DHAVE_PYTHON=1 ' '
/var/tmp/rpm-tmp.XGHUw4: line 45: -DHAVE_PYTHON=1: command not found
error: Bad exit status from /var/tmp/rpm-tmp.XGHUw4 (%build)
[16 May 10:03] MySQL Verification Team
HI Mr. zhai,

Thank you for your bug report.

Please confirm that you have tried to build MySQL Shell from the source package downloaded from our site, which is dev.mysql.com.