From 8e08331a37badd9e95e667ced3cb6649e580df84 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Apr 04 2018 10:53:18 +0000 Subject: Fix shebangs of the GDB hooks Also, use -p (preserve timestamp) and -n (don't create backup files) with pathfix.py. Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1560295 --- diff --git a/python3.spec b/python3.spec index e552011..e106dd5 100644 --- a/python3.spec +++ b/python3.spec @@ -988,8 +988,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}" -pn \ + %{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: