From 3b9f0d48a1455edaa23fca53fb9dc13ae24df8ff4d1c1801f837fd0a86535881 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 29 Jun 2024 20:24:54 +0000 Subject: [PATCH] - Fix shebang of the script to use the explicit version of Python (bsc#1212476). OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=340 --- obs-service-tar_scm.changes | 6 ++++++ obs-service-tar_scm.spec | 3 +++ 2 files changed, 9 insertions(+) diff --git a/obs-service-tar_scm.changes b/obs-service-tar_scm.changes index aafe31e..b313d35 100644 --- a/obs-service-tar_scm.changes +++ b/obs-service-tar_scm.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jun 14 18:33:15 UTC 2024 - Matej Cepl + +- Fix shebang of the script to use the explicit version of Python + (bsc#1212476). + ------------------------------------------------------------------- Wed Feb 21 10:47:59 UTC 2024 - Adrian Schröter diff --git a/obs-service-tar_scm.spec b/obs-service-tar_scm.spec index c04e35d..d0b6351 100644 --- a/obs-service-tar_scm.spec +++ b/obs-service-tar_scm.spec @@ -261,6 +261,9 @@ source artefacts (.dsc, .origin.tar.gz and .debian.tar.gz if non-native). %install %if %{without obs_scm_testsuite} make install DESTDIR="%{buildroot}" PREFIX="%{_prefix}" SYSCFG="%{_sysconfdir}" PYTHON="%{python_path}" WITH_GBP="%{enable_gbp}" +# Doing %%python3_fix_shebang_path old fashioned way for the backward compatibility +sed -i "1s@#\\!.*python\S*@#\\!$(realpath %__python3)@" \ + %{buildroot}%{_prefix}/lib/obs/service/tar_scm %else