Patchwork [3/3] powertop: Add recipe for powertop (2.5)

login
register
mail settings
Submitter christian.braunersorensen@prevas.dk
Date April 28, 2014, 9:34 a.m.
Message ID <608cc1a46214d21c863d5448d0088f0ca26a952e.1398677647.git.christian.braunersorensen@prevas.dk>
Download mbox | patch
Permalink /patch/343460/
State Superseded, archived
Delegated to: Esben Haabendal
Headers show

Comments

christian.braunersorensen@prevas.dk - April 28, 2014, 9:34 a.m.
From: Christian Sørensen <christian.braunersorensen@prevas.dk>

Signed-off-by: Christian Sørensen <christian.braunersorensen@prevas.dk>
---
 recipes/powertop/powertop_2.5.oe     | 23 +++++++++++++++++++++++
 recipes/powertop/powertop_2.5.oe.sig |  1 +
 2 files changed, 24 insertions(+)
 create mode 100644 recipes/powertop/powertop_2.5.oe
 create mode 100644 recipes/powertop/powertop_2.5.oe.sig
Esben Haabendal - May 13, 2014, 11:48 a.m.
<christian.braunersorensen@prevas.dk> writes:

> From: Christian Sørensen <christian.braunersorensen@prevas.dk>
>
> Signed-off-by: Christian Sørensen <christian.braunersorensen@prevas.dk>
> ---
>  recipes/powertop/powertop_2.5.oe     | 23 +++++++++++++++++++++++
>  recipes/powertop/powertop_2.5.oe.sig |  1 +
>  2 files changed, 24 insertions(+)
>  create mode 100644 recipes/powertop/powertop_2.5.oe
>  create mode 100644 recipes/powertop/powertop_2.5.oe.sig
>
> diff --git a/recipes/powertop/powertop_2.5.oe b/recipes/powertop/powertop_2.5.oe
> new file mode 100644
> index 0000000..e8c007a
> --- /dev/null
> +++ b/recipes/powertop/powertop_2.5.oe
> @@ -0,0 +1,23 @@
> +SUMMARY = "Power usage tool"
> +DESCRIPTION = "Linux tool to diagnose issues with power consumption and power management."
> +HOMEPAGE = "http://01.org/powertop/"
> +BUGTRACKER = "http://bugzilla.lesswatts.org/"
> +LICENSE = "GPL-2.0"
> +
> +POWERTOP_COMMON_DEPENDS = "libncurses libnl-3 libnl-genl-3 libnl-nf-3 \
> +	libnl-nf-3 libnl-route-3 libpci libpthread libstdc++ libm"
> +DEPENDS = "${POWERTOP_COMMON_DEPENDS} libpci-dev"

Why libpci-dev and not libpci?

> +
> +inherit autotools-autoreconf gettext pkgconfig c++
> +
> +SRC_URI = "https://github.com/fenrus75/powertop/archive/v${PV}.tar.gz"
> +
> +# we do not want libncursesw if we can
> +do_configure[prefuncs] += "do_configure_ncurses_fixup"
> +do_configure_ncurses_fixup() {
> +    # configure.ac checks for delwin() in "ncursesw ncurses" so let's drop first one
> +    sed -i -e "s/ncursesw//g" ${S}/configure.ac
> +}
> +
> +DEPENDS_${PN} += "${POWERTOP_COMMON_DEPENDS} libgcc-s libc"
> +RDEPENDS_${PN} += "${POWERTOP_COMMON_DEPENDS} libgcc-s libc"
> diff --git a/recipes/powertop/powertop_2.5.oe.sig b/recipes/powertop/powertop_2.5.oe.sig
> new file mode 100644
> index 0000000..deecd61
> --- /dev/null
> +++ b/recipes/powertop/powertop_2.5.oe.sig
> @@ -0,0 +1 @@
> +e4136b330b7227381c3a5a45f8ef5d49104a67cf  v2.5.tar.gz
christian.braunersorensen@prevas.dk - July 28, 2014, 5:48 a.m.
Due to dependencies in pciutils to be incorrect.

I'll resend a new patch for powertop, included with a fix for pciutils.

/Christian

Patch

diff --git a/recipes/powertop/powertop_2.5.oe b/recipes/powertop/powertop_2.5.oe
new file mode 100644
index 0000000..e8c007a
--- /dev/null
+++ b/recipes/powertop/powertop_2.5.oe
@@ -0,0 +1,23 @@ 
+SUMMARY = "Power usage tool"
+DESCRIPTION = "Linux tool to diagnose issues with power consumption and power management."
+HOMEPAGE = "http://01.org/powertop/"
+BUGTRACKER = "http://bugzilla.lesswatts.org/"
+LICENSE = "GPL-2.0"
+
+POWERTOP_COMMON_DEPENDS = "libncurses libnl-3 libnl-genl-3 libnl-nf-3 \
+	libnl-nf-3 libnl-route-3 libpci libpthread libstdc++ libm"
+DEPENDS = "${POWERTOP_COMMON_DEPENDS} libpci-dev"
+
+inherit autotools-autoreconf gettext pkgconfig c++
+
+SRC_URI = "https://github.com/fenrus75/powertop/archive/v${PV}.tar.gz"
+
+# we do not want libncursesw if we can
+do_configure[prefuncs] += "do_configure_ncurses_fixup"
+do_configure_ncurses_fixup() {
+    # configure.ac checks for delwin() in "ncursesw ncurses" so let's drop first one
+    sed -i -e "s/ncursesw//g" ${S}/configure.ac
+}
+
+DEPENDS_${PN} += "${POWERTOP_COMMON_DEPENDS} libgcc-s libc"
+RDEPENDS_${PN} += "${POWERTOP_COMMON_DEPENDS} libgcc-s libc"
diff --git a/recipes/powertop/powertop_2.5.oe.sig b/recipes/powertop/powertop_2.5.oe.sig
new file mode 100644
index 0000000..deecd61
--- /dev/null
+++ b/recipes/powertop/powertop_2.5.oe.sig
@@ -0,0 +1 @@ 
+e4136b330b7227381c3a5a45f8ef5d49104a67cf  v2.5.tar.gz