[OE-core] [OE-Core][RESEND PATCH] rootfs-postcommands: Remove spaces before ; in -ROOTFS_..._COMMAND
Alex Kiernan
alex.kiernan at gmail.com
Sat Feb 8 19:49:48 UTC 2020
On Sat, Feb 8, 2020 at 1:25 PM Richard Purdie
<richard.purdie at linuxfoundation.org> wrote:
>
> 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 :/
>
Yeah, sorry...
I'll see if I can go and have a proper look at the underlying problem!
--
Alex Kiernan
More information about the Openembedded-core
mailing list