From c25f4d13265ccbf4ac849533debfd9de91696bc7 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Apr 28 2018 13:13:19 +0000 Subject: Fix shebangs of the GDB hooks Also, use -p (preserve timestamp) with pathfix.py. Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1560295 --- diff --git a/python33.spec b/python33.spec index c0a269e..828920b 100644 --- a/python33.spec +++ b/python33.spec @@ -1158,8 +1158,9 @@ sed -i -e "s/'pyconfig.h'/'%{_pyconfig_h}'/" \ # Switch all shebangs to refer to the specific Python version. LD_LIBRARY_PATH=./build/optimized ./build/optimized/python \ Tools/scripts/pathfix.py \ - -i "%{_bindir}/python%{pybasever}" \ - %{buildroot} + -i "%{_bindir}/python%{pybasever}" -p \ + %{buildroot} \ + %{?with_gdb_hooks:%{buildroot}$DirHoldingGdbPy/*.py} # Remove shebang lines from .py files that aren't executable, and # remove executability from .py files that don't have a shebang line: