From 602e87ce15d104808d85a445170c07356fd064bc Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Mon, 2 Jan 2017 18:40:33 -0600 Subject: [PATCH] avoid hard-coded python python isn't present in buildroot, try %__python instead --- gdb.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb.spec b/gdb.spec index d1364ca..b11be70 100644 --- a/gdb.spec +++ b/gdb.spec @@ -1379,7 +1379,7 @@ 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}/ for pyo in "" "-O";do # RHEL-5: AttributeError: 'module' object has no attribute 'compile_file' - 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 %endif # 0%{?_enable_debug_packages:1} && 0%{!?_without_python:1}