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<[email protected]>
---
  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)}"




_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to