gdm/xfce-enhancements
cover gdm/xfce-enhancements
The following changes since commit 2a5dea2399e2be5e5d964eda7465dcaf4c2e152b:
ttf-arphic-uming: remove whitespace from license (2013-04-22 19:00:56 +0200)
are available in the git repository at:
git://gitorious.org/schnitzeltony-oe-meta/meta-openembedded.git gnome-xfce-fixes
Andreas Müller (4):
gdm: fix postinst-code to unbreak first boot issues
gdm: avoid displaying system users in greeter's list
gdm: cosmetics
xfce4-session: remove unconditional consolekit RDEPENDS and use PACKAGECONFIG
.../recipes-gnome/gdm/gdm-2.32.2/gdm-nodocs.patch | 12 ----
.../gdm/{gdm-2.32.2 => gdm}/%gconf-tree.xml | 0
.../0001-Remove-user-switch-applet.patch | 0
...nager.c-avoid-displaying-system-users-in-.patch | 34 +++++++++++
.../recipes-gnome/gdm/{gdm-2.32.2 => gdm}/Default | 0
.../gdm/{gdm-2.32.2 => gdm}/cross-xdetection.diff | 0
.../recipes-gnome/gdm/{gdm-2.32.2 => gdm}/gdm | 0
.../recipes-gnome/gdm/{gdm-2.32.2 => gdm}/gdm-pam | 0
.../recipes-gnome/gdm/{gdm-2.32.2 => gdm}/gdm.conf | 0
.../{gdm-2.32.2 => gdm}/sysrooted-pkg-config.patch | 0
meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb | 60 +++++++++----------
.../xfce4-session/xfce4-session_4.10.0.bb | 9 ++-
12 files changed, 68 insertions(+), 47 deletions(-)
delete mode 100644 meta-gnome/recipes-gnome/gdm/gdm-2.32.2/gdm-nodocs.patch
rename meta-gnome/recipes-gnome/gdm/{gdm-2.32.2 => gdm}/%gconf-tree.xml (100%)
rename meta-gnome/recipes-gnome/gdm/{gdm-2.32.2 => gdm}/0001-Remove-user-switch-applet.patch (100%)
create mode 100644 meta-gnome/recipes-gnome/gdm/gdm/0002-gdm-user-manager.c-avoid-displaying-system-users-in-.patch
rename meta-gnome/recipes-gnome/gdm/{gdm-2.32.2 => gdm}/Default (100%)
rename meta-gnome/recipes-gnome/gdm/{gdm-2.32.2 => gdm}/cross-xdetection.diff (100%)
rename meta-gnome/recipes-gnome/gdm/{gdm-2.32.2 => gdm}/gdm (100%)
rename meta-gnome/recipes-gnome/gdm/{gdm-2.32.2 => gdm}/gdm-pam (100%)
rename meta-gnome/recipes-gnome/gdm/{gdm-2.32.2 => gdm}/gdm.conf (100%)
rename meta-gnome/recipes-gnome/gdm/{gdm-2.32.2 => gdm}/sysrooted-pkg-config.patch (100%)[
Signature · 1 line
1.7.4.4
PATCH 1/4 gdm: fix postinst-code to unbreak first boot issues
Exiting postinst code leaves systemd.bbclass offline postinst code unexecuted, causes postinst not to finish at first boot (gdm.service is not aliased to display-manager.service -> started much too early) and is not neccesary:
language preparation can be done offline.
--- meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb | 31 ++++++++++----------------- 1 files changed, 12 insertions(+), 19 deletions(-)
meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb +12 -19
@@ -4,9 +4,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" DEPENDS = "xinput gnome-panel tcp-wrappers libcanberra libxklavier grep consolekit libpam gnome-doc-utils gtk+ xrdb" -PR = "r15" +PR = "r16" -inherit gnome update-rc.d systemd +inherit gnome update-rc.d systemd useradd SRC_URI += " \ file://cross-xdetection.diff \
@@ -33,8 +33,8 @@ do_configure_prepend() { } do_install_prepend() { - mkdir -p ${D}/var/lib/gdm/.gconf.mandatory - cp ${WORKDIR}/%gconf-tree.xml ${D}/var/lib/gdm/.gconf.mandatory/ + install -d ${D}/${localstatedir}/lib/gdm/.gconf.mandatory + install ${WORKDIR}/%gconf-tree.xml ${D}/${localstatedir}/lib/gdm/.gconf.mandatory/ } do_install_append() {
@@ -54,6 +54,9 @@ do_install_append() { sed -e 's,%sbindir%,${sbindir},g' \ < ${WORKDIR}/gdm.service.in \ > ${D}${systemd_unitdir}/system/gdm.service + + chown -R gdm:gdm ${D}${localstatedir}/lib/gdm + chmod 0750 ${D}${localstatedir}/lib/gdm } FILES_${PN} += "${datadir}/icon* \
@@ -72,23 +75,13 @@ SYSTEMD_SERVICE_${PN} = "gdm.service" INITSCRIPT_NAME = "gdm" INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ." -pkg_postinst_${PN} () { - # can't do this offline - if [ "x$D" != "x" ]; then - exit 1 - fi - grep "^gdm:" /etc/group > /dev/null || addgroup gdm - grep "^gdm:" /etc/passwd > /dev/null || adduser --disabled-password --system --home /var/lib/gdm gdm --ingroup gdm -g gdm - -if [ -d /var/lib/gdm ]; then - chown -R gdm:gdm /var/lib/gdm - chmod 0750 /var/lib/gdm -fi +USERADD_PACKAGES = "${PN}" +USERADD_PARAM_${PN} = "--system --no-create-home --home ${localstatedir}/lib/gdm --user-group gdm" +pkg_postinst_${PN} () { # Register up as default dm -mkdir -p ${sysconfdir}/X11/ -echo "${bindir}/gdm" > ${sysconfdir}/X11/default-display-manager - +mkdir -p $D${sysconfdir}/X11/ +echo "${bindir}/gdm" > $D${sysconfdir}/X11/default-display-manager } pkg_postrm_${PN} () {
Signature · 1 line
1.7.4.4
Re: [meta-gnome/meta-xfce 1/4] gdm: fix postinst-code to unbreak first boot issues
Quoted 63 lines · Andreas Müller
Exiting postinst code leaves systemd.bbclass offline postinst code unexecuted, causes postinst not to finish at first boot (gdm.service is not aliased to display-manager.service -> started much too early) and is not neccesary:
language preparation can be done offline.Signed-off-by Andreas Müller <[email protected]>--- meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb | 31 ++++++++++----------------- 1 files changed, 12 insertions(+), 19 deletions(-)meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb +7
-16@@ -4,9 +4,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" DEPENDS = "xinput gnome-panel tcp-wrappers libcanberra libxklavier grep consolekit libpam gnome-doc-utils gtk+ xrdb" -PR = "r15" +PR = "r16" -inherit gnome update-rc.d systemd +inherit gnome update-rc.d systemd useradd SRC_URI += " \ file://cross-xdetection.diff \@@ -33,8 +33,8 @@ do_configure_prepend() { } do_install_prepend() { - mkdir -p ${D}/var/lib/gdm/.gconf.mandatory - cp ${WORKDIR}/%gconf-tree.xml ${D}/var/lib/gdm/.gconf.mandatory/ + install -d ${D}/${localstatedir}/lib/gdm/.gconf.mandatory + install ${WORKDIR}/%gconf-tree.xml ${D}/${localstatedir}/lib/gdm/.gconf.mandatory/ } do_install_append() {@@ -54,6 +54,9 @@ do_install_append() { sed -e 's,%sbindir%,${sbindir},g' \ < ${WORKDIR}/gdm.service.in \ > ${D}${systemd_unitdir}/system/gdm.service + + chown -R gdm:gdm ${D}${localstatedir}/lib/gdm + chmod 0750 ${D}${localstatedir}/lib/gdm } FILES_${PN} += "${datadir}/icon* \@@ -72,23 +75,13 @@ SYSTEMD_SERVICE_${PN} = "gdm.service" INITSCRIPT_NAME = "gdm" INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ." -pkg_postinst_${PN} () { - # can't do this offline - if [ "x$D" != "x" ]; then - exit 1 - fi - grep "^gdm:" /etc/group > /dev/null || addgroup gdm - grep "^gdm:" /etc/passwd > /dev/null || adduser --disabled-password --system --home /var/lib/gdm gdm --ingroup gdm -g gdm - -if [ -d /var/lib/gdm ]; then - chown -R gdm:gdm /var/lib/gdm - chmod 0750 /var/lib/gdm -fi
meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb SYSTEMD_SERVICE_${PN} = "gdm.service" · line 84
Quoted 10 lines
meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb +5
-3+USERADD_PACKAGES = "${PN}" +USERADD_PARAM_${PN} = "--system --no-create-home --home ${localstatedir}/lib/gdm --user-group gdm" +pkg_postinst_${PN} () { # Register up as default dm -mkdir -p ${sysconfdir}/X11/ -echo "${bindir}/gdm" > ${sysconfdir}/X11/default-display-manager - +mkdir -p $D${sysconfdir}/X11/ +echo "${bindir}/gdm" > $D${sysconfdir}/X11/default-display-manager
Maybe we should use u-a for default-display-manager like we use x-window-manager for WMs.
but git grep display-manager shows only meta-oe/recipes-graphics/nonworking/slim/slim_1.3.2.bb doing the same as gdm
Quoted 11 lines
meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb +0
-0} pkg_postrm_${PN} () {Signature · 7 lines
1.7.4.4 _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Re: [meta-gnome/meta-xfce 1/4] gdm: fix postinst-code to unbreak first boot issues
Quoted 22 lines · Martin Jansa
Quoted 11 lines · Andreas Müller
Exiting postinst code leaves systemd.bbclass offline postinst code unexecuted, causes postinst not to finish at first boot (gdm.service is not aliased to display-manager.service -> started much too early) and is not neccesary:
language preparation can be done offline.Signed-off-by Andreas Müller <[email protected]>--- meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb | 31 ++++++++++----------------- 1 files changed, 12 insertions(+), 19 deletions(-)meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb SYSTEMD_SERVICE_${PN} = "gdm.service" · line 84
Quoted 7 lines
meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb +3
-3+pkg_postinst_${PN} () { # Register up as default dm -mkdir -p ${sysconfdir}/X11/ -echo "${bindir}/gdm" > ${sysconfdir}/X11/default-display-manager - +mkdir -p $D${sysconfdir}/X11/ +echo "${bindir}/gdm" > $D${sysconfdir}/X11/default-display-managerMaybe we should use u-a for default-display-manager like we use x-window-manager for WMs.
Quoted 4 lines
but git grep display-manager shows only meta-oe/recipes-graphics/nonworking/slim/slim_1.3.2.bb doing the same as gdm
Intention of this patch is fixing postinst failure. I have no idea what this file is for. Can somebody give me a hint (is it required in systemd environments?) and can we fix this in another series? By the way: I am not using gdm. From what I have seen during tests for this series it needs a lot more love to work as expected:
* gdm decides to put my standard user into the list of excluded users so it is not displayed in the list and has to be entered manually.
* it is terribly slow
* the log files are full of different warnings - one thing I saw was that polkit-gnome does not find its way into the image although it is recommended
Andreas
Re: [meta-gnome/meta-xfce 1/4] gdm: fix postinst-code to unbreak first boot issues
Quoted 6 lines · Andreas Müller
Quoted 5 lines · Martin Jansa
Quoted 4 lines · Andreas Müller
Exiting postinst code leaves systemd.bbclass offline postinst code unexecuted, causes postinst not to finish at first boot (gdm.service is not aliased to display-manager.service -> started much too early) and is not neccesary:
language preparation can be done offline.
Just learned that the chown code does not belong to do_install. Shall I send a V2 or a follow up?
Andreas
Re: [meta-gnome/meta-xfce 1/4] gdm: fix postinst-code to unbreak first boot issues
Quoted 10 lines · Andreas Müller
Quoted 6 lines · Andreas Müller
Quoted 5 lines · Martin Jansa
Quoted 4 lines · Andreas Müller
Exiting postinst code leaves systemd.bbclass offline postinst code unexecuted, causes postinst not to finish at first boot (gdm.service is not aliased to display-manager.service -> started much too early) and is not neccesary:
language preparation can be done offline.Just learned that the chown code does not belong to
do_install. Shall I send a V2 or a follow up?
I was too fast - it still discussed [1]
Andreas
[1] http://lists.linuxtogo.org/pipermail/openembedded-core/2013-May/039111.html
Re: [meta-gnome/meta-xfce 1/4] gdm: fix postinst-code to unbreak first boot issues
Quoted 5 lines · Andreas Müller
Quoted 3 lines · Andreas Müller
Quoted 1 line · Andreas Müller
On Sat, Apr 27, 2013 at 9:31 PM, Martin Jansa <[email protected]> wrote:
Quoted 8 lines
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines · Andreas Müller
Quoted 4 lines
Exiting postinst code leaves systemd.bbclass offline postinst code unexecuted, causes postinst not to finish at first boot (gdm.service is not aliased to display-manager.service -> started much too early) and is not neccesary:
language preparation can be done offline.Just learned that the chown code does not belong to
do_install. Shall I send a V2 or a follow up?I was too fast - it still discussed [1]
Do you want me to apply these 4 and then add better fix in follow-up if needed? From that discussion it looks like you did all what you could in gdm :).
Quoted 6 lines
[1] http://lists.linuxtogo.org/pipermail/openembedded-core/2013-May/039111.html
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Re: [meta-gnome/meta-xfce 1/4] gdm: fix postinst-code to unbreak first boot issues
Quoted 11 lines · Martin Jansa
Quoted 10 lines · Andreas Müller
Quoted 8 lines · Andreas Müller
Quoted 6 lines · Andreas Müller
Quoted 5 lines · Martin Jansa
Quoted 4 lines · Andreas Müller
Exiting postinst code leaves systemd.bbclass offline postinst code unexecuted, causes postinst not to finish at first boot (gdm.service is not aliased to display-manager.service -> started much too early) and is not neccesary:
language preparation can be done offline.
Quoted 7 lines
Quoted 3 lines
Quoted 2 lines
Just learned that the chown code does not belong to
do_install. Shall I send a V2 or a follow up?I was too fast - it still discussed [1]
Do you want me to apply these 4 and then add better fix in follow-up if needed? From that discussion it looks like you did all what you could in gdm :).
Yes please - otherwise I'll loose overview of patches around :)
Andreas
PATCH 2/4 gdm: avoid displaying system users in greeter's list
In reply to Andreas Müller--- ...nager.c-avoid-displaying-system-users-in-.patch | 34 ++++++++++++++++++++ meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb | 3 +- 2 files changed, 36 insertions(+), 1 deletions(-) create mode 100644 meta-gnome/recipes-gnome/gdm/gdm/0002-gdm-user-manager.c-avoid-displaying-system-users-in-.patch
meta-gnome/recipes-gnome/gdm/gdm/0002-gdm-user-manager.c-avoid-displaying-system-users-in-.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 43e59f3deadb3914a1cc931ae18d4023874cdeca Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]> +Date: Fri, 26 Apr 2013 17:15:48 +0200 +Subject: [PATCH] gdm-user-manager.c: avoid displaying system users in + greeter's list +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +yocto environment system users have UID below 1000 + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Andreas Müller <[email protected]> +--- + gui/simple-greeter/gdm-user-manager.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/gui/simple-greeter/gdm-user-manager.c b/gui/simple-greeter/gdm-user-manager.c +index c631989..f18e478 100644 +--- a/gui/simple-greeter/gdm-user-manager.c ++++ b/gui/simple-greeter/gdm-user-manager.c +@@ -63,7 +63,7 @@ + #ifdef __sun + #define FALLBACK_MINIMAL_UID 100 + #else +-#define FALLBACK_MINIMAL_UID 500 ++#define FALLBACK_MINIMAL_UID 1000 + #endif + + #ifndef _PATH_SHELLS +-- +1.7.4.4 +
meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb +2 -1
@@ -4,13 +4,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" DEPENDS = "xinput gnome-panel tcp-wrappers libcanberra libxklavier grep consolekit libpam gnome-doc-utils gtk+ xrdb" -PR = "r16" +PR = "r17" inherit gnome update-rc.d systemd useradd SRC_URI += " \ file://cross-xdetection.diff \ file://0001-Remove-user-switch-applet.patch \ + file://0002-gdm-user-manager.c-avoid-displaying-system-users-in-.patch \ file://sysrooted-pkg-config.patch \ file://%gconf-tree.xml \ file://gdm \
Signature · 1 line
1.7.4.4
PATCH 3/4 gdm: cosmetics
In reply to Andreas Müller---
.../recipes-gnome/gdm/gdm-2.32.2/gdm-nodocs.patch | 12 --------
.../gdm/{gdm-2.32.2 => gdm}/%gconf-tree.xml | 0
.../0001-Remove-user-switch-applet.patch | 0
.../recipes-gnome/gdm/{gdm-2.32.2 => gdm}/Default | 0
.../gdm/{gdm-2.32.2 => gdm}/cross-xdetection.diff | 0
.../recipes-gnome/gdm/{gdm-2.32.2 => gdm}/gdm | 0
.../recipes-gnome/gdm/{gdm-2.32.2 => gdm}/gdm-pam | 0
.../recipes-gnome/gdm/{gdm-2.32.2 => gdm}/gdm.conf | 0
.../{gdm-2.32.2 => gdm}/sysrooted-pkg-config.patch | 0
meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb | 30 ++++++++++---------
10 files changed, 16 insertions(+), 26 deletions(-)
delete mode 100644 meta-gnome/recipes-gnome/gdm/gdm-2.32.2/gdm-nodocs.patch
rename meta-gnome/recipes-gnome/gdm/{gdm-2.32.2 => gdm}/%gconf-tree.xml (100%)
rename meta-gnome/recipes-gnome/gdm/{gdm-2.32.2 => gdm}/0001-Remove-user-switch-applet.patch (100%)
rename meta-gnome/recipes-gnome/gdm/{gdm-2.32.2 => gdm}/Default (100%)
rename meta-gnome/recipes-gnome/gdm/{gdm-2.32.2 => gdm}/cross-xdetection.diff (100%)
rename meta-gnome/recipes-gnome/gdm/{gdm-2.32.2 => gdm}/gdm (100%)
rename meta-gnome/recipes-gnome/gdm/{gdm-2.32.2 => gdm}/gdm-pam (100%)
rename meta-gnome/recipes-gnome/gdm/{gdm-2.32.2 => gdm}/gdm.conf (100%)
rename meta-gnome/recipes-gnome/gdm/{gdm-2.32.2 => gdm}/sysrooted-pkg-config.patch (100%)meta-gnome/recipes-gnome/gdm/gdm-2.32.2/gdm-nodocs.patch deleted +0 -12
@@ -1,12 +0,0 @@ ---- /tmp/Makefile.am 2006-07-26 11:37:52.000000000 +0200 -+++ gdm-2.14.9/Makefile.am 2006-07-26 11:38:01.734411000 +0200 -@@ -5,8 +5,7 @@ - vicious-extensions \ - daemon \ - gui \ -- utils \ -- docs -+ utils - - # add these when help gets added back - # docs omf-install
meta-gnome/recipes-gnome/gdm/gdm/%gconf-tree.xml renamed from meta-gnome/recipes-gnome/gdm/gdm-2.32.2/%gconf-tree.xml +0 -0
meta-gnome/recipes-gnome/gdm/gdm/0001-Remove-user-switch-applet.patch renamed from meta-gnome/recipes-gnome/gdm/gdm-2.32.2/0001-Remove-user-switch-applet.patch +0 -0
meta-gnome/recipes-gnome/gdm/gdm/Default renamed from meta-gnome/recipes-gnome/gdm/gdm-2.32.2/Default +0 -0
meta-gnome/recipes-gnome/gdm/gdm/cross-xdetection.diff renamed from meta-gnome/recipes-gnome/gdm/gdm-2.32.2/cross-xdetection.diff +0 -0
meta-gnome/recipes-gnome/gdm/gdm/gdm renamed from meta-gnome/recipes-gnome/gdm/gdm-2.32.2/gdm +0 -0
meta-gnome/recipes-gnome/gdm/gdm/gdm-pam renamed from meta-gnome/recipes-gnome/gdm/gdm-2.32.2/gdm-pam +0 -0
meta-gnome/recipes-gnome/gdm/gdm/gdm.conf renamed from meta-gnome/recipes-gnome/gdm/gdm-2.32.2/gdm.conf +0 -0
meta-gnome/recipes-gnome/gdm/gdm/sysrooted-pkg-config.patch renamed from meta-gnome/recipes-gnome/gdm/gdm-2.32.2/sysrooted-pkg-config.patch +0 -0
meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb +16 -14
@@ -9,25 +9,27 @@ PR = "r17" inherit gnome update-rc.d systemd useradd SRC_URI += " \ - file://cross-xdetection.diff \ - file://0001-Remove-user-switch-applet.patch \ - file://0002-gdm-user-manager.c-avoid-displaying-system-users-in-.patch \ - file://sysrooted-pkg-config.patch \ - file://%gconf-tree.xml \ - file://gdm \ - file://gdm.conf \ - file://gdm-pam \ - file://Default \ - file://gdm.service.in \ + file://cross-xdetection.diff \ + file://0001-Remove-user-switch-applet.patch \ + file://0002-gdm-user-manager.c-avoid-displaying-system-users-in-.patch \ + file://sysrooted-pkg-config.patch \ + file://%gconf-tree.xml \ + file://gdm \ + file://gdm.conf \ + file://gdm-pam \ + file://Default \ + file://gdm.service.in \ " SRC_URI[archive.md5sum] = "dbe5187a2e17881cc454e313e0ae8d1e" SRC_URI[archive.sha256sum] = "034d23af0ea18d86e5543e707212d9297ec7d83f221808968af266dbebc0e703" -EXTRA_OECONF = " --enable-authentication-scheme=shadow \ - --enable-debug=yes \ - --with-console-kit \ - --disable-scrollkeeper" +EXTRA_OECONF = " \ + --enable-authentication-scheme=shadow \ + --enable-debug=yes \ + --with-console-kit \ + --disable-scrollkeeper \ +" do_configure_prepend() { sed -i -e "s:\bdocs::g" ${S}/Makefile.am
Signature · 1 line
1.7.4.4
PATCH 4/4 xfce4-session: remove unconditional consolekit RDEPENDS and use PACKAGECONFIG
In reply to Andreas Müller--- .../xfce4-session/xfce4-session_4.10.0.bb | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-)
meta-xfce/recipes-xfce/xfce4-session/xfce4-session_4.10.0.bb +6 -3
@@ -3,9 +3,8 @@ SECTION = "x11" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=9ac2e7cff1ddaf48b6eab6028f23ef88" DEPENDS = "virtual/libx11 libsm libxfce4util libxfce4ui gtk+ libwnck dbus dbus-glib xfconf" -DEPENDS += "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" -RDEPENDS_${PN} = "netbase xinit dbus-x11 iceauth consolekit upower" -PR = "r6" +RDEPENDS_${PN} = "netbase xinit dbus-x11 iceauth upower" +PR = "r7" inherit xfce update-alternatives
@@ -25,6 +24,10 @@ pkg_postinst_${PN} () { echo 127.0.0.1 ${MACHINE} >> /etc/hosts } +PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES','systemd','systemd','consolekit',d)}" +PACKAGECONFIG[systemd] = "--enable-systemd, --disable-systemd, polkit, systemd" +PACKAGECONFIG[consolekit] = ",,,consolekit" + FILES_${PN} += "${libdir}/xfce4/*/*/*.so \ ${libdir}/xfce4/session/*-*-* \ ${datadir}/xsessions \
Signature · 1 line
1.7.4.4