All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] shr.conf: set DISTRO_apm = fso-apm
@ 2009-12-04  7:19 Sebastian Spaeth
  2009-12-04  7:19 ` [PATCH 2/2] task-base: Introduce DISTRO_apm and convert recipes to use it Sebastian Spaeth
  0 siblings, 1 reply; 10+ messages in thread
From: Sebastian Spaeth @ 2009-12-04  7:19 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Sebastian Spaeth

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
---
 conf/distro/shr.conf |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/conf/distro/shr.conf b/conf/distro/shr.conf
index 2a33427..80f89bd 100644
--- a/conf/distro/shr.conf
+++ b/conf/distro/shr.conf
@@ -183,6 +183,7 @@ PREFERRED_PROVIDER_virtual/db-native = "db3-native"
 PREFERRED_PROVIDER_virtual/libsdl = "libsdl-x11"
 PREFERRED_PROVIDER_virtual/libx11 ?= "libx11"
 PREFERRED_PROVIDER_virtual/libusb0 ?= "libusb"
+DISTRO_apm = "fso-apm"
 
 #############################################################################
 # PREFERRED VERSIONS
-- 
1.6.3.3




^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/2] task-base: Introduce DISTRO_apm and convert recipes to use it.
  2009-12-04  7:19 [PATCH 1/2] shr.conf: set DISTRO_apm = fso-apm Sebastian Spaeth
@ 2009-12-04  7:19 ` Sebastian Spaeth
  2009-12-04  7:28   ` Sebastian Spaeth
                     ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Sebastian Spaeth @ 2009-12-04  7:19 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Sebastian Spaeth

* 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

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)}"
 
-- 
1.6.3.3




^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH 2/2] task-base: Introduce DISTRO_apm and convert recipes to use it.
  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
                     ` (2 subsequent siblings)
  3 siblings, 1 reply; 10+ messages in thread
From: Sebastian Spaeth @ 2009-12-04  7:28 UTC (permalink / raw)
  To: openembedded-devel

This is my take on solving our problem that we want a different "apm"
provider. Koen outlined this solution, so this way I went.

All recipes that RDPEND on "apm" basically get a

DISTRO_apm ?= "apm"
RDEPEND    += ${DISTRO_apm}

This could also be done with a virtual/apm package, and a
PREFERED_PROVIDER set to apm for all distros. Which would even be
cleaner I think, with the downside that all other distros would need to
set a prefered provider too.
For things like this is would be nice to get a common sane-providers.inc
where these standard providers can be defined.

What do you think? Can I commit this?
spaetz




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 2/2] task-base: Introduce DISTRO_apm and convert recipes to use it.
  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  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
  3 siblings, 2 replies; 10+ messages in thread
From: Michael 'Mickey' Lauer @ 2009-12-04  7:29 UTC (permalink / raw)
  To: openembedded-devel

Shouldn't that rather be DISTRO_APM? That way it looks less like an
override.

:M:






^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 2/2] task-base: Introduce DISTRO_apm and convert recipes to use it.
  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  7:29   ` Michael 'Mickey' Lauer
@ 2009-12-04  7:33   ` Sebastian Spaeth
  2009-12-04  8:39   ` Koen Kooi
  3 siblings, 0 replies; 10+ messages in thread
From: Sebastian Spaeth @ 2009-12-04  7:33 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 395 bytes --]

Sebastian Spaeth wrote:
> --- a/recipes/matchbox2/matchbox-panel-2_svn.bb
> +++ b/recipes/matchbox2/matchbox-panel-2_svn.bb
...
> +
> +DISTRO_apm ?= "apm"
...
> -DEPENDS += " ${@base_contains("MACHINE_FEATURES", "apm", "apmd", "",d)}"
> +DEPENDS += " ${@base_contains("MACHINE_FEATURES", "${DISTRO_apm}", "apmd", "",d)}"

This change is of course bogus and would not go in!
spaetz


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 268 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 2/2] task-base: Introduce DISTRO_apm and convert recipes to use it.
  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
  1 sibling, 0 replies; 10+ messages in thread
From: Sebastian Spaeth @ 2009-12-04  7:46 UTC (permalink / raw)
  To: openembedded-devel

Michael 'Mickey' Lauer wrote:
> Shouldn't that rather be DISTRO_APM? That way it looks less like an
> override.

DISTRO_APM is just as fine for me. I was using PREFERRED_PROVIDER_glibc
as an example. But I see that DISTRO_SSH_SERVER is also capitalized.
Will modify to all CAPS, thanks.

spaetz



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] [UPDATED] task-base: Introduce DISTRO_APM and convert recipes to use that
  2009-12-04  7:29   ` Michael 'Mickey' Lauer
  2009-12-04  7:46     ` Sebastian Spaeth
@ 2009-12-04  8:09     ` Sebastian Spaeth
  1 sibling, 0 replies; 10+ messages in thread
