Disable all /usr/lib/debug for RISC-V
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
This commit is contained in:
parent
c31a814beb
commit
bd1e056426
2
gdb.spec
2
gdb.spec
|
@ -820,6 +820,7 @@ do
|
||||||
touch -r $RPM_BUILD_DIR/%{gdb_src}/gdb/ChangeLog $i
|
touch -r $RPM_BUILD_DIR/%{gdb_src}/gdb/ChangeLog $i
|
||||||
done
|
done
|
||||||
|
|
||||||
|
%ifnarch riscv64
|
||||||
%if 0%{?_enable_debug_packages:1} && 0%{!?_without_python:1}
|
%if 0%{?_enable_debug_packages:1} && 0%{!?_without_python:1}
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/lib/debug%{_bindir}
|
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}/
|
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}"'"))'
|
%{__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
|
done
|
||||||
%endif # 0%{?_enable_debug_packages:1} && 0%{!?_without_python:1}
|
%endif # 0%{?_enable_debug_packages:1} && 0%{!?_without_python:1}
|
||||||
|
%endif # riscv64
|
||||||
|
|
||||||
%if 0%{!?_without_python:1}
|
%if 0%{!?_without_python:1}
|
||||||
%if 0%{!?rhel:1} || 0%{?rhel} > 6
|
%if 0%{!?rhel:1} || 0%{?rhel} > 6
|
||||||
|
|
Loading…
Reference in New Issue