Patchwork [meta-oe,RFC,19/27] polkit: conditional DEPEND systemd

login
register
mail settings
Submitter Andreas Müller
Date Feb. 7, 2012, 3:12 p.m.
Message ID <1328627573-5217-20-git-send-email-schnitzeltony@googlemail.com>
Download mbox | patch
Permalink /patch/20845/
State Rejected
Headers show

Comments

Andreas Müller - Feb. 7, 2012, 3:12 p.m.
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
---
 .../recipes-extended/polkit/polkit_0.104.bbappend  |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-extended/polkit/polkit_0.104.bbappend
Martin Jansa - Feb. 7, 2012, 3:35 p.m.
On Tue, Feb 07, 2012 at 04:12:45PM +0100, Andreas Müller wrote:
> 
> Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
> ---
>  .../recipes-extended/polkit/polkit_0.104.bbappend  |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
>  create mode 100644 meta-oe/recipes-extended/polkit/polkit_0.104.bbappend
> 
> diff --git a/meta-oe/recipes-extended/polkit/polkit_0.104.bbappend b/meta-oe/recipes-extended/polkit/polkit_0.104.bbappend
> new file mode 100644
> index 0000000..f521183
> --- /dev/null
> +++ b/meta-oe/recipes-extended/polkit/polkit_0.104.bbappend
> @@ -0,0 +1,5 @@
> +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> +
> +DEPENDS += "${@base_conditional('INIT_MANAGER', 'systemd', 'systemd', '', d)}"

With this please force systemd support enabled/disabled
EXTRA_OECONF += " ${@base_conditional('INIT_MANAGER', 'systemd', '--enable-systemd', '--disable-systemd', d)}"

Or even better use PACKAGECONFIG and initialize it wrt INIT_MANAGER.

Cheers,
Paul Eggleton - Feb. 7, 2012, 3:40 p.m.
On Tuesday 07 February 2012 16:12:45 Andreas Müller wrote:
> +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

Technically you don't need this line as you aren't adding any references to 
files in the layer.

Cheers,
Paul

Patch

diff --git a/meta-oe/recipes-extended/polkit/polkit_0.104.bbappend b/meta-oe/recipes-extended/polkit/polkit_0.104.bbappend
new file mode 100644
index 0000000..f521183
--- /dev/null
+++ b/meta-oe/recipes-extended/polkit/polkit_0.104.bbappend
@@ -0,0 +1,5 @@ 
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+DEPENDS += "${@base_conditional('INIT_MANAGER', 'systemd', 'systemd', '', d)}"
+
+PRINC = "1"