[OE-core] [OE-Core][RESEND PATCH] rootfs-postcommands: Remove spaces before ; in -ROOTFS_..._COMMAND

Richard Purdie richard.purdie at linuxfoundation.org
Sat Feb 8 13:25:20 UTC 2020


On Thu, 2020-01-30 at 04:54 +0000, Alex Kiernan wrote:
> With spaces in ROOTFS_POSTPROCESS_COMMAND attempts to remove elements
> using ROOTFS_POSTPROCESS_COMMAND_remove causes parse failures of the
> form:
> 
>   bb.pysh.sherrors.ShellSyntaxError: LexToken(COMMA,';',0,0)
>   followed by:
>     LexToken(TOKEN,'write_image_test_data',0,0)
>     LexToken(COMMA,';',0,0)
>     LexToken(TOKEN,'set_systemd_default_target',0,0)
>     LexToken(COMMA,';',0,0)
>     LexToken(TOKEN,'systemd_create_users',0,0)
> 
> Removing the spaces between the function name and semicolon allows
> the list to parse correctly.
> 
> Signed-off-by: Alex Kiernan <alex.kiernan at gmail.com>
> ---
> 
>  meta/classes/rootfs-postcommands.bbclass | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

This does sound like you're working around a bug in shlex :/

Cheers,

Richard



More information about the Openembedded-core mailing list