On 5/15/26 18:22, Alexander Kanavin wrote:
On Fri, 15 May 2026 at 11:06, Chen Qi via lists.openembedded.org
<[email protected]> wrote:
I examined the error messages on autobuilder. The key part is:
upstream-stable-release-point.bbclass:18: SyntaxWarning: invalid escape 
sequence '\\.'\n  return '\\.'.join(stable_parts)\n

However, the actual codes are:
'\.'.join(stable_parts)

There seems to be an extra '\' there. Interestingly, even if I manually added 
an extra '\' to the codes, the test ('oe-selftest -r 
recipetool.RecipetoolAppendTests.test_recipetool_appendfile_add_bindir) still 
passed.

Could you please help me check how to reproduce this issue?
Hello Chen,

I'm not sure why you're not seeing this, but the fix is almost
certainly prefixing the string with r, e.g. making it a raw string.
Oe-core has had lots of similar fixes recently, e.g.:

https://git.openembedded.org/openembedded-core/commit/?id=24b0ba00d4f0b4d9834f7693ecb6032dfc534a80

Alex

Hi Alex,

The variable setting has no difference than the similar UPSTREAM_CHECK_REGEX/GITTAGREGEX.

e.g.,
meta/recipes-multimedia/speex/speexdsp_1.2.1.bb:UPSTREAM_CHECK_REGEX = "speexdsp-(?P<pver>\d+(\.\d+)+)\.tar" meta/recipes-multimedia/speex/speex_1.2.1.bb:UPSTREAM_CHECK_REGEX = "speex-(?P<pver>\d+(\.\d+)+)\.tar" meta/recipes-multimedia/gstreamer/gst-examples_1.28.2.bb:UPSTREAM_CHECK_GITTAGREGEX = "^(?P<pver>\d+\.(\d*[02468])+(\.\d+)+)" meta/recipes-multimedia/libtheora/libtheora_1.2.0.bb:UPSTREAM_CHECK_REGEX = "libtheora-(?P<pver>\d+(\.\d)+)\.(tar\.gz|tgz)"

In theory, if the UPSTREAM_STABLE_RELEASE_REGEX setting gets a warning, settings like above should also get warnings. Or am I missing something?

And in Yocto, we can't set variable like this:
VAR1 = r"abc"
This will result in parsing error.

I'm quite confused about this and any help is quite appreciated.

Regards,
Qi


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#237191): 
https://lists.openembedded.org/g/openembedded-core/message/237191
Mute This Topic: https://lists.openembedded.org/mt/119293054/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to