All of lore.kernel.org
 help / color / mirror / Atom feed
From: Koen Kooi <k.kooi@student.utwente.nl>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH 2/2] task-base: Introduce DISTRO_apm and convert recipes to use it.
Date: Fri, 04 Dec 2009 09:39:41 +0100	[thread overview]
Message-ID: <hfahsd$ofp$1@ger.gmane.org> (raw)
In-Reply-To: <1259911168-19992-2-git-send-email-Sebastian@SSpaeth.de>

On 04-12-09 08:19, Sebastian Spaeth wrote:
> * This allows distros to override the apm provider with an DISTRO_apm variable
> * The change should be transparent and invisible for other distros
> * This could also be done with a virtual/apm package, and a PREFERED_PROVIDER set to apm

Don't forget to remove the (R)PROVIDES in fso-apmd which are causing all 
the problems. Some comment as mickey, please use caps for vars.

regards,

Koen


> Signed-off-by: Sebastian Spaeth<Sebastian@SSpaeth.de>
> ---
>   recipes/ipaq-sleep/ipaq-sleep_0.9.bb           |    5 +++--
>   recipes/matchbox2/matchbox-panel-2_svn.bb      |    6 ++++--
>   recipes/openmoko2/neod_svn.bb                  |    6 ++++--
>   recipes/suspend-desktop/suspend-desktop_1.0.bb |    5 +++--
>   recipes/tasks/task-base.bb                     |    7 +++++--
>   5 files changed, 19 insertions(+), 10 deletions(-)
>
> diff --git a/recipes/ipaq-sleep/ipaq-sleep_0.9.bb b/recipes/ipaq-sleep/ipaq-sleep_0.9.bb
> index 24d881d..6c37b73 100644
> --- a/recipes/ipaq-sleep/ipaq-sleep_0.9.bb
> +++ b/recipes/ipaq-sleep/ipaq-sleep_0.9.bb
> @@ -2,8 +2,9 @@ DESCRIPTION = "Automatic sleep/suspend control daemon"
>   SECTION = "x11/base"
>   LICENSE = "GPL"
>   DEPENDS = "apmd virtual/xserver libxext virtual/libx11 libxau xscrnsaverh libxss"
> -RDEPENDS = "apm"
> -PR = "r6"
> +DISTRO_apm ?= "apm"
> +RDEPENDS = "${DISTRO_apm}"
> +PR = "r7"
>
>   inherit gpe pkgconfig
>
> diff --git a/recipes/matchbox2/matchbox-panel-2_svn.bb b/recipes/matchbox2/matchbox-panel-2_svn.bb
> index a2a807f..9d1781b 100644
> --- a/recipes/matchbox2/matchbox-panel-2_svn.bb
> +++ b/recipes/matchbox2/matchbox-panel-2_svn.bb
> @@ -1,13 +1,15 @@
>   DESCRIPTION = "matchbox-panel-2 is a lightweight dock (system tray) application based on Gtk+"
>   LICENSE = "GPLv2"
>   SECTION = "x11/panels"
> +
> +DISTRO_apm ?= "apm"
>   DEPENDS = "gtk+ startup-notification dbus dbus-glib matchbox-panel-2-icon-themes"
>   DEPENDS += " ${@base_contains("MACHINE_FEATURES", "acpi", "libacpi", "",d)}"
> -DEPENDS += " ${@base_contains("MACHINE_FEATURES", "apm", "apmd", "",d)}"
> +DEPENDS += " ${@base_contains("MACHINE_FEATURES", "${DISTRO_apm}", "apmd", "",d)}"
>   RDEPENDS_${PN} = "matchbox-panel-2-icon-theme"
>   PACKAGE_ARCH = "${MACHINE_ARCH}"
>   PV = "2.0+svnr${SRCPV}"
> -PR = "r0"
> +PR = "r1"
>
>   inherit autotools_stage pkgconfig
>
> diff --git a/recipes/openmoko2/neod_svn.bb b/recipes/openmoko2/neod_svn.bb
> index aeeee87..14858a7 100644
> --- a/recipes/openmoko2/neod_svn.bb
> +++ b/recipes/openmoko2/neod_svn.bb
> @@ -1,9 +1,11 @@
>   DESCRIPTION = "Simple Neo1973 Daemon for Button Handling and Power Management"
>   SECTION = "openmoko/daemons"
> +
> +DISTRO_apm ?= "apm"
>   DEPENDS = "gtk+ pulseaudio apmd"
> -RDEPENDS = "gpe-scap xrandr alsa-utils-amixer apm dbus"
> +RDEPENDS = "gpe-scap xrandr alsa-utils-amixer ${DISTRO_apm} dbus"
>   PV = "0.1.0+svnr${SRCPV}"
> -PR = "r6"
> +PR = "r7"
>
>   inherit openmoko2 gconf
>
> diff --git a/recipes/suspend-desktop/suspend-desktop_1.0.bb b/recipes/suspend-desktop/suspend-desktop_1.0.bb
> index fa9efba..8fcdfea 100644
> --- a/recipes/suspend-desktop/suspend-desktop_1.0.bb
> +++ b/recipes/suspend-desktop/suspend-desktop_1.0.bb
> @@ -3,10 +3,11 @@ PRIORITY    = "optional"
>   DESCRIPTION = "Suspend feature for the application launcher menu."
>   LICENSE     = "GPL"
>
> -PR          = "r1"
> +PR          = "r2"
>
> +DISTRO-apm ?= "apm"
>   RDEPENDS    = "gpe-conf"
> -RRECOMMENDS = "apm"
> +RRECOMMENDS = "${DISTRO_apm}"
>
>   PACKAGES    = "${PN}"
>   PACKAGE_ARCH = "all"
> diff --git a/recipes/tasks/task-base.bb b/recipes/tasks/task-base.bb
> index ed561b8..6aad873 100644
> --- a/recipes/tasks/task-base.bb
> +++ b/recipes/tasks/task-base.bb
> @@ -1,5 +1,5 @@
>   DESCRIPTION = "Merge machine and distro options to create a basic machine task/package"
> -PR = "r86"
> +PR = "r87"
>
>   inherit task
>
> @@ -60,6 +60,9 @@ HOTPLUG ?= "${@base_contains("MACHINE_FEATURES", "kernel24",  "linux-hotplug",""
>   #
>   DISTRO_SSH_DAEMON ?= "dropbear"
>
> +# Distro can override apm provider
> +DISTRO_apm ?= "apm"
> +
>   #
>   # bluetooth manager
>   #
> @@ -190,7 +193,7 @@ RDEPENDS_task-base-acpi = "\
>       acpid"
>
>   RDEPENDS_task-base-apm = "\
> -    apm \
> +    "${DISTRO_apm}" \
>       apmd \
>       ${@base_contains('MACHINE_FEATURES', 'kernel24', 'network-suspend-scripts', '',d)}"
>





  parent reply	other threads:[~2009-12-04  8:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-04  7:19 [PATCH 1/2] shr.conf: set DISTRO_apm = fso-apm Sebastian Spaeth
2009-12-04  7:19 ` [PATCH 2/2] task-base: Introduce DISTRO_apm and convert recipes to use it Sebastian Spaeth
2009-12-04  7:28   ` Sebastian Spaeth
2009-12-04  9:14     ` Phil Blundell
2009-12-04  7:29   ` Michael 'Mickey' Lauer
2009-12-04  7:46     ` Sebastian Spaeth
2009-12-04  8:09     ` [PATCH] [UPDATED] task-base: Introduce DISTRO_APM and convert recipes to use that Sebastian Spaeth
2009-12-04  7:33   ` [PATCH 2/2] task-base: Introduce DISTRO_apm and convert recipes to use it Sebastian Spaeth
2009-12-04  8:39   ` Koen Kooi [this message]
2009-12-04 11:02     ` Sebastian Spaeth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hfahsd$ofp$1@ger.gmane.org' \
    --to=k.kooi@student.utwente.nl \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.