[linux-tools] 05/11: linux-perf: Remove shebang lines from perf scripts
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Fri Sep 25 23:40:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
benh pushed a commit to branch master
in repository linux-tools.
commit d13fc1ddbebe17615a87df715d62fe72acaa3c5d
Author: Ben Hutchings <ben at decadent.org.uk>
Date: Fri Sep 25 20:11:17 2015 +0100
linux-perf: Remove shebang lines from perf scripts
---
debian/changelog | 1 +
debian/patches/series | 1 +
debian/patches/tools-perf-remove-shebangs.patch | 38 +++++++++++++++++++++++++
3 files changed, 40 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index c2da5a7..5e69802 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ linux-tools (4.2-1) UNRELEASED; urgency=medium
- debian/lib/python: Sync with linux package
* debian/bin/genorig.py: Make orig tarballs reproducible
* linux-perf: Fix installation directory for bash completions
+ * linux-perf: Remove shebang lines from perf scripts
-- Ben Hutchings <ben at decadent.org.uk> Fri, 25 Sep 2015 18:42:20 +0100
diff --git a/debian/patches/series b/debian/patches/series
index e1943ce..0343ca2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -10,3 +10,4 @@ tools-perf-add-empty-build-files-for-architectures-lacking.patch
lockdep-fix-oot-build.patch
lockdep-fix-headers.patch
lockdep-fix-soname.patch
+tools-perf-remove-shebangs.patch
diff --git a/debian/patches/tools-perf-remove-shebangs.patch b/debian/patches/tools-perf-remove-shebangs.patch
new file mode 100644
index 0000000..f9bb858
--- /dev/null
+++ b/debian/patches/tools-perf-remove-shebangs.patch
@@ -0,0 +1,38 @@
+From: Ben Hutchings <ben at decadent.org.uk>
+Date: Fri, 25 Sep 2015 20:09:23 +0100
+Subject: tools/perf: Remove shebang lines from perf scripts
+
+perf scripts need to be invoked through perf, not directly through
+perl (or other language interpreter). So including shebang lines in
+them is useless and possibly misleading.
+
+Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
+---
+--- a/tools/perf/scripts/perl/rw-by-file.pl
++++ b/tools/perf/scripts/perl/rw-by-file.pl
+@@ -1,4 +1,3 @@
+-#!/usr/bin/perl -w
+ # (c) 2009, Tom Zanussi <tzanussi at gmail.com>
+ # Licensed under the terms of the GNU GPL License version 2
+
+--- a/tools/perf/scripts/perl/rw-by-pid.pl
++++ b/tools/perf/scripts/perl/rw-by-pid.pl
+@@ -1,4 +1,3 @@
+-#!/usr/bin/perl -w
+ # (c) 2009, Tom Zanussi <tzanussi at gmail.com>
+ # Licensed under the terms of the GNU GPL License version 2
+
+--- a/tools/perf/scripts/perl/rwtop.pl
++++ b/tools/perf/scripts/perl/rwtop.pl
+@@ -1,4 +1,3 @@
+-#!/usr/bin/perl -w
+ # (c) 2010, Tom Zanussi <tzanussi at gmail.com>
+ # Licensed under the terms of the GNU GPL License version 2
+
+--- a/tools/perf/scripts/perl/wakeup-latency.pl
++++ b/tools/perf/scripts/perl/wakeup-latency.pl
+@@ -1,4 +1,3 @@
+-#!/usr/bin/perl -w
+ # (c) 2009, Tom Zanussi <tzanussi at gmail.com>
+ # Licensed under the terms of the GNU GPL License version 2
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux-tools.git
More information about the Kernel-svn-changes
mailing list