[packages/systemtap] - fix shebangs - rel 5

baggins baggins at pld-linux.org
Sun May 3 12:40:51 CEST 2020


commit fe297aaf5442f706b5c957ec3d5b318998ce548a
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun May 3 12:38:12 2020 +0200

    - fix shebangs
    - rel 5

 systemtap.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/systemtap.spec b/systemtap.spec
index 740409e..1a806f5 100644
--- a/systemtap.spec
+++ b/systemtap.spec
@@ -18,7 +18,7 @@ Summary:	Instrumentation System
 Summary(pl.UTF-8):	System oprzyrządowania
 Name:		systemtap
 Version:	3.3
-Release:	4
+Release:	5
 License:	GPL v2+
 Group:		Base
 Source0:	http://sourceware.org/systemtap/ftp/releases/%{name}-%{version}.tar.gz
@@ -293,6 +293,12 @@ Przewodniki i dokumentacja wprowadzająca do SystemTap.
 %patch2 -p1
 %endif
 
+%{__sed} -E -i -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \
+      testsuite/systemtap.examples/general/pyexample.py
+
+find testsuite/systemtap.examples/ -name '*.stp' -print0 | xargs -0 \
+      %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+stap(\s|$),#!%{_bindir}/stap\1,'
+
 %build
 %{__gettextize}
 %{__aclocal}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/systemtap.git/commitdiff/fe297aaf5442f706b5c957ec3d5b318998ce548a



More information about the pld-cvs-commit mailing list