Disable all /usr/lib/debug for RISC-V

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
This commit is contained in:
David Abdurachmanov 2018-06-04 00:02:59 +02:00
parent c31a814beb
commit bd1e056426
Signed by: davidlt
GPG Key ID: 7108702C938B13C1
1 changed files with 2 additions and 0 deletions

View File

@ -820,6 +820,7 @@ do
touch -r $RPM_BUILD_DIR/%{gdb_src}/gdb/ChangeLog $i
done
%ifnarch riscv64
%if 0%{?_enable_debug_packages:1} && 0%{!?_without_python:1}
mkdir -p $RPM_BUILD_ROOT/usr/lib/debug%{_bindir}
cp -p $RPM_BUILD_DIR/%{gdb_src}/gdb/gdb-gdb.py $RPM_BUILD_ROOT/usr/lib/debug%{_bindir}/
@ -828,6 +829,7 @@ for pyo in "" "-O";do
%{__python} $pyo -c 'import compileall, re, sys; sys.exit (not compileall.compile_dir("'"$RPM_BUILD_ROOT/usr/lib/debug%{_bindir}"'", 1, "'"/usr/lib/debug%{_bindir}"'"))'
done
%endif # 0%{?_enable_debug_packages:1} && 0%{!?_without_python:1}
%endif # riscv64
%if 0%{!?_without_python:1}
%if 0%{!?rhel:1} || 0%{?rhel} > 6