From f47c151aea7ba32fa47d5a889e3f4ec619f9340f Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Mon, 2 Jul 2012 14:20:21 -0500 Subject: oprofile: Change /root to /home/root OE uses /home/root instead of /root for the root user's directory. Update oprofile to match. Upstream-status: Inappropriate [OE Specific] (From OE-Core rev: d50c44585e72057532b8e0d9221ebf058e514672) Signed-off-by: Mark Hatle Signed-off-by: Richard Purdie --- meta/recipes-kernel/oprofile/oprofile.inc | 3 +- .../oprofile/oprofile/oprofile-root.patch | 108 +++++++++++++++++++++ 2 files changed, 110 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-kernel/oprofile/oprofile/oprofile-root.patch (limited to 'meta/recipes-kernel/oprofile') diff --git a/meta/recipes-kernel/oprofile/oprofile.inc b/meta/recipes-kernel/oprofile/oprofile.inc index 73a5a07d14..ac8ce10440 100644 --- a/meta/recipes-kernel/oprofile/oprofile.inc +++ b/meta/recipes-kernel/oprofile/oprofile.inc @@ -19,10 +19,11 @@ FILES_${PN} = "${bindir} ${libdir}/${BPN}/lib*${SOLIBS} ${datadir}/${BPN}" FILES_${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/lib*.la" FILES_${PN}-staticdev += "${libdir}/${BPN}/lib*.a" -INC_PR = "r0" +INC_PR = "r1" SRC_URI = "file://opstart.patch \ file://oprofile-no-query-modules.patch \ + file://oprofile-root.patch \ file://acinclude.m4" inherit autotools diff --git a/meta/recipes-kernel/oprofile/oprofile/oprofile-root.patch b/meta/recipes-kernel/oprofile/oprofile/oprofile-root.patch new file mode 100644 index 0000000000..db63a8e8da --- /dev/null +++ b/meta/recipes-kernel/oprofile/oprofile/oprofile-root.patch @@ -0,0 +1,108 @@ +Change hardcoded /root to /home/root + +Upstream-Status: inappropriate [OE specific] + +Signed-off-by: Mark Hatle + +diff -ur oprofile-0.9.7.orig/doc/opcontrol.1.in oprofile-0.9.7/doc/opcontrol.1.in +--- oprofile-0.9.7.orig/doc/opcontrol.1.in 2011-07-04 21:25:04.000000000 -0500 ++++ oprofile-0.9.7/doc/opcontrol.1.in 2012-07-02 14:02:16.358865420 -0500 +@@ -171,7 +171,7 @@ + + .SH FILES + .TP +-.I /root/.oprofile/daemonrc ++.I /home/root/.oprofile/daemonrc + Configuration file for opcontrol + .TP + .I /var/lib/oprofile/samples/ +diff -ur oprofile-0.9.7.orig/doc/oprofile.1 oprofile-0.9.7/doc/oprofile.1 +--- oprofile-0.9.7.orig/doc/oprofile.1 2011-08-12 10:23:27.000000000 -0500 ++++ oprofile-0.9.7/doc/oprofile.1 2012-07-02 14:02:29.295862358 -0500 +@@ -150,7 +150,7 @@ + .I $HOME/.oprofile/ + Configuration files + .TP +-.I /root/.oprofile/daemonrc ++.I /home/root/.oprofile/daemonrc + Configuration file for opcontrol + .TP + .I /opt/oprofile-0.9.7-rc3/share/oprofile/ +diff -ur oprofile-0.9.7.orig/doc/oprofile.1.in oprofile-0.9.7/doc/oprofile.1.in +--- oprofile-0.9.7.orig/doc/oprofile.1.in 2011-07-04 21:25:04.000000000 -0500 ++++ oprofile-0.9.7/doc/oprofile.1.in 2012-07-02 14:01:35.812004623 -0500 +@@ -150,7 +150,7 @@ + .I $HOME/.oprofile/ + Configuration files + .TP +-.I /root/.oprofile/daemonrc ++.I /home/root/.oprofile/daemonrc + Configuration file for opcontrol + .TP + .I @prefix@/share/oprofile/ +diff -ur oprofile-0.9.7.orig/doc/oprofile.html oprofile-0.9.7/doc/oprofile.html +--- oprofile-0.9.7.orig/doc/oprofile.html 2011-07-04 21:32:35.000000000 -0500 ++++ oprofile-0.9.7/doc/oprofile.html 2012-07-02 14:04:59.804018961 -0500 +@@ -1394,7 +1394,7 @@ +
+

+ Followed by list arguments for profiling set up. List of arguments +- saved in /root/.oprofile/daemonrc. ++ saved in /home/root/.oprofile/daemonrc. + Giving this option is not necessary; you can just directly pass one + of the setup options, e.g. opcontrol --no-vmlinux. +

+@@ -1430,7 +1430,7 @@ +
+

+ Start data collection with either arguments provided by --setup +- or information saved in /root/.oprofile/daemonrc. Specifying ++ or information saved in /home/root/.oprofile/daemonrc. Specifying + the addition --verbose makes the daemon generate lots of debug data + whilst it is running. +

+diff -ur oprofile-0.9.7.orig/doc/oprofile.xml oprofile-0.9.7/doc/oprofile.xml +--- oprofile-0.9.7.orig/doc/oprofile.xml 2011-07-04 21:25:04.000000000 -0500 ++++ oprofile-0.9.7/doc/oprofile.xml 2012-07-02 14:02:03.543019283 -0500 +@@ -568,7 +568,7 @@ + + + Followed by list arguments for profiling set up. List of arguments +- saved in /root/.oprofile/daemonrc. ++ saved in /home/root/.oprofile/daemonrc. + Giving this option is not necessary; you can just directly pass one + of the setup options, e.g. opcontrol --no-vmlinux. + +@@ -592,7 +592,7 @@ + + + Start data collection with either arguments provided by +- or information saved in /root/.oprofile/daemonrc. Specifying ++ or information saved in /home/root/.oprofile/daemonrc. Specifying + the addition makes the daemon generate lots of debug data + whilst it is running. + +diff -ur oprofile-0.9.7.orig/gui/oprof_start_util.cpp oprofile-0.9.7/gui/oprof_start_util.cpp +--- oprofile-0.9.7.orig/gui/oprof_start_util.cpp 2011-07-04 21:25:04.000000000 -0500 ++++ oprofile-0.9.7/gui/oprof_start_util.cpp 2012-07-02 13:55:21.041876096 -0500 +@@ -39,7 +39,7 @@ + // return the ~ expansion suffixed with a '/' + string const get_config_dir() + { +- return "/root"; ++ return "/home/root"; + } + + string daemon_pid; +diff -ur oprofile-0.9.7.orig/utils/opcontrol oprofile-0.9.7/utils/opcontrol +--- oprofile-0.9.7.orig/utils/opcontrol 2011-07-20 14:36:48.000000000 -0500 ++++ oprofile-0.9.7/utils/opcontrol 2012-07-02 13:55:06.232872688 -0500 +@@ -384,7 +384,7 @@ + OPROFILED="$OPDIR/oprofiled" + + # location for daemon setup information +- SETUP_DIR="/root/.oprofile" ++ SETUP_DIR="/home/root/.oprofile" + SETUP_FILE="$SETUP_DIR/daemonrc" + SEC_SETUP_FILE="$SETUP_DIR/daemonrc_new" + -- cgit v1.2.3-54-g00ecf