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)
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)