[OE-core] [PATCH 1/1] systemd: avoid parsing error when 'networkd' is enabled in PACKAGECONFIG
Dan McGregor
danismostlikely at gmail.com
Mon Mar 2 16:11:15 UTC 2015
On 2 March 2015 at 01:37, Chen Qi <Qi.Chen at windriver.com> wrote:
> If 'networkd' is enabled in PACKAGECONFIG, the do_install variable cannot
> be correctly expanded. Error message is like below.
>
> Failure expanding variable do_install: ShellSyntaxError: LexToken(Fi,'fi',0,0)
> followed by:
> LexToken(NEWLINE,'\n',0,0)
>
> This patch fixes the above problem.
>
> Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
> ---
> meta/recipes-core/systemd/systemd_219.bb | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-core/systemd/systemd_219.bb b/meta/recipes-core/systemd/systemd_219.bb
> index f245239..d785255 100644
> --- a/meta/recipes-core/systemd/systemd_219.bb
> +++ b/meta/recipes-core/systemd/systemd_219.bb
> @@ -169,7 +169,7 @@ do_install() {
> # this file is needed to exist if networkd is disabled but timesyncd is still in use since timesyncd checks it
> # for existence else it fails
> if [ -s ${D}${libdir}/tmpfiles.d/systemd.conf ]; then
> - ${@bb.utils.contains('PACKAGECONFIG', 'networkd', '', 'sed -i -e "\$ad /run/systemd/netif/links 0755 root root -" ${D}${libdir}/tmpfiles.d/systemd.conf', d)}
> + ${@bb.utils.contains('PACKAGECONFIG', 'networkd', ':', 'sed -i -e "\$ad /run/systemd/netif/links 0755 root root -" ${D}${libdir}/tmpfiles.d/systemd.conf', d)}
I did exactly this locally. Works fine.
> fi
> }
>
> --
> 1.9.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
More information about the Openembedded-core
mailing list