From ff06099c111979101dced770c3ea8275072c9420 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Sat, 30 Jan 2021 13:15:59 +0100 Subject: RPM: tqt3 ftbfs on rhel5 --- redhat/dependencies/tqt3/tqt3.spec | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'redhat') diff --git a/redhat/dependencies/tqt3/tqt3.spec b/redhat/dependencies/tqt3/tqt3.spec index ce1811241..080282d7b 100644 --- a/redhat/dependencies/tqt3/tqt3.spec +++ b/redhat/dependencies/tqt3/tqt3.spec @@ -1272,6 +1272,10 @@ echo "suse_version = %{?suse_version}" echo "sle_version = %{?sle_version}" %endif +%if 0%{?rhel} == 5 +%__sed -i "src/sql/drivers/mysql/qsql_mysql.cpp" -e "s|bool reconnect = 0;|my_bool reconnect = 0;|g" +%endif + # fix variables in 'qmake.conf' %__sed -i mkspecs/*/qmake.conf \ -e "s|^QMAKE_INCDIR_QT.*|QMAKE_INCDIR_QT = %{_includedir}/tqt3|" \ -- cgit v1.2.1