* [PATCH 0/1] util-linux: better co-operate with systemd @ 2013-03-19 6:51 Qi.Chen 2013-03-19 6:51 ` [PATCH 1/1] " Qi.Chen 0 siblings, 1 reply; 5+ messages in thread From: Qi.Chen @ 2013-03-19 6:51 UTC (permalink / raw) To: openembedded-core; +Cc: qingtao.cao From: Chen Qi <Qi.Chen@windriver.com> The following changes since commit 87cfde2559daec564731c5c25df04eec27eaf7d5: syslinux.bbclass: Add a default serial console option and real boot menu support (2013-03-18 21:42:24 +0000) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/util-linux-systemd http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/util-linux-systemd Chen Qi (1): util-linux: better co-operate with systemd meta/recipes-core/util-linux/util-linux.inc | 8 ++++++++ meta/recipes-core/util-linux/util-linux_2.22.2.bb | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) -- 1.7.9.5 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/1] util-linux: better co-operate with systemd 2013-03-19 6:51 [PATCH 0/1] util-linux: better co-operate with systemd Qi.Chen @ 2013-03-19 6:51 ` Qi.Chen 2013-03-20 17:27 ` Burton, Ross 2013-03-20 18:13 ` Enrico Scholz 0 siblings, 2 replies; 5+ messages in thread From: Qi.Chen @ 2013-03-19 6:51 UTC (permalink / raw) To: openembedded-core; +Cc: qingtao.cao From: Chen Qi <Qi.Chen@windriver.com> util-linux upstream is now supporting systemd. So in case of a systemd based image, we add to EXTRA_OECONF '--with-systemdsystemunitdir' to specify the location of systemd unit files, and '--enable-socket-activation' to build uuidd with socket activation. Also, package systemd unit files into util-linux if systemd is in DISTRO_FEATURES. [YOCTO #4038] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> --- meta/recipes-core/util-linux/util-linux.inc | 8 ++++++++ meta/recipes-core/util-linux/util-linux_2.22.2.bb | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc index 41a5471..b62390a 100644 --- a/meta/recipes-core/util-linux/util-linux.inc +++ b/meta/recipes-core/util-linux/util-linux.inc @@ -46,8 +46,16 @@ EXTRA_OECONF = "--libdir=${base_libdir} --disable-use-tty-group \ usrsbin_execdir='${sbindir}' \ " +# Build uuidd with socket activation for systemd based images +EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd', '--enable-socket-activation', '', d)}" +# Specify systemdsystemunitdir for systemd based images +EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '', d)}" + EXTRA_OECONF_append_class-native = " --disable-login --disable-su" +# Package systemd unit files +FILES_${PN} += "${@base_contains('DISTRO_FEATURES', 'systemd', '${systemd_unitdir}/system/', '', d)}" + FILES_${PN}-doc += "${datadir}/getopt/getopt-*.*" FILES_util-linux-agetty = "${base_sbindir}/agetty" diff --git a/meta/recipes-core/util-linux/util-linux_2.22.2.bb b/meta/recipes-core/util-linux/util-linux_2.22.2.bb index 9b94a47..43a55a6 100644 --- a/meta/recipes-core/util-linux/util-linux_2.22.2.bb +++ b/meta/recipes-core/util-linux/util-linux_2.22.2.bb @@ -1,5 +1,5 @@ MAJOR_VERSION = "2.22" -PR = "r2" +PR = "r3" require util-linux.inc SRC_URI += "file://util-linux-ng-replace-siginterrupt.patch \ -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] util-linux: better co-operate with systemd 2013-03-19 6:51 ` [PATCH 1/1] " Qi.Chen @ 2013-03-20 17:27 ` Burton, Ross 2013-03-20 18:13 ` Enrico Scholz 1 sibling, 0 replies; 5+ messages in thread From: Burton, Ross @ 2013-03-20 17:27 UTC (permalink / raw) To: Qi.Chen; +Cc: qingtao.cao, openembedded-core On 19 March 2013 06:51, <Qi.Chen@windriver.com> wrote: > util-linux upstream is now supporting systemd. > > So in case of a systemd based image, we add to EXTRA_OECONF > '--with-systemdsystemunitdir' to specify the location of systemd unit > files, and '--enable-socket-activation' to build uuidd with socket > activation. > > Also, package systemd unit files into util-linux if systemd is in > DISTRO_FEATURES. I've merged a version of this to my systemd branch. Ross ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] util-linux: better co-operate with systemd 2013-03-19 6:51 ` [PATCH 1/1] " Qi.Chen 2013-03-20 17:27 ` Burton, Ross @ 2013-03-20 18:13 ` Enrico Scholz 2013-03-20 18:51 ` Burton, Ross 1 sibling, 1 reply; 5+ messages in thread From: Enrico Scholz @ 2013-03-20 18:13 UTC (permalink / raw) To: openembedded-core; +Cc: Qi.Chen-CWA4WttNNZF54TAoqtyWWQ <Qi.Chen-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org> writes: > So in case of a systemd based image, we add to EXTRA_OECONF > '--with-systemdsystemunitdir' to specify the location of systemd unit > files, and '--enable-socket-activation' to build uuidd with socket > activation. nak; this should go into an own subpackage: * the socket itself is broken: systemd tries to create the /var/uiidd/request socket which will fail on ro filesystems. It should be moved to a volatile location * util-linux contains lot of other programs which might be useful for other purposes; having a daemon which is activated silently is unwanted. Enrico ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] util-linux: better co-operate with systemd 2013-03-20 18:13 ` Enrico Scholz @ 2013-03-20 18:51 ` Burton, Ross 0 siblings, 0 replies; 5+ messages in thread From: Burton, Ross @ 2013-03-20 18:51 UTC (permalink / raw) To: Enrico Scholz; +Cc: openembedded-core On 20 March 2013 18:13, Enrico Scholz <enrico.scholz@sigma-chemnitz.de> wrote: > nak; this should go into an own subpackage: > > * the socket itself is broken: systemd tries to create the /var/uiidd/request > socket which will fail on ro filesystems. It should be moved to a > volatile location > > * util-linux contains lot of other programs which might be useful for > other purposes; having a daemon which is activated silently is unwanted. I should have said that's splitting into a separate package is one of the changes that I'd made. I didn't realise it was using a stupid location for the socket, I'll fix that up. Ross ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-03-20 19:08 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-03-19 6:51 [PATCH 0/1] util-linux: better co-operate with systemd Qi.Chen 2013-03-19 6:51 ` [PATCH 1/1] " Qi.Chen 2013-03-20 17:27 ` Burton, Ross 2013-03-20 18:13 ` Enrico Scholz 2013-03-20 18:51 ` Burton, Ross
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.