Skip to contentSkip to conversation

Bitbake error when parsing OE ostree recipe - incorrectly escaped characters?

DISCUSSION [email protected] 1 participant 1 message May 31, 2023

lore
Share & tools
lore
#0 lore raw

I have a strange issue with the meta-openembedded/meta-oe/recipes-extended/ostree/ostree_2022.5.bb recipe:

$ bitbake -b ostree -c clean
...
WARNING: Exception during build_dependencies for oe_runconf
WARNING: Error during finalise of [snip]/meta-openembedded/meta-oe/recipes-extended/ostree/ostree_2022.5.bb
ERROR: Command execution failed: Traceback (most recent call last):
  File "[snip]/poky/bitbake/lib/bb/pysh/pyshlex.py", line 172, in _parse_squote
    pos = buf.index("'")
ValueError: "'" is not in list This causes bitbake to crash whenever it tries to parse all recipes, e.g. during `bitbake -g`. I'm not specifically using this recipe, so it doesn't break my usual build for some reason.

From what I've been able to narrow down, the problem is with the escaped single-ticks around the parameters after --with-static-compiler= at line 94 in the recipe:
http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-extended/ostree/ostree_2022.5.bb?h=langdale#n94

${@bb.utils.contains('PACKAGECONFIG', 'static', '--with-static-compiler=\'${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}\'', '', d)} \
"
My locale is LANG=en_US.UTF-8. Bitbake version is 2.2.0.

What external or environmental factor could be causing this issue? There must be something unusual about my set-up, as it doesn't seem to be affecting anyone else.