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
This commit is contained in:
Miro Hrončok 2018-03-25 20:55:08 +02:00
parent 34f9f5ef13
commit cb0fe74d03

View File

@ -924,8 +924,9 @@ cp -p Tools/scripts/pathfix.py %{buildroot}%{_bindir}/
# so handle files named using other naming scheme separately. # so handle files named using other naming scheme separately.
LD_LIBRARY_PATH=./build/optimized ./build/optimized/python \ LD_LIBRARY_PATH=./build/optimized ./build/optimized/python \
Tools/scripts/pathfix.py \ Tools/scripts/pathfix.py \
-i "%{_bindir}/python%{pybasever}" \ -i "%{_bindir}/python%{pybasever}" -pn \
%{buildroot} %{buildroot} \
%{?with_gdb_hooks:%{buildroot}$DirHoldingGdbPy/*.py}
# Remove tests for python3-tools which was removed in # Remove tests for python3-tools which was removed in
# https://bugzilla.redhat.com/show_bug.cgi?id=1312030 # https://bugzilla.redhat.com/show_bug.cgi?id=1312030