Fix mangling shebangs

Resolves: bz#1968462
This commit is contained in:
Jan Grulich 2021-06-10 08:29:22 +02:00
parent 3494e108ac
commit 73b5ef18bf

View File

@ -112,10 +112,15 @@ export PATH=`pwd`:$PATH
%if 0%{?build_tests}
%qt5_install_tests
%endif
# Fix mangling shebangs
sed -i s@\/usr\/bin\/python@\/usr\/bin\/python3@ %{buildroot}%{_qt5_libdir}/qt5/tests/auto/qml/ecmascripttests/test262/make.py
sed -i s@\/usr\/bin\/python@\/usr\/bin\/python3@ %{buildroot}%{_qt5_libdir}/qt5/tests/auto/qml/ecmascripttests/test262/tools/generation/test/run.py
sed -i s@\/usr\/bin\/python@\/usr\/bin\/python3@ %{buildroot}%{_qt5_libdir}/qt5/tests/auto/qml/ecmascripttests/test262/tools/generation/generator.py
sed -i s@\/usr\/bin\/python@\/usr\/bin\/python3@ %{buildroot}%{_qt5_libdir}/qt5/tests/auto/qml/ecmascripttests/test262/tools/lint/lint.py
sed -i s@\/usr\/bin\/python@\/usr\/bin\/python3@ %{buildroot}%{_qt5_libdir}/qt5/tests/auto/qml/ecmascripttests/test262/tools/lint/test/run.py
sed -i s@\/usr\/bin\/python@\/usr\/bin\/python3@ %{buildroot}%{_qt5_libdir}/qt5/tests/auto/qml/ecmascripttests/test262.py
%endif
%ifarch %{multilib_archs}
# multilib: qv4global_p.h