summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics/lxdm
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@googlemail.com>2014-10-07 08:49:45 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2014-10-10 12:47:35 +0200
commitc8a670fea52b8bd7c9a0476c82cb49bedb8b35f3 (patch)
tree29c503113a86a3e3cfa9c15b1125b754ce25a7e6 /meta-oe/recipes-graphics/lxdm
parentc734b14e2b900fe5172cc80185f0cf8b7734d0e8 (diff)
downloadmeta-openembedded-c8a670fea52b8bd7c9a0476c82cb49bedb8b35f3.tar.gz
lxdm: update to latest sources and fixes
* /etc/lxdm/lxdm.conf was empty since out of tree build causing greeter not started * pam is now an option to configure - set it based upon distro feature * bash was added to RDEPENDS - it is required by /etc/lxdm/Xsession Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-graphics/lxdm')
-rw-r--r--meta-oe/recipes-graphics/lxdm/lxdm/0002-let-autotools-create-lxdm.conf.patch62
-rw-r--r--meta-oe/recipes-graphics/lxdm/lxdm_git.bb24
2 files changed, 75 insertions, 11 deletions
diff --git a/meta-oe/recipes-graphics/lxdm/lxdm/0002-let-autotools-create-lxdm.conf.patch b/meta-oe/recipes-graphics/lxdm/lxdm/0002-let-autotools-create-lxdm.conf.patch
new file mode 100644
index 000000000..43f542a31
--- /dev/null
+++ b/meta-oe/recipes-graphics/lxdm/lxdm/0002-let-autotools-create-lxdm.conf.patch
@@ -0,0 +1,62 @@
1From 0ea0329f2c19a43acdc8444fa89e233ba617973d Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
3Date: Mon, 6 Oct 2014 13:06:24 +0200
4Subject: [PATCH] let autotools create lxdm.conf
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9in out of tree builds lxdm.conf is empty
10
11Upstream-Status: submitted [1]
12
13[1] http://sourceforge.net/p/lxde/mailman/message/32901417/
14
15Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
16---
17 configure.ac | 1 +
18 data/Makefile.am | 5 -----
19 data/lxdm.conf.in | 2 +-
20 3 files changed, 2 insertions(+), 6 deletions(-)
21
22diff --git a/configure.ac b/configure.ac
23index f28c89a..a2fff5b 100644
24--- a/configure.ac
25+++ b/configure.ac
26@@ -183,6 +183,7 @@ AC_CONFIG_FILES([
27 data/PreReboot
28 data/PreShutdown
29 data/LoginReady
30+ data/lxdm.conf
31 ])
32 AC_CONFIG_FILES([data/lxdm], [chmod +x data/lxdm])
33 AC_OUTPUT
34diff --git a/data/Makefile.am b/data/Makefile.am
35index 9500da9..ad64b11 100644
36--- a/data/Makefile.am
37+++ b/data/Makefile.am
38@@ -1,8 +1,3 @@
39-FULL_LIBEXECDIR=$(libexecdir)
40-
41-lxdm.conf: lxdm.conf.in
42- cat lxdm.conf.in | sed 's,@FULL_LIBEXECDIR@,$(FULL_LIBEXECDIR),' > $@
43-
44 NULL=
45
46 sbin_SCRIPTS = lxdm
47diff --git a/data/lxdm.conf.in b/data/lxdm.conf.in
48index d93f280..6206262 100644
49--- a/data/lxdm.conf.in
50+++ b/data/lxdm.conf.in
51@@ -19,7 +19,7 @@
52 # skip_password=1
53
54 ## greeter used to welcome the user
55-greeter=@FULL_LIBEXECDIR@/lxdm-greeter-gtk
56+greeter=@libexecdir@/lxdm-greeter-gtk
57
58 [server]
59 ## arg used to start xserver, not fully function
60--
611.8.3.1
62
diff --git a/meta-oe/recipes-graphics/lxdm/lxdm_git.bb b/meta-oe/recipes-graphics/lxdm/lxdm_git.bb
index dc40fb2d3..a3dcc1bd2 100644
--- a/meta-oe/recipes-graphics/lxdm/lxdm_git.bb
+++ b/meta-oe/recipes-graphics/lxdm/lxdm_git.bb
@@ -5,14 +5,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
5SRC_URI = " \ 5SRC_URI = " \
6 git://lxde.git.sourceforge.net/gitroot/lxde/${BPN};branch=master \ 6 git://lxde.git.sourceforge.net/gitroot/lxde/${BPN};branch=master \
7 file://lxdm.conf \ 7 file://lxdm.conf \
8 file://lxdm-pam \ 8 ${@base_contains('DISTRO_FEATURES', 'pam', 'file://lxdm-pam file://lxdm-pam-debug', '', d)} \
9 file://lxdm-pam-debug \
10 ${@base_contains("DISTRO_TYPE", "debug", "", "file://0001-lxdm.conf.in-blacklist-root-for-release-images.patch",d)} \ 9 ${@base_contains("DISTRO_TYPE", "debug", "", "file://0001-lxdm.conf.in-blacklist-root-for-release-images.patch",d)} \
10 file://0002-let-autotools-create-lxdm.conf.patch \
11" 11"
12 12
13LXDM_PAM = "${@base_contains("DISTRO_TYPE", "debug", "lxdm-pam-debug", "lxdm-pam",d)}" 13SRCREV = "bf90ec7df5ff6745f703500c5792c344fbaef301"
14
15SRCREV = "07fb151a99ef99318b71f3de0afbba977b1e6267"
16PV = "0.5.0+git${SRCPV}" 14PV = "0.5.0+git${SRCPV}"
17PE = "1" 15PE = "1"
18 16
@@ -29,7 +27,9 @@ S = "${WORKDIR}/git"
29CFLAGS_append = " -fno-builtin-fork -fno-builtin-memset -fno-builtin-strstr " 27CFLAGS_append = " -fno-builtin-fork -fno-builtin-memset -fno-builtin-strstr "
30 28
31EXTRA_OECONF += "--enable-gtk3=no --enable-password=yes --with-x -with-xconn=xcb \ 29EXTRA_OECONF += "--enable-gtk3=no --enable-password=yes --with-x -with-xconn=xcb \
32 ${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/ --disable-consolekit', '--without-systemdsystemunitdir', d)}" 30 ${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/ --disable-consolekit', '--without-systemdsystemunitdir', d)} \
31 ${@base_contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)} \
32"
33 33
34do_configure_prepend() { 34do_configure_prepend() {
35 cp ${STAGING_DATADIR}/gettext/po/Makefile.in.in ${S}/po/ 35 cp ${STAGING_DATADIR}/gettext/po/Makefile.in.in ${S}/po/
@@ -48,10 +48,12 @@ do_compile_append() {
48do_install_append() { 48do_install_append() {
49 install -d ${D}${localstatedir}/lib/lxdm 49 install -d ${D}${localstatedir}/lib/lxdm
50 install -m 644 ${WORKDIR}/lxdm.conf ${D}${localstatedir}/lib/lxdm 50 install -m 644 ${WORKDIR}/lxdm.conf ${D}${localstatedir}/lib/lxdm
51 # ArchLinux version of pam config has the following advantages: 51 if ${@base_contains('DISTRO_FEATURES', 'pam', 'true', 'false', d)}; then
52 # * simple setup of passwordless login 52 # ArchLinux version of pam config has the following advantages:
53 # * in XFCE powerdown/restart enabled in logoff dialog 53 # * simple setup of passwordless login
54 install -m 644 ${WORKDIR}/${LXDM_PAM} ${D}${sysconfdir}/pam.d/lxdm 54 # * in XFCE powerdown/restart enabled in logoff dialog
55 install -m 644 ${WORKDIR}/${@base_contains("DISTRO_TYPE", "debug", "lxdm-pam-debug", "lxdm-pam",d)} ${D}${sysconfdir}/pam.d/lxdm
56 fi
55} 57}
56 58
57# make installed languages choosable 59# make installed languages choosable
@@ -68,7 +70,7 @@ done
68sed -i "s:last_langs=.*$:last_langs=$langs:g" $D${localstatedir}/lib/lxdm/lxdm.conf 70sed -i "s:last_langs=.*$:last_langs=$langs:g" $D${localstatedir}/lib/lxdm/lxdm.conf
69} 71}
70 72
71RDEPENDS_${PN} = "pam-plugin-loginuid setxkbmap" 73RDEPENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'pam', 'pam-plugin-loginuid', '', d)} setxkbmap bash"
72 74
73RPROVIDES_${PN} += "${PN}-systemd" 75RPROVIDES_${PN} += "${PN}-systemd"
74RREPLACES_${PN} += "${PN}-systemd" 76RREPLACES_${PN} += "${PN}-systemd"