systemd.bbclass: enhance checks for SYSTEMD_PACKAGES and SYSTEMD_SERVICE
authorAndreas Müller <schnitzeltony@googlemail.com>
Thu, 16 Feb 2012 02:02:56 +0000 (02:02 +0000)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:18:43 +0000 (08:18 -0800)
commitb9c6161ff07d92c858549560599c303e8360a916
tree9cb50061422a4009fe9b40848c8c5dddc8eb4f41
parent4e5421a401580aec482a5b4fb8ebc0d1f7ce42e3
systemd.bbclass: enhance checks for SYSTEMD_PACKAGES and SYSTEMD_SERVICE

after recipe parsing the following plausibilities are checked:
* ERROR if empty SYSTEMD_PACKAGES
* ERROR if SYSTEMD_PACKAGES entry does not contain '-systemd' AND
  package_name != ${PN}
* ERROR if SYSTEMD_PACKAGES entry contains '-systemd' but entry without
  '-systemd' (base pkg) does not exist
* WARNING if SYSTEMD_PACKAGES containing ${PN} to force package maintainers to
  split out systemd-specific files into *-systemd
* error if SYSTEMD_SERVICE(_<systemd-package>) is empty for one or more entries
  in SYSTEMD_PACKAGES

The code in populate_packages_prepend to set SYSTEMD_PACKAGES to ${PN} as
default was removed.

(From meta-openembedded rev: 3502ef4afd1086fde15035a4a6ed0aab01d4a92c)

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-oe/classes/systemd.bbclass