[kernel] r16422 - in dists/trunk/linux-2.6/debian: . patches/bugfix/all patches/series templates

Ben Hutchings benh at alioth.debian.org
Sun Oct 10 02:36:49 UTC 2010


Author: benh
Date: Sun Oct 10 02:36:46 2010
New Revision: 16422

Log:
perf: Enable Perl and Python scripting

Added:
   dists/trunk/linux-2.6/debian/patches/bugfix/all/perf-Fix-detection-of-script-extension.patch
Modified:
   dists/trunk/linux-2.6/debian/changelog
   dists/trunk/linux-2.6/debian/patches/series/base
   dists/trunk/linux-2.6/debian/rules.real
   dists/trunk/linux-2.6/debian/templates/control.main.in
   dists/trunk/linux-2.6/debian/templates/control.source.in

Modified: dists/trunk/linux-2.6/debian/changelog
==============================================================================
--- dists/trunk/linux-2.6/debian/changelog	Sun Oct 10 02:12:28 2010	(r16421)
+++ dists/trunk/linux-2.6/debian/changelog	Sun Oct 10 02:36:46 2010	(r16422)
@@ -7,7 +7,8 @@
   * [x86] Staging: fix Makefile so brcm80211 will actually build
     (Closes: #599465)
   * [x86] Enable modular IDEAPAD_ACPI (Closes: #599444)
-  * perf: Move scripts to /usr/share/perf_<version>-core (Closes: #599624)
+  * perf: Enable Perl and Python scripting
+    - Move scripts to /usr/share/perf_<version>-core (Closes: #599624)
 
  -- Ben Hutchings <ben at decadent.org.uk>  Thu, 07 Oct 2010 03:24:21 +0100
 

Added: dists/trunk/linux-2.6/debian/patches/bugfix/all/perf-Fix-detection-of-script-extension.patch
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ dists/trunk/linux-2.6/debian/patches/bugfix/all/perf-Fix-detection-of-script-extension.patch	Sun Oct 10 02:36:46 2010	(r16422)
@@ -0,0 +1,28 @@
+From cf22a40e611cd1aeda44bca29d86e5d34ff90dc5 Mon Sep 17 00:00:00 2001
+From: Ben Hutchings <ben at decadent.org.uk>
+Date: Sun, 10 Oct 2010 03:31:00 +0100
+Subject: [PATCH] perf: Fix detection of script extension
+
+The extension starts with the last dot in the name, not the first.
+
+Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
+---
+ tools/perf/builtin-trace.c |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
+index 3ea6219..deda1a9 100644
+--- a/tools/perf/builtin-trace.c
++++ b/tools/perf/builtin-trace.c
+@@ -282,7 +282,7 @@ static int parse_scriptname(const struct option *opt __used,
+ 		script++;
+ 	} else {
+ 		script = str;
+-		ext = strchr(script, '.');
++		ext = strrchr(script, '.');
+ 		if (!ext) {
+ 			fprintf(stderr, "invalid script extension");
+ 			return -1;
+-- 
+1.7.1
+

Modified: dists/trunk/linux-2.6/debian/patches/series/base
==============================================================================
--- dists/trunk/linux-2.6/debian/patches/series/base	Sun Oct 10 02:12:28 2010	(r16421)
+++ dists/trunk/linux-2.6/debian/patches/series/base	Sun Oct 10 02:36:46 2010	(r16422)
@@ -48,3 +48,4 @@
 + bugfix/all/vivi-Don-t-depend-on-FONTS.patch
 + bugfix/all/qla4xxx-Fix-build-on-some-architectures-lacking-64-bit-I-O.patch
 + bugfix/all/perf-Use-PERF_EXEC_PATH-in-canned-report-scripts.patch
++ bugfix/all/perf-Fix-detection-of-script-extension.patch

Modified: dists/trunk/linux-2.6/debian/rules.real
==============================================================================
--- dists/trunk/linux-2.6/debian/rules.real	Sun Oct 10 02:12:28 2010	(r16421)
+++ dists/trunk/linux-2.6/debian/rules.real	Sun Oct 10 02:36:46 2010	(r16422)
@@ -503,6 +503,8 @@
 	# Fix up cross-references
 	sed -i '/^\.SH "SEE ALSO"/,/^\.SH/ { s/perf-/perf_$(VERSION)-/g }' \
 		$(PACKAGE_DIR)/usr/share/man/*/*
+	dh_perl /usr/share/perf_$(VERSION)-core/scripts/perl/Perf-Trace-Util/lib/
+	dh_pysupport /usr/share/perf_$(VERSION)-core/scripts/python/Perf-Trace-Util/lib/
 	+$(MAKE_SELF) install-base
 
 install-patch: PACKAGE = linux-patch-debian-$(VERSION)

Modified: dists/trunk/linux-2.6/debian/templates/control.main.in
==============================================================================
--- dists/trunk/linux-2.6/debian/templates/control.main.in	Sun Oct 10 02:12:28 2010	(r16421)
+++ dists/trunk/linux-2.6/debian/templates/control.main.in	Sun Oct 10 02:36:46 2010	(r16422)
@@ -1,6 +1,6 @@
 Package: linux-tools- at version@
 Architecture: alpha amd64 armel hppa i386 powerpc s390 sh4 sparc sparc64
-Depends: ${shlibs:Depends}, ${misc:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, ${python:Depends}
 Recommends: linux-base (>= 2.6.32-16)
 Suggests: linux-doc- at version@
 Description: Performance analysis tools for Linux @upstreamversion@

Modified: dists/trunk/linux-2.6/debian/templates/control.source.in
==============================================================================
--- dists/trunk/linux-2.6/debian/templates/control.source.in	Sun Oct 10 02:12:28 2010	(r16421)
+++ dists/trunk/linux-2.6/debian/templates/control.source.in	Sun Oct 10 02:36:46 2010	(r16422)
@@ -3,7 +3,7 @@
 Maintainer: Debian Kernel Team <debian-kernel at lists.debian.org>
 Uploaders: Bastian Blank <waldi at debian.org>, Frederik Schüler <fs at debian.org>, maximilian attems <maks at debian.org>, Ben Hutchings <ben at decadent.org.uk>
 Standards-Version: 3.8.4
-Build-Depends: debhelper (>> 7), cpio, module-init-tools, python, lzma [armel], libelf-dev, binutils-dev, asciidoc, xmlto
-Build-Depends-Indep: bzip2, python-support
+Build-Depends: debhelper (>> 7), cpio, module-init-tools, python, lzma [armel], libelf-dev, binutils-dev, asciidoc, xmlto, libperl-dev, python-dev, python-support
+Build-Depends-Indep: bzip2
 Vcs-Svn: svn://svn.debian.org/svn/kernel/dists/sid/linux-2.6/
 Vcs-Browser: http://svn.debian.org/wsvn/kernel/dists/sid/linux-2.6/?op=log



More information about the Kernel-svn-changes mailing list