[oe-commits] Tom Rini : oprofile: busybox shell needs we need a bit more quoting in opcontrol
git version control
git at git.openembedded.org
Tue Jun 15 19:14:27 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: d7074fcd050246b0744595da23a9cd7602c34eb6
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=d7074fcd050246b0744595da23a9cd7602c34eb6
Author: Tom Rini <tom_rini at mentor.com>
Date: Tue Jun 15 12:13:22 2010 -0700
oprofile: busybox shell needs we need a bit more quoting in opcontrol
Signed-off-by: Tom Rini <tom_rini at mentor.com>
---
recipes/oprofile/oprofile.inc | 3 ++-
recipes/oprofile/oprofile/opcontrol-eval-fix.patch | 19 +++++++++++++++++++
2 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/recipes/oprofile/oprofile.inc b/recipes/oprofile/oprofile.inc
index 5d891fa..6d251d2 100644
--- a/recipes/oprofile/oprofile.inc
+++ b/recipes/oprofile/oprofile.inc
@@ -5,12 +5,13 @@ LICENSE = "GPL"
DEPENDS = "popt binutils"
RDEPENDS_${PN} += "binutils-symlinks"
RRECOMMENDS_${PN} += "kernel-vmlinux"
-INC_PR = "r12"
+INC_PR = "r13"
S = "${WORKDIR}/oprofile-${PV}"
SRC_URI = "\
${SOURCEFORGE_MIRROR}/oprofile/oprofile-${PV}.tar.gz;name=tarball \
file://acinclude.m4 \
+ file://opcontrol-eval-fix.patch \
"
inherit autotools
diff --git a/recipes/oprofile/oprofile/opcontrol-eval-fix.patch b/recipes/oprofile/oprofile/opcontrol-eval-fix.patch
new file mode 100644
index 0000000..332a446
--- /dev/null
+++ b/recipes/oprofile/oprofile/opcontrol-eval-fix.patch
@@ -0,0 +1,19 @@
+Index: oprofile/utils/opcontrol
+===================================================================
+--- oprofile.orig/utils/opcontrol
++++ oprofile/utils/opcontrol
+@@ -362,12 +362,12 @@ create_dir()
+
+ get_event()
+ {
+- GOTEVENT=`eval "echo \\$CHOSEN_EVENTS_$1"`
++ GOTEVENT=`eval "echo \"\\$CHOSEN_EVENTS_$1\""`
+ }
+
+ set_event()
+ {
+- eval "CHOSEN_EVENTS_$1=$2"
++ eval "CHOSEN_EVENTS_$1=\"$2\""
+ }
+
+
More information about the Openembedded-commits
mailing list