On Tue, 12 May 2026 at 10:59, ChenQi <[email protected]> wrote:
> > - do not require that . separates the stable series and stable release
> > part (this will allow openssh to inherit the class)
>
> If we do not use '.' to separate stable parts and the other parts,
> recipe with version such as 1.2.3 will also match 1.21.
Yes :) I really had missed that problem.
> How about:
>
> UPSTREAM_STABLE_RELEASE_REGEX ?= "^${STABLE_VERSION_REGEX}(\.[^.]+)*$"
>
> This will match 261 as well as 261.1 but not some other unexpected versions.
>
> The regex starts to get a little complicated though.
>
> What do you think?
Maybe this:
UPSTREAM_STABLE_RELEASE_REGEX ?= "^${STABLE_VERSION_REGEX}(\.\d+)*$"
I.e. the suffix is zero or more ".number" components, and they must be
at the end of the version. This would match 261, and 261.12, and
261.1.2.3 but not 262 or 261alpha3.
Then openssh can inherit the class and set:
UPSTREAM_STABLE_RELEASE_REGEX = "^${STABLE_VERSION_REGEX}(p\d+)*$"
e.g replace . with p, as a separator.
Note: you can test various regexes, what they match and what they
don't here: https://regex101.com/
Alex
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#236873):
https://lists.openembedded.org/g/openembedded-core/message/236873
Mute This Topic: https://lists.openembedded.org/mt/119269484/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-