diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2014-10-07 08:49:45 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-10-10 12:47:35 +0200 |
commit | c8a670fea52b8bd7c9a0476c82cb49bedb8b35f3 (patch) | |
tree | 29c503113a86a3e3cfa9c15b1125b754ce25a7e6 /meta-oe/recipes-graphics/lxdm | |
parent | c734b14e2b900fe5172cc80185f0cf8b7734d0e8 (diff) | |
download | meta-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.patch | 62 | ||||
-rw-r--r-- | meta-oe/recipes-graphics/lxdm/lxdm_git.bb | 24 |
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 0000000000..43f542a31d --- /dev/null +++ b/meta-oe/recipes-graphics/lxdm/lxdm/0002-let-autotools-create-lxdm.conf.patch | |||
@@ -0,0 +1,62 @@ | |||
1 | From 0ea0329f2c19a43acdc8444fa89e233ba617973d Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com> | ||
3 | Date: Mon, 6 Oct 2014 13:06:24 +0200 | ||
4 | Subject: [PATCH] let autotools create lxdm.conf | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | in out of tree builds lxdm.conf is empty | ||
10 | |||
11 | Upstream-Status: submitted [1] | ||
12 | |||
13 | [1] http://sourceforge.net/p/lxde/mailman/message/32901417/ | ||
14 | |||
15 | Signed-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 | |||
22 | diff --git a/configure.ac b/configure.ac | ||
23 | index 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 | ||
34 | diff --git a/data/Makefile.am b/data/Makefile.am | ||
35 | index 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 | ||
47 | diff --git a/data/lxdm.conf.in b/data/lxdm.conf.in | ||
48 | index 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 | -- | ||
61 | 1.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 dc40fb2d3c..a3dcc1bd2f 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" | |||
5 | SRC_URI = " \ | 5 | SRC_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 | ||
13 | LXDM_PAM = "${@base_contains("DISTRO_TYPE", "debug", "lxdm-pam-debug", "lxdm-pam",d)}" | 13 | SRCREV = "bf90ec7df5ff6745f703500c5792c344fbaef301" |
14 | |||
15 | SRCREV = "07fb151a99ef99318b71f3de0afbba977b1e6267" | ||
16 | PV = "0.5.0+git${SRCPV}" | 14 | PV = "0.5.0+git${SRCPV}" |
17 | PE = "1" | 15 | PE = "1" |
18 | 16 | ||
@@ -29,7 +27,9 @@ S = "${WORKDIR}/git" | |||
29 | CFLAGS_append = " -fno-builtin-fork -fno-builtin-memset -fno-builtin-strstr " | 27 | CFLAGS_append = " -fno-builtin-fork -fno-builtin-memset -fno-builtin-strstr " |
30 | 28 | ||
31 | EXTRA_OECONF += "--enable-gtk3=no --enable-password=yes --with-x -with-xconn=xcb \ | 29 | EXTRA_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 | ||
34 | do_configure_prepend() { | 34 | do_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() { | |||
48 | do_install_append() { | 48 | do_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 | |||
68 | sed -i "s:last_langs=.*$:last_langs=$langs:g" $D${localstatedir}/lib/lxdm/lxdm.conf | 70 | sed -i "s:last_langs=.*$:last_langs=$langs:g" $D${localstatedir}/lib/lxdm/lxdm.conf |
69 | } | 71 | } |
70 | 72 | ||
71 | RDEPENDS_${PN} = "pam-plugin-loginuid setxkbmap" | 73 | RDEPENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'pam', 'pam-plugin-loginuid', '', d)} setxkbmap bash" |
72 | 74 | ||
73 | RPROVIDES_${PN} += "${PN}-systemd" | 75 | RPROVIDES_${PN} += "${PN}-systemd" |
74 | RREPLACES_${PN} += "${PN}-systemd" | 76 | RREPLACES_${PN} += "${PN}-systemd" |