[python3/f17] fix tapset for debug build

Bohuslav Kabrda bkabrda at fedoraproject.org
Fri Jun 8 05:28:01 UTC 2012


commit 1d3fb61e87b56e91114efeb960324cb7858e185b
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Thu Jun 7 10:39:55 2012 +0200

    fix tapset for debug build

 python3.spec |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/python3.spec b/python3.spec
index c63b46a..c33e28b 100644
--- a/python3.spec
+++ b/python3.spec
@@ -122,7 +122,7 @@
 Summary: Version 3 of the Python programming language aka Python 3000
 Name: python3
 Version: %{pybasever}.3
-Release: 6%{?dist}
+Release: 7%{?dist}
 License: Python
 Group: Development/Languages
 
@@ -1068,8 +1068,12 @@ sed \
    > %{buildroot}%{tapsetdir}/%{libpython_stp_optimized}
 
 %if 0%{?with_debug_build}
+# In Python 3, python3 and python3-debug don't point to the same binary,
+# so we have to replace "python3" with "python3-debug" to get systemtap
+# working with debug build
 sed \
    -e "s|LIBRARY_PATH|%{_libdir}/%{py_INSTSONAME_debug}|" \
+   -e 's|"python3"|"python3-debug"|' \
    %{_sourcedir}/libpython.stp \
    > %{buildroot}%{tapsetdir}/%{libpython_stp_debug}
 %endif # with_debug_build
@@ -1489,6 +1493,9 @@ rm -fr %{buildroot}
 # ======================================================
 
 %changelog
+* Wed May 30 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 3.2.3-7
+- fix tapset for debug build
+
 * Fri May  4 2012 David Malcolm <dmalcolm at redhat.com> - 3.2.3-6
 - renumber autotools patch from 300 to 5000
 - specfile cleanups


More information about the scm-commits mailing list