Fix mangling shebangs

Resolves: bz#1968462
This commit is contained in:
Jan Grulich 2021-06-10 08:47:58 +02:00
parent 73b5ef18bf
commit 150440f095

View File

@ -114,12 +114,12 @@ export PATH=`pwd`:$PATH
%qt5_install_tests %qt5_install_tests
# Fix mangling shebangs # 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\/env\ 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\/env\ 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\/env\ 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\/env\ 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\/env\ 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 sed -i s@\/usr\/bin\/env\ python@\/usr\/bin\/python3@ %{buildroot}%{_qt5_libdir}/qt5/tests/auto/qml/ecmascripttests/test262.py
%endif %endif
%ifarch %{multilib_archs} %ifarch %{multilib_archs}