[oe] [meta-oe][meta-efl][PATCH 2/3] systemd.bbclass: fix postinst/rdepends generation for recipes with SYSTEMD_SERVICE (without _PN suffix)

Andreas Müller schnitzeltony at googlemail.com
Wed May 30 15:14:58 UTC 2012


On Wed, May 30, 2012 at 4:21 PM, Martin Jansa <martin.jansa at gmail.com> wrote:
> Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
> ---
>  meta-oe/classes/systemd.bbclass |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/meta-oe/classes/systemd.bbclass b/meta-oe/classes/systemd.bbclass
> index db35717..e895021 100644
> --- a/meta-oe/classes/systemd.bbclass
> +++ b/meta-oe/classes/systemd.bbclass
> @@ -201,7 +201,8 @@ python populate_packages_prepend () {
>        # run all modifications once when creating package
>        if os.path.exists('${D}'):
>                for pkg_systemd in d.getVar('SYSTEMD_PACKAGES', 1).split():
> -                       if d.getVar('SYSTEMD_SERVICE' + "_" + pkg_systemd, 1) and d.getVar('SYSTEMD_SERVICE' + "_" + pkg_systemd, 1).strip():
> +                       systemd_services = d.getVar('SYSTEMD_SERVICE' + "_" + pkg_systemd, 1) or d.getVar('SYSTEMD_SERVICE', 1)
> +                       if systemd_services and systemd_services.strip():
>                                systemd_generate_package_scripts(pkg_systemd)
>                                systemd_add_rdepends(pkg_systemd)
>                systemd_check_services()
> --
> 1.7.8.6
>
Two questions:

1. Did you see [1]?
2. What is that strip for?

Andreas




More information about the Openembedded-devel mailing list