[python3/f16] fix tapset for debug build

Bohuslav Kabrda bkabrda at fedoraproject.org
Fri Jun 8 05:31:24 UTC 2012


commit a60b8d95b4ade9ac6d96fbe45b2e8c587ad52abf
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Fri Jun 8 07:31:14 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 c6b84bc..6e82245 100644
--- a/python3.spec
+++ b/python3.spec
@@ -118,7 +118,7 @@
 Summary: Version 3 of the Python programming language aka Python 3000
 Name: python3
 Version: %{pybasever}.3
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: Python
 Group: Development/Languages
 
@@ -850,8 +850,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
@@ -1330,6 +1334,9 @@ rm -fr %{buildroot}
 # ======================================================
 
 %changelog
+* Wed May 30 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 3.2.3-2
+- fix tapset for debug build
+
 * Thu Apr 12 2012 David Malcolm <dmalcolm at redhat.com> - 3.2.3-1
 - 3.2.3; refresh patch 102 (lib64); fix test_gdb (patches 152 and 153)
 


More information about the scm-commits mailing list