pam.d: added system-auth configuration file
PATCH 1/9 pam.d: added system-auth configuration file
Needed by systemd when it starts user sessions.
--- meta/recipes-extended/pam/libpam/pam.d/system-auth | 7 +++++++ meta/recipes-extended/pam/libpam_1.1.6.bb | 1 + 2 files changed, 8 insertions(+) create mode 100644 meta/recipes-extended/pam/libpam/pam.d/system-auth
meta/recipes-extended/pam/libpam/pam.d/system-auth new file +7 -0
@@ -0,0 +1,7 @@ +auth required pam_env.so +auth sufficient pam_unix.so try_first_pass nullok +auth required pam_deny.so + +account required pam_unix.so + +session required pam_systemd.so
meta/recipes-extended/pam/libpam_1.1.6.bb +1 -0
@@ -16,6 +16,7 @@ SRC_URI = "http://linux-pam.org/library/Linux-PAM-${PV}.tar.bz2 \ file://pam.d/common-password \ file://pam.d/common-session \ file://pam.d/common-session-noninteractive \ + file://pam.d/system-auth \ file://pam.d/other \ file://libpam-xtests.patch \ file://destdirfix.patch \
Signature · 1 line
1.9.1
PATCH 2/9 user-session-units: added to oe-core
systemd needs this to launch user sessions.
--- ...temd-login-lib-was-merged-into-libsystemd.patch | 26 ++++++++++++++++++++++ .../user-session-units/user-session-units_9.bb | 25 +++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 meta/recipes-support/user-session-units/user-session-units/0001-systemd-login-lib-was-merged-into-libsystemd.patch create mode 100644 meta/recipes-support/user-session-units/user-session-units_9.bb
meta/recipes-support/user-session-units/user-session-units/0001-systemd-login-lib-was-merged-into-libsystemd.patch new file +26 -0
@@ -0,0 +1,26 @@ +From f80245dbdc5b29fe8dbe9b39482d41fbca044fe6 Mon Sep 17 00:00:00 2001 +From: Valentin Popa <[email protected]> +Date: Mon, 26 May 2014 10:04:13 +0300 +Subject: [PATCH] systemd-login lib was merged into libsystemd + +Signed-off-by: Valentin Popa <[email protected]> +--- + Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.am b/Makefile.am +index a2f960c..7186b10 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -21,7 +21,7 @@ user_session_launch_SOURCES = \ + + # FIXME: add pkgconfig checks for these instead + user_session_launch_LDADD = \ +- -lsystemd-login \ ++ -lsystemd \ + -lpam \ + -lpam_misc + +-- +1.9.1 +
meta/recipes-support/user-session-units/user-session-units_9.bb new file +25 -0
@@ -0,0 +1,25 @@ +SUMMARY = "systemd units to start a user session" + +LICENSE = "LGPLv2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" + +SRC_URI = "http://foo-projects.org/~sofar/${BPN}/${BPN}-${PV}.tar.gz \ + file://0001-systemd-login-lib-was-merged-into-libsystemd.patch " + +SRC_URI[md5sum] = "30d26fec6e3e221072c59554c93ecde0" +SRC_URI[sha256sum] = "edfc0df890981708e1a09e8488bb91384b6739d76867d3fe2417b03265361717" + +DEPENDS = "systemd dbus libpam" + +inherit autotools pkgconfig + +# Seed configure so it doesn't look on the host host for gnome/xfce/etc. +EXTRA_OECONF = "ac_cv_prog_E_PROG= \ + ac_cv_prog_XFCE_PROG= \ + ac_cv_prog_XFWM_PROG= \ + ac_cv_prog_XBMC_PROG= \ + ac_cv_prog_GNOME_PROG= \ + ac_cv_prog_KDE_PROG= \ + ac_cv_prog_MYTH_PROG=" + +FILES_${PN} = "${systemd_unitdir}/ ${libdir}/systemd/user/ ${bindir}/"
Signature · 1 line
1.9.1
PATCH 3/9 image.bbclass: set the proper default target
In reply to Valentin PopaCheck also for "wayland" presence in DISTRO_FEATURES before creating default.target.
--- meta/classes/image.bbclass | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)
meta/classes/image.bbclass +11 -1
@@ -153,7 +153,6 @@ ROOTFS_POSTPROCESS_COMMAND =+ "write_image_manifest ; " # Set default postinst log file POSTINST_LOGFILE ?= "${localstatedir}/log/postinstall.log" # Set default target for systemd images -SYSTEMD_DEFAULT_TARGET ?= '${@bb.utils.contains("IMAGE_FEATURES", "x11-base", "graphical.target", "multi-user.target", d)}' ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("DISTRO_FEATURES", "systemd", "set_systemd_default_target; ", "", d)}' # some default locales
@@ -171,6 +170,17 @@ do_rootfs[cleandirs] += "${S}" # task, so that we have a single fakeroot context for the whole process. do_rootfs[umask] = "022" +def determine_default_target(d): + graphical_target = bb.utils.contains("IMAGE_FEATURES", "x11-base", True, False, d) or \ + bb.utils.contains("DISTRO_FEATURES", "wayland", True, False, d) + if graphical_target: + return "graphical.target" + else: + return "multi-user.target" + + +SYSTEMD_DEFAULT_TARGET ?= '${@determine_default_target(d)}' + # A hook function to support read-only-rootfs IMAGE_FEATURES # Currently, it only supports sysvinit system. read_only_rootfs_hook () {
Signature · 1 line
1.9.1
PATCH 4/9 weston-init: added systemd build logic
In reply to Valentin PopaHandle the case when systemd is in DISTRO_FEATURES.
--- meta/recipes-graphics/wayland/weston-init.bb | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-)
meta/recipes-graphics/wayland/weston-init.bb +16 -5
@@ -7,13 +7,24 @@ SRC_URI = "file://init" S = "${WORKDIR}" do_install() { - install -d ${D}/${sysconfdir}/init.d - install -m755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston + if ${@base_contains("DISTRO_FEATURES", "sysvinit", "true", "false", d)}; then + install -d ${D}/${sysconfdir}/init.d + install -m755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston + fi + + if ${@base_contains("DISTRO_FEATURES", "systemd", "true", "false", d)}; then + fi } inherit allarch update-rc.d -RDEPENDS_${PN} = "weston kbd" +RDEPENDS_${PN} = "weston \ + ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'kbd', '', d)} \ + ${@base_contains('DISTRO_FEATURES', 'systemd', 'user-session-units', '', d)} \ + " + +DEPENDS += "weston \ + ${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" -INITSCRIPT_NAME = "weston" -INITSCRIPT_PARAMS = "start 9 5 2 . stop 20 0 1 6 ." +INITSCRIPT_NAME = "${@base_contains('DISTRO_FEATURES', 'sysvinit', 'weston', '', d)}" +INITSCRIPT_PARAMS = "${@base_contains('DISTRO_FEATURES', 'sysvinit', 'start 9 5 2 . stop 20 0 1 6 .', '', d)}"
Signature · 1 line
1.9.1
PATCH 5/9 weston-init: add xuser and enable user-sesssion-launch
In reply to Valentin Popa(*) add xuser
(*) enable [email protected] for xuser (seat0-1000)
--- meta/recipes-graphics/wayland/weston-init.bb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
meta/recipes-graphics/wayland/weston-init.bb +8 -1
@@ -13,10 +13,12 @@ do_install() { fi if ${@base_contains("DISTRO_FEATURES", "systemd", "true", "false", d)}; then + install -d ${D}/${sysconfdir}/systemd/system/graphical.target.wants + ln -sf ${systemd_unitdir}/system/[email protected] ${D}/${sysconfdir}/systemd/system/graphical.target.wants/[email protected] fi } -inherit allarch update-rc.d +inherit allarch update-rc.d useradd RDEPENDS_${PN} = "weston \ ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'kbd', '', d)} \
@@ -28,3 +30,8 @@ DEPENDS += "weston \ INITSCRIPT_NAME = "${@base_contains('DISTRO_FEATURES', 'sysvinit', 'weston', '', d)}" INITSCRIPT_PARAMS = "${@base_contains('DISTRO_FEATURES', 'sysvinit', 'start 9 5 2 . stop 20 0 1 6 .', '', d)}" + +USERADD_PACKAGES = "${PN}" +USERADD_PARAM_${PN} = "--create-home \ + --groups video,tty,audio,input,weston-launch \ + --user-group xuser"
Signature · 1 line
1.9.1
PATCH 6/9 weston: consider --disable-compat-libs in systemd
In reply to Valentin PopaSince version 209 of systemd, libsystemd-login has been merged into libsystemd.so.
This patch handles the case when systemd is built without --enable-compat-libs (e.g. no libsystemd-login).
--- ...c-consider-disable-compat-libs-in-systemd.patch | 47 ++++++++++++++++++++++ meta/recipes-graphics/wayland/weston_1.5.0.bb | 3 +- 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-graphics/wayland/weston/0001-configure.ac-consider-disable-compat-libs-in-systemd.patch
meta/recipes-graphics/wayland/weston/0001-configure.ac-consider-disable-compat-libs-in-systemd.patch new file +47 -0
@@ -0,0 +1,47 @@ +From 2273fb9cfb978c0e0cbb877475462d72d85138da Mon Sep 17 00:00:00 2001 +From: Valentin Popa <[email protected]> +Date: Fri, 4 Jul 2014 16:11:19 +0300 +Subject: [PATCH] configure.ac: consider --disable-compat-libs in systemd + +Since version 209 of systemd, libsystemd-login has been merged +into libsystemd.so. + +http://lists.freedesktop.org/archives/systemd-devel/2014-February/017146.html + +This patch handles the case when systemd is built +without --enable-compat-libs (e.g. no libsystemd-login). + +Upstream-Status: Submitted [wayland-devel] + +Signed-off-by: Valentin Popa <[email protected]> +--- + configure.ac | 10 ++++++---- + 1 file changed, 6 insertions(+), 4 deletions(-) + +diff --git a/configure.ac b/configure.ac +index f55cea8..2638d8a 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -346,13 +346,15 @@ AS_IF([test "x$enable_resize_optimization" = "xyes"], + [AC_DEFINE([USE_RESIZE_POOL], [1], [Use resize memory pool as a performance optimization])]) + + PKG_CHECK_MODULES(SYSTEMD_LOGIN, [libsystemd-login >= 198], +- [have_systemd_login=yes], [have_systemd_login=no]) ++ [have_systemd_login_198=yes have_systemd_login_209=no], [ ++ PKG_CHECK_MODULES(SYSTEMD_LOGIN, [libsystemd >= 209], ++ [have_systemd_login_209=yes have_systemd_login_198=no], [have_systemd_login_209=no have_systemd_login_198=no]) ++]) ++AS_IF([test "x$have_systemd_login_198" = "xyes" -o "x$have_systemd_login_209" = "xyes"], ++ [have_systemd_login=yes], [have_systemd_login=no]) + AS_IF([test "x$have_systemd_login" = "xyes"], + [AC_DEFINE([HAVE_SYSTEMD_LOGIN], [1], [Have systemd-login])]) + AM_CONDITIONAL(HAVE_SYSTEMD_LOGIN, test "x$have_systemd_login" = "xyes") +- +-PKG_CHECK_MODULES(SYSTEMD_LOGIN_209, [libsystemd-login >= 209], +- [have_systemd_login_209=yes], [have_systemd_login_209=no]) + AS_IF([test "x$have_systemd_login_209" = "xyes"], + [AC_DEFINE([HAVE_SYSTEMD_LOGIN_209], [1], [Have systemd-login >= 209])]) + +-- +1.9.1 +
meta/recipes-graphics/wayland/weston_1.5.0.bb +2 -1
@@ -11,7 +11,8 @@ SRC_URI = "http://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \ file://disable-wayland-scanner-pkg-check.patch \ file://make-lcms-explicitly-configurable.patch \ file://make-libwebp-explicitly-configurable.patch \ -" + file://0001-configure.ac-consider-disable-compat-libs-in-systemd.patch" + SRC_URI[md5sum] = "8eb40d230efc2411f083c20656534780" SRC_URI[sha256sum] = "06388ba04ac79aa72d685cc1a8e646ddb2b8cfe11fcc742294f9addac48b7684"
Signature · 1 line
1.9.1
PATCH 7/9 user-session-units: use user-session-launch to spawn weston
In reply to Valentin PopaMake use of the pam setup made by user-session-launch and spawn weston in the same pam environment.
--- .../0001-Add-TTY_NUM-as-parameter.patch | 39 ++++++ .../0001-launcher.c-fork-weston.patch | 56 +++++++++ .../0001-set-tty-from-user-params.patch | 132 +++++++++++++++++++++ .../user-session-units/user-session-units_9.bb | 10 +- 4 files changed, 236 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-support/user-session-units/user-session-units/0001-Add-TTY_NUM-as-parameter.patch create mode 100644 meta/recipes-support/user-session-units/user-session-units/0001-launcher.c-fork-weston.patch create mode 100644 meta/recipes-support/user-session-units/user-session-units/0001-set-tty-from-user-params.patch
meta/recipes-support/user-session-units/user-session-units/0001-Add-TTY_NUM-as-parameter.patch new file +39 -0
@@ -0,0 +1,39 @@ +From 2bf6da4b283f3a04f1e1660028e54e88eca8f289 Mon Sep 17 00:00:00 2001 +From: Valentin Popa <[email protected]> +Date: Fri, 4 Jul 2014 20:15:11 +0300 +Subject: [PATCH] Add @TTY_NUM@ as parameter + +Add @TTY_NUM@ as parameter so we can +replace it from Makefile.am/configure.ac, +or directly from our recipe. + +Upstream-Status: Pending + +Signed-off-by: Valentin Popa <[email protected]> +--- + units/system/[email protected] | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/units/system/[email protected] b/units/system/[email protected] +index 77ec07c..bea084d 100644 +--- a/units/system/[email protected] ++++ b/units/system/[email protected] +@@ -2,9 +2,14 @@ + Description=User Session Launcher + After=systemd-user-sessions.service systemd-logind.service + Requires=systemd-logind.service [email protected] + + [Service] +-ExecStart=/usr/bin/user-session-launch %i ++ExecStart=/usr/bin/user-session-launch %i @TTY_NUM@ ++Environment=XDG_RUNTIME_DIR=/run/user/1000 ++StandardInput=tty ++StandardError=journal ++TTYPath=/dev/tty@TTY_NUM@ + + [Install] + WantedBy=graphical.target +-- +1.9.1 +
meta/recipes-support/user-session-units/user-session-units/0001-launcher.c-fork-weston.patch new file +56 -0
56 lines not on this page · raw message
meta/recipes-support/user-session-units/user-session-units/0001-set-tty-from-user-params.patch new file +132 -0
132 lines not on this page · raw message
meta/recipes-support/user-session-units/user-session-units_9.bb +9 -1
@@ -4,7 +4,10 @@ LICENSE = "LGPLv2.1" LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" SRC_URI = "http://foo-projects.org/~sofar/${BPN}/${BPN}-${PV}.tar.gz \ - file://0001-systemd-login-lib-was-merged-into-libsystemd.patch " + file://0001-systemd-login-lib-was-merged-into-libsystemd.patch \ + file://0001-launcher.c-fork-weston.patch \ + file://0001-set-tty-from-user-params.patch \ + file://0001-Add-TTY_NUM-as-parameter.patch " SRC_URI[md5sum] = "30d26fec6e3e221072c59554c93ecde0" SRC_URI[sha256sum] = "edfc0df890981708e1a09e8488bb91384b6739d76867d3fe2417b03265361717"
@@ -23,3 +26,8 @@ EXTRA_OECONF = "ac_cv_prog_E_PROG= \ ac_cv_prog_MYTH_PROG=" FILES_${PN} = "${systemd_unitdir}/ ${libdir}/systemd/user/ ${bindir}/" + + +do_configure_prepend() { + sed -i -e 's/@TTY_NUM@/1/' ${S}/units/system/[email protected] +}
Signature · 1 line
1.9.1
Re: [PATCH 2/9] user-session-units: added to oe-core
In reply to Valentin PopaQuoted 16 lines · Valentin Popa
systemd needs this to launch user sessions.
Signed-off-by Valentin Popa <[email protected]>--- ...temd-login-lib-was-merged-into-libsystemd.patch | 26 ++++++++++++++++++++++ .../user-session-units/user-session-units_9.bb | 25 +++++++++++++++++++++ 2 files changed, 51 insertions(+)create mode 100644
meta/recipes-support/user-session-units/user-session-units/0001-systemd-login-lib-was-merged-into-libsystemd.patchcreate mode 100644 meta/recipes-support/user-session-units/user-session-units_9.bbmeta/recipes-support/user-session-units/user-session-units/0001-systemd-login-lib-was-merged-into-libsystemd.patch new file +0
-0
meta/recipes-support/user-session-units/user-session-units/0001-systemd-login-lib-was-merged-into-libsystemd.patch line 5
Quoted 5 lines
meta/recipes-support/user-session-units/user-session-units/0001-systemd-login-lib-was-merged-into-libsystemd.patch new file +5
-0@@ -0,0 +1,26 @@ +From f80245dbdc5b29fe8dbe9b39482d41fbca044fe6 Mon Sep 17 00:00:00 2001 +From: Valentin Popa <[email protected]> +Date: Mon, 26 May 2014 10:04:13 +0300 +Subject: [PATCH] systemd-login lib was merged into libsystemd +
This patch file is missing an Upstream-Status tag
Sau!
Quoted 53 lines
meta/recipes-support/user-session-units/user-session-units/0001-systemd-login-lib-was-merged-into-libsystemd.patch new file +21
-0+Signed-off-by: Valentin Popa <[email protected]> +--- + Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.am b/Makefile.am +index a2f960c..7186b10 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -21,7 +21,7 @@ user_session_launch_SOURCES = \ + + # FIXME: add pkgconfig checks for these instead + user_session_launch_LDADD = \ +- -lsystemd-login \ ++ -lsystemd \ + -lpam \ + -lpam_misc + +-- +1.9.1 +meta/recipes-support/user-session-units/user-session-units_9.bb new file +25
-0@@ -0,0 +1,25 @@ +SUMMARY = "systemd units to start a user session" + +LICENSE = "LGPLv2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" + +SRC_URI = "http://foo-projects.org/~sofar/${BPN}/${BPN}-${PV}.tar.gz \ + file://0001-systemd-login-lib-was-merged-into-libsystemd.patch " + +SRC_URI[md5sum] = "30d26fec6e3e221072c59554c93ecde0" +SRC_URI[sha256sum] = "edfc0df890981708e1a09e8488bb91384b6739d76867d3fe2417b03265361717" + +DEPENDS = "systemd dbus libpam" + +inherit autotools pkgconfig + +# Seed configure so it doesn't look on the host host for gnome/xfce/etc. +EXTRA_OECONF = "ac_cv_prog_E_PROG= \ + ac_cv_prog_XFCE_PROG= \ + ac_cv_prog_XFWM_PROG= \ + ac_cv_prog_XBMC_PROG= \ + ac_cv_prog_GNOME_PROG= \ + ac_cv_prog_KDE_PROG= \ + ac_cv_prog_MYTH_PROG=" + +FILES_${PN} = "${systemd_unitdir}/ ${libdir}/systemd/user/ ${bindir}/"
PATCH v2 1/1 user-session-units: added to oe-core
In reply to Valentin Popasystemd needs this to launch user sessions.
--- ...temd-login-lib-was-merged-into-libsystemd.patch | 28 ++++++++++++++++++++++ .../user-session-units/user-session-units_9.bb | 25 +++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 meta/recipes-support/user-session-units/user-session-units/0001-systemd-login-lib-was-merged-into-libsystemd.patch create mode 100644 meta/recipes-support/user-session-units/user-session-units_9.bb
meta/recipes-support/user-session-units/user-session-units/0001-systemd-login-lib-was-merged-into-libsystemd.patch new file +28 -0
@@ -0,0 +1,28 @@ +From f80245dbdc5b29fe8dbe9b39482d41fbca044fe6 Mon Sep 17 00:00:00 2001 +From: Valentin Popa <[email protected]> +Date: Mon, 26 May 2014 10:04:13 +0300 +Subject: [PATCH] systemd-login lib was merged into libsystemd + +Upstream-Status: Pending + +Signed-off-by: Valentin Popa <[email protected]> +--- + Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.am b/Makefile.am +index a2f960c..7186b10 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -21,7 +21,7 @@ user_session_launch_SOURCES = \ + + # FIXME: add pkgconfig checks for these instead + user_session_launch_LDADD = \ +- -lsystemd-login \ ++ -lsystemd \ + -lpam \ + -lpam_misc + +-- +1.9.1 +
meta/recipes-support/user-session-units/user-session-units_9.bb new file +25 -0
@@ -0,0 +1,25 @@ +SUMMARY = "systemd units to start a user session" + +LICENSE = "LGPLv2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" + +SRC_URI = "http://foo-projects.org/~sofar/${BPN}/${BPN}-${PV}.tar.gz \ + file://0001-systemd-login-lib-was-merged-into-libsystemd.patch " + +SRC_URI[md5sum] = "30d26fec6e3e221072c59554c93ecde0" +SRC_URI[sha256sum] = "edfc0df890981708e1a09e8488bb91384b6739d76867d3fe2417b03265361717" + +DEPENDS = "systemd dbus libpam" + +inherit autotools pkgconfig + +# Seed configure so it doesn't look on the host host for gnome/xfce/etc. +EXTRA_OECONF = "ac_cv_prog_E_PROG= \ + ac_cv_prog_XFCE_PROG= \ + ac_cv_prog_XFWM_PROG= \ + ac_cv_prog_XBMC_PROG= \ + ac_cv_prog_GNOME_PROG= \ + ac_cv_prog_KDE_PROG= \ + ac_cv_prog_MYTH_PROG=" + +FILES_${PN} = "${systemd_unitdir}/ ${libdir}/systemd/user/ ${bindir}/"
Signature · 1 line
1.9.1
Re: [PATCH V2] user-session-units: added to oe-core
Quoted 53 lines · Valentin Popa
systemd needs this to launch user sessions.
Signed-off-by Valentin Popa <[email protected]>--- ...temd-login-lib-was-merged-into-libsystemd.patch | 28 ++++++++++++++++++++++ .../user-session-units/user-session-units_9.bb | 25 +++++++++++++++++++ 2 files changed, 53 insertions(+)create mode 100644
meta/recipes-support/user-session-units/user-session-units/0001-systemd-login-lib-was-merged-into-libsystemd.patchcreate mode 100644 meta/recipes-support/user-session-units/user-session-units_9.bbmeta/recipes-support/user-session-units/user-session-units/0001-systemd-login-lib-was-merged-into-libsystemd.patch new file +28
-0@@ -0,0 +1,28 @@ +From f80245dbdc5b29fe8dbe9b39482d41fbca044fe6 Mon Sep 17 00:00:00 2001 +From: Valentin Popa <[email protected]> +Date: Mon, 26 May 2014 10:04:13 +0300 +Subject: [PATCH] systemd-login lib was merged into libsystemd + +Upstream-Status: Pending + +Signed-off-by: Valentin Popa <[email protected]> +--- + Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.am b/Makefile.am +index a2f960c..7186b10 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -21,7 +21,7 @@ user_session_launch_SOURCES = \ + + # FIXME: add pkgconfig checks for these instead + user_session_launch_LDADD = \ +- -lsystemd-login \ ++ -lsystemd \ + -lpam \ + -lpam_misc + +-- +1.9.1 +meta/recipes-support/user-session-units/user-session-units_9.bb new file +3
-0@@ -0,0 +1,25 @@ +SUMMARY = "systemd units to start a user session" + +LICENSE = "LGPLv2.1"
meta/recipes-support/user-session-units/user-session-units_9.bb line 13
Quoted 10 lines
meta/recipes-support/user-session-units/user-session-units_9.bb new file +10
-0+LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" + +SRC_URI = "http://foo-projects.org/~sofar/${BPN}/${BPN}-${PV}.tar.gz \ + file://0001-systemd-login-lib-was-merged-into-libsystemd.patch " + +SRC_URI[md5sum] = "30d26fec6e3e221072c59554c93ecde0" +SRC_URI[sha256sum] = "edfc0df890981708e1a09e8488bb91384b6739d76867d3fe2417b03265361717" + +DEPENDS = "systemd dbus libpam" +
Will this project build without systemd? When attempting to build world without systemd enabled in DISTRO_FEATURES I get the following errors:
Quoted 10 lines
ERROR: Nothing PROVIDES 'systemd' (but
/home/sgw/yocto/poky/meta/recipes-support/user-session-units/user-session-units_9.bbDEPENDS on or otherwise requires it)
ERROR: systemd was skipped: 'systemd' not inDISTRO_FEATURES
ERROR: Nothing RPROVIDES 'user-session-units-dev' (but/home/sgw/yocto/poky/meta/recipes-support/user-session-units/user-session-units_9.bbRDEPENDS on or otherwise requires it)
ERROR: No eligible RPROVIDERs exist for 'user-session-units-dev'
NOTE: Runtime target 'user-session-units-dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['user-session-units-dev']
ERROR: Nothing RPROVIDES 'user-session-units' (but/home/sgw/yocto/poky/meta/recipes-support/user-session-units/user-session-units_9.bbRDEPENDS on or otherwise requires it)
ERROR: No eligible RPROVIDERs exist for 'user-session-units'
NOTE: Runtime target 'user-session-units' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['user-session-units']
Can you please look into this.
Sau!
Quoted 13 lines
meta/recipes-support/user-session-units/user-session-units_9.bb new file +12
-0+inherit autotools pkgconfig + +# Seed configure so it doesn't look on the host host for gnome/xfce/etc. +EXTRA_OECONF = "ac_cv_prog_E_PROG= \ + ac_cv_prog_XFCE_PROG= \ + ac_cv_prog_XFWM_PROG= \ + ac_cv_prog_XBMC_PROG= \ + ac_cv_prog_GNOME_PROG= \ + ac_cv_prog_KDE_PROG= \ + ac_cv_prog_MYTH_PROG=" + +FILES_${PN} = "${systemd_unitdir}/ ${libdir}/systemd/user/ ${bindir}/"