Upstream recipe for bootchart2 from WebOS (revised again)
cover Upstream recipe for bootchart2 from WebOS (revised again)
Hello list,
This series adds a recipe for the bootchart2 daemon (a fork of the original bootchart.) It's based on a recipe from Meta-WebOS, but with extensive modifications.
It is intended that bootchart2 will supersede the other bootchart daemons kicking around in oe-core/meta-oe. See bug 5893. [1]
(Resubmitted this series yet again because I'd mistakenly included Yocto- specific changes in addition to oe-core ones.)
Regards,
-Max Eliaser
[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=5893
The following changes since commit 86afd7eb7c679eb065706137f28f44248f3fbc5a:
ghostscript: Remove bogus gsfonts reference from DESCRIPTION (2014-08-06 11:14:40 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib meliaser/bootchart2-attempt3
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=meliaser/bootchart2-attempt3
Max Eliaser (2):
bootchart2: create recipe for bootchart2
ubootchart: delete ubootchart recipe
.../bootchart2/bootchart2/bootchartd_stop.sh | 18 +++ meta/recipes-devtools/bootchart2/bootchart2_git.bb | 148 +++++++++++++++++++++ .../ubootchart/files/sysvinit.patch | 14 -- .../ubootchart/files/ubootchart-stop | 3 - .../ubootchart/files/ubootchart.desktop | 6 - meta/recipes-devtools/ubootchart/ubootchart_svn.bb | 39 ------ 6 files changed, 166 insertions(+), 62 deletions(-) create mode 100644 meta/recipes-devtools/bootchart2/bootchart2/bootchartd_stop.sh create mode 100644 meta/recipes-devtools/bootchart2/bootchart2_git.bb delete mode 100644 meta/recipes-devtools/ubootchart/files/sysvinit.patch delete mode 100644 meta/recipes-devtools/ubootchart/files/ubootchart-stop delete mode 100644 meta/recipes-devtools/ubootchart/files/ubootchart.desktop delete mode 100644 meta/recipes-devtools/ubootchart/ubootchart_svn.bb
Signature · 1 line
1.8.3.2
PATCH 1/2 bootchart2: create recipe for bootchart2
This recipe creates packages for the bootchart2 system-wide profiler daemon and related utilities. It fetches the Git revision immediately past the one corresponding to the 0.14.6 release of bootchart2. (0.14.6 had a systemd- related bug that was corrected right after it was tagged.)
The recipe contains three packages:
* bootchart2 - The daemon itself.
* pybootchartgui - Python program to visualize and display the data
collected by bootchart2 or compatible daemons such as the original bootchart.
* bootchartd-stop-initscript - A SysV init script to stop data collection
when booting completes.
Depending on how you wish to use bootchart2, you may not end up having all three of those packages installed on your image.
There is also a bootchart2-native variant, which is intended solely to provide a native version of the pybootchartgui utility. The non-cross-compiled version of the bootchart2 daemon has not been tested at all, don't use it.
The recipe is extensively documented. Read the comments at the beginning of bootchart2_git.bb or else you'll have no idea how to use it.
This recipe is based on a recipe from meta-WebOS. The WebOS people had some extra code (including patches against the bootchart2 code) to support the Upstart init system. However, since upstream Poky does not support Upstart, that stuff is being left behind. The WebOS people can write a bbappend to re- add it.
Original recipe written by Wonhong Kwon of LG. Upstreamed as part of the solution to [YOCTO #5893].
--- .../bootchart2/bootchart2/bootchartd_stop.sh | 18 +++ meta/recipes-devtools/bootchart2/bootchart2_git.bb | 148 +++++++++++++++++++++ 2 files changed, 166 insertions(+) create mode 100644 meta/recipes-devtools/bootchart2/bootchart2/bootchartd_stop.sh create mode 100644 meta/recipes-devtools/bootchart2/bootchart2_git.bb
meta/recipes-devtools/bootchart2/bootchart2/bootchartd_stop.sh new file +18 -0
@@ -0,0 +1,18 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: bootchartd_stop +# Required-Start: $remote_fs $all +# Required-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: +# Short-Description: Stop bootchartd collection +# Description: This script accompanies bootchartd from bootchart2. +# bootchartd should stop detect the end of the boot process +# automatically if a window manager is launched, but for +# command-line only operating systems, this script should be +# used instead. +### END INIT INFO + +/sbin/bootchartd stop + +: exit 0
meta/recipes-devtools/bootchart2/bootchart2_git.bb new file +148 -0
148 lines not on this page · raw message
Signature · 1 line
1.8.3.2
PATCH 2/2 ubootchart: delete ubootchart recipe
In reply to Max EliaserThe Ubootchart recipe had known issues. Ubootchart itself is no longer updated upstream. Ubootchart is also now redundant with Bootchart2.
If people still want ubootchart around, it can be moved to meta-oe.
Ubootchart removed as part of the solution to [YOCTO #5893].
--- .../ubootchart/files/sysvinit.patch | 14 -------- .../ubootchart/files/ubootchart-stop | 3 -- .../ubootchart/files/ubootchart.desktop | 6 ---- meta/recipes-devtools/ubootchart/ubootchart_svn.bb | 39 ---------------------- 4 files changed, 62 deletions(-) delete mode 100644 meta/recipes-devtools/ubootchart/files/sysvinit.patch delete mode 100644 meta/recipes-devtools/ubootchart/files/ubootchart-stop delete mode 100644 meta/recipes-devtools/ubootchart/files/ubootchart.desktop delete mode 100644 meta/recipes-devtools/ubootchart/ubootchart_svn.bb
meta/recipes-devtools/ubootchart/files/sysvinit.patch deleted +0 -14
@@ -1,14 +0,0 @@ -Upstream-Status: Inappropriate [distribution] - -Index: ubootchart.conf -=================================================================== ---- ubootchart.conf (revision 9) -+++ ubootchart.conf (working copy) -@@ -1,6 +1,6 @@ - - # If you want to chain on and run somthing other than /sbin/init... --export init_prog=/sbin/init -+export init_prog=/sbin/init.sysvinit - - # On startup ubootchart will mount a tmpfs filesystem at this - # location and chdir here. This is only used for the logging of
meta/recipes-devtools/ubootchart/files/ubootchart-stop deleted +0 -3
@@ -1,3 +0,0 @@ -#! /bin/sh - -kill -USR1 $(pidof ubootchartd_bin)
meta/recipes-devtools/ubootchart/files/ubootchart.desktop deleted +0 -6
@@ -1,6 +0,0 @@ -[Desktop Entry] -Encoding=UTF-8 -Exec=/sbin/ubootchart-stop -Name=Stop Bootchart -Type=Application -Categories=Programming;
meta/recipes-devtools/ubootchart/ubootchart_svn.bb deleted +0 -39
@@ -1,39 +0,0 @@ -SUMMARY = "A boot profiling tool" -HOMEPAGE = "http://code.google.com/p/ubootchart/" -LICENSE = "GPLv3" -LIC_FILES_CHKSUM = "file://COPYING;md5=8f0e2cd40e05189ec81232da84bd6e1a" -SRCREV = "12" -PV = "0.0+r${SRCPV}" -PR = "r6" - -#RRECOMMENDS_${PN} = "acct" - -SRC_URI = "svn://ubootchart.googlecode.com/svn/;protocol=http;module=trunk \ - file://sysvinit.patch;striplevel=0 \ - file://ubootchart-stop \ - file://ubootchart.desktop" - -S = "${WORKDIR}/trunk" - -inherit update-alternatives - -ALTERNATIVE_${PN} = "init" -ALTERNATIVE_TARGET[init] = "${base_sbindir}/ubootchartd" -ALTERNATIVE_LINK_NAME[init] = "${base_sbindir}/init" -ALTERNATIVE_PRIORITY = "70" - -do_compile() { - ${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} ${INCLUDES} ${S}/ubootchartd_bin.c -o ubootchartd_bin -} - -do_install() { - install -m 0755 -d ${D}${base_sbindir} ${D}${sysconfdir}/ubootchart ${D}${datadir}/applications - install -m 0755 ${S}/ubootchartd_bin ${D}${base_sbindir} - install -m 0755 ${S}/ubootchartd ${D}${base_sbindir} - install -m 0644 ${S}/ubootchart.conf ${D}${sysconfdir}/ubootchart - install -m 0755 ${S}/start.sh ${D}${sysconfdir}/ubootchart - install -m 0755 ${S}/finish.sh ${D}${sysconfdir}/ubootchart - - install -m 0755 ${WORKDIR}/ubootchart-stop ${D}${base_sbindir} - install -m 0644 ${WORKDIR}/ubootchart.desktop ${D}${datadir}/applications -}
Signature · 1 line
1.8.3.2
Quoted 11 lines · Max Eliaser
Hello list,
This series adds a recipe for the bootchart2 daemon (a fork of the original bootchart.) It's based on a recipe from Meta-WebOS, but with extensive modifications.
It is intended that bootchart2 will supersede the other bootchart daemons kicking around in oe-core/meta-oe. See bug 5893. [1]
(Resubmitted this series yet again because I'd mistakenly included Yocto- specific changes in addition to oe-core ones.)
This one is missing pycairo change, is it intentional?
Quoted 40 lines
Regards,
-Max Eliaser[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=5893
The following changes since commit86afd7eb7c679eb065706137f28f44248f3fbc5a:ghostscript: Remove bogus gsfonts reference from DESCRIPTION (2014-08-06 11:14:40 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contribmeliaser/bootchart2-attempt3
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=meliaser/bootchart2-attempt3Max Eliaser (2):
bootchart2: create recipe for bootchart2
ubootchart: delete ubootchart recipe.../bootchart2/bootchart2/bootchartd_stop.sh | 18 +++ meta/recipes-devtools/bootchart2/bootchart2_git.bb | 148 +++++++++++++++++++++ .../ubootchart/files/sysvinit.patch | 14 -- .../ubootchart/files/ubootchart-stop | 3 - .../ubootchart/files/ubootchart.desktop | 6 - meta/recipes-devtools/ubootchart/ubootchart_svn.bb | 39 ------ 6 files changed, 166 insertions(+), 62 deletions(-) create mode 100644 meta/recipes-devtools/bootchart2/bootchart2/bootchartd_stop.sh create mode 100644 meta/recipes-devtools/bootchart2/bootchart2_git.bb delete mode 100644 meta/recipes-devtools/ubootchart/files/sysvinit.patch delete mode 100644 meta/recipes-devtools/ubootchart/files/ubootchart-stop delete mode 100644 meta/recipes-devtools/ubootchart/files/ubootchart.desktop delete mode 100644 meta/recipes-devtools/ubootchart/ubootchart_svn.bbSignature · 7 lines
1.8.3.2 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
The first time I submitted this patch series a few weeks ago, that part got accepted without me noticing, so it's already in oe-core. Saul pointed this out to me, so I rebased to get that patch out of the series.
-Max
________________________________________
From: Martin Jansa [[email protected]]
Sent: Thursday, August 07, 2014 2:38 PM
To: Eliaser, MaX
Cc: [email protected]
Subject: Re: [OE-core] [PATCH 0/2] Upstream recipe for bootchart2 from WebOS (revised again)
This one is missing pycairo change, is it intentional?
--
Martin 'JaMa' Jansa jabber: [email protected]