From: Sebastian Spaeth @ 2009-12-04  8:09 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Sebastian Spaeth

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
---
 conf/distro/shr.conf                           |    2 +-
 recipes/ipaq-sleep/ipaq-sleep_0.9.bb           |    5 +++--
 recipes/openmoko2/neod_svn.bb                  |    6 ++++--
 recipes/suspend-desktop/suspend-desktop_1.0.bb |    5 +++--
 recipes/tasks/task-base.bb                     |    7 +++++--
 5 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/conf/distro/shr.conf b/conf/distro/shr.conf
index 80f89bd..833eb09 100644
--- a/conf/distro/shr.conf
+++ b/conf/distro/shr.conf
@@ -30,6 +30,7 @@ DISTRO_TYPE = "debug"
 DISTRO = "shr"
 
 DISTRO_SSH_DAEMON = "openssh"
+DISTRO_APM = "fso-apm"
 
 #Generate locales on the buildsystem instead of on the target. Speeds up first boot, set to "1" to enable
 ENABLE_BINARY_LOCALE_GENERATION ?= "1"
@@ -183,7 +184,6 @@ PREFERRED_PROVIDER_virtual/db-native = "db3-native"
 PREFERRED_PROVIDER_virtual/libsdl = "libsdl-x11"
 PREFERRED_PROVIDER_virtual/libx11 ?= "libx11"
 PREFERRED_PROVIDER_virtual/libusb0 ?= "libusb"
-DISTRO_apm = "fso-apm"
 
 #############################################################################
 # PREFERRED VERSIONS
diff --git a/recipes/ipaq-sleep/ipaq-sleep_0.9.bb b/recipes/ipaq-sleep/ipaq-sleep_0.9.bb
index 24d881d..158de80 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/openmoko2/neod_svn.bb b/recipes/openmoko2/neod_svn.bb
index aeeee87..e57bf08 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..085d686 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..b540c80 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)}"
 
-- 
1.6.3.3




^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH 2/2] task-base: Introduce DISTRO_apm and convert recipes to use it.
  2009-12-04  7:19 ` [PATCH 2/2] task-base: Introduce DISTRO_apm and convert recipes to use it Sebastian Spaeth
                     ` (2 preceding siblings ...)
  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
  2009-12-04 11:02     ` Sebastian Spaeth
  3 siblings, 1 reply; 10+ messages in thread
From: Koen Kooi @ 2009-12-04  8:39 UTC (permalink / raw)
  To: openembedded-devel

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)}"
>





^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 2/2] task-base: Introduce DISTRO_apm and convert recipes to use it.
  2009-12-04  7:28   ` Sebastian Spaeth
@ 2009-12-04  9:14     ` Phil Blundell
  0 siblings, 0 replies; 10+ messages in thread
From: Phil Blundell @ 2009-12-04  9:14 UTC (permalink / raw)
  To: openembedded-devel

On Fri, 2009-12-04 at 08:28 +0100, Sebastian Spaeth wrote:
> This is my take on solving our problem that we want a different "apm"
> provider. Koen outlined this solution, so this way I went.
> 
> All recipes that RDPEND on "apm" basically get a
> 
> DISTRO_apm ?= "apm"
> RDEPEND    += ${DISTRO_apm}
> 
> This could also be done with a virtual/apm package, and a
> PREFERED_PROVIDER set to apm for all distros. Which would even be
> cleaner I think, with the downside that all other distros would need to
> set a prefered provider too.

The latter approach does sound rather better to me.  This is exactly
what virtuals are for, and I'm not sure that we want a massive
proliferation of DISTRO_foo variables that effectively shadow
PREFERRED_PROVIDER. 

You're right that there is a bit of an issue with adding new virtuals,
in that old distros need to remain pinned to the provider they were
getting previously rather than being left to flap in the wind.  Your
proposal of adding a new include file sounds like a reasonable way to
address that, though I'm not completely enamoured of the "sane-"
terminology.  I think something like "compatibility-providers.inc" or
even "legacy-providers.inc" would better capture what the file is for.

p.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 2/2] task-base: Introduce DISTRO_apm and convert recipes to use it.
  2009-12-04  8:39   ` Koen Kooi
@ 2009-12-04 11:02     ` Sebastian Spaeth
  0 siblings, 0 replies; 10+ messages in thread
From: Sebastian Spaeth @ 2009-12-04 11:02 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 393 bytes --]

Koen Kooi wrote:
> 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.

I have pushed this now (using caps), to get angstrom fixed. I agree with
Phil that using "virtaul/apm" would be cleaner though, so I will be
working towards using that.

Removing the RPROVIDES now from fsp-apm.

spaetz



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 268 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-12-04 11:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2009-12-04 11:02     ` Sebastian Spaeth

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.