public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gdb] gdb-17.2-rebase-f44: avoid hard-coded python
@ 2026-06-27 23:58 Rex Dieter
0 siblings, 0 replies; only message in thread
From: Rex Dieter @ 2026-06-27 23:58 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 602e87ce15d104808d85a445170c07356fd064bc
Author : Rex Dieter <rdieter@math.unl.edu>
Date : 2017-01-02T18:40:33-06:00
Stats : +1/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/gdb/c/602e87ce15d104808d85a445170c07356fd064bc?branch=gdb-17.2-rebase-f44
Log:
avoid hard-coded python
python isn't present in buildroot, try %__python instead
---
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}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-27 23:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-27 23:58 [rpms/gdb] gdb-17.2-rebase-f44: avoid hard-coded python Rex Dieter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox