[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-issues
Subject:    [Openembedded-issues] Bitbake error when parsing OE ostree recipe - incorrectly escaped characters?
From:       david.antliff () gmail ! com
Date:       2023-05-31 7:00:11
Message-ID: Groupsio.1.E3WL.1685516370094360617.5AEN () lists ! openembedded ! org
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


[Edited Message Follows]

*Sorry, I accidentally posted this in the wrong group (openembedded-devel) - this one \
seems more suitable.*

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.


[Attachment #5 (text/html)]

<p>[Edited Message Follows]</p>
<strong>Sorry, I accidentally posted this in the wrong group (openembedded-devel) - \
this one seems more suitable.</strong><br /><br />I have a strange issue with the \
meta-openembedded/meta-oe/recipes-extended/ostree/ostree_2022.5.bb recipe:<br /><br \
/> <pre><span class="s2"></span>$ bitbake -b ostree -c clean<br />...<br />WARNING: \
Exception during build_dependencies for oe_runconf<br />WARNING: Error during \
finalise of [snip]/meta-openembedded/meta-oe/recipes-extended/ostree/ostree_2022.5.bb<br \
/>ERROR: Command execution failed: Traceback (most recent call last):<br />&nbsp; \
File "[snip]/poky/bitbake/lib/bb/pysh/pyshlex.py", line 172, in _parse_squote<br \
/>&nbsp;&nbsp;&nbsp; pos = buf.index("'")<br />ValueError: "'" is not in \
list<code></code></pre> This causes bitbake to crash whenever it tries to parse \
<em>all</em> recipes, e.g. during `bitbake -g`. I'm not specifically using this \
recipe, so it doesn't break my usual build for some reason.<br /><br />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:<br /><a \
href="http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-extended/ostree/ostree_2022.5.bb?h=langdale#n94" \
target="_blank" rel="nofollow \
noopener">http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-extended/ostree/ostree_2022.5.bb?h=langdale#n94</a><br \
/><br /> <pre><span class="s2">    ${@bb.utils.contains('PACKAGECONFIG', 'static', \
'--with-static-compiler=\'${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}\'', '', d)} \</span> \
<span class="s2">"</span><code></code></pre> <br />My locale is LANG=en_US.UTF-8. \
Bitbake version is 2.2.0.<br /><br />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.



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12298): https://lists.openembedded.org/g/Openembedded-issues/message/12298
Mute This Topic: https://lists.openembedded.org/mt/99237040/4455378
Group Owner: Openembedded-issues+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/Openembedded-issues/unsub [openembedded-issues@marc.info]
-=-=-=-=-=-=-=-=-=-=-=-



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic