Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

format-patch: correctly set UMPF_VERSION with --bb #39

Merged
merged 2 commits into from
Mar 16, 2024

Conversation

rohieb
Copy link
Contributor

@rohieb rohieb commented Mar 14, 2024

When exporting with --bb, UMPF_VERSION is taken from ${STATE}/version, but this file is never written when we don't set STABLE for the "version" branch of parse(). Additionally, the version must be parsed back from the input series, otherwise it will always be initialised to "-1", with the result that UMPF_VERSION always ends in "-1" even when format-patch'ing an umpf that was built with -v2 or greater.

Update the test case with an appropriate tag name.

Fixes: 8d0d4cc (2024-03-06, "umpf: output version infos to bitbake variables during format-patch")

@rohieb rohieb force-pushed the fopa-bb-umpf-version branch 2 times, most recently from 98a0779 to de5cc6a Compare March 14, 2024 23:52
@rohieb rohieb requested review from pH5 and ejoerns March 14, 2024 23:53
@rohieb rohieb force-pushed the fopa-bb-umpf-version branch from de5cc6a to ad57f40 Compare March 15, 2024 00:22
When format-patch'ing a series for bitbake, UMPF_VERSION is taken from
${STATE}/version, but this file is never written when we don't set
STABLE for the "version" branch of parse(). Additionally, the version
must be parsed back from the input series in that case, otherwise it
will always be initialised to "-1", with the result that UMPF_VERSION
always ends in "-1" even when format-patch'ing an umpf that was built
with '-v2' or greater.

Update the test case with an appropriate tag name.

Fixes: 8d0d4cc (2024-03-06, "umpf: output version infos to bitbake variables during format-patch")
Signed-off-by: Roland Hieber <[email protected]>
@rohieb rohieb force-pushed the fopa-bb-umpf-version branch from ad57f40 to fd6a82b Compare March 16, 2024 10:07
In case of ${STABLE}, the version line comes from a previous utag, which
means it was written by umpf itself using ${VERSION_SEPARATOR}, which
was previously hard-coded as "-". Use it also when parsing back the
version.

Fixes: a864fe6 (2023-04-20, "umpf: split off VERSION_SEPARATOR from VERSION")
Signed-off-by: Roland Hieber <[email protected]>
@rohieb rohieb force-pushed the fopa-bb-umpf-version branch from fd6a82b to 919b0e0 Compare March 16, 2024 10:08
Copy link
Member

@michaelolbrich michaelolbrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now. Thanks!

@michaelolbrich michaelolbrich merged commit 7402e07 into pengutronix:master Mar 16, 2024
2 checks passed
@rohieb rohieb deleted the fopa-bb-umpf-version branch March 17, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants