-
Notifications
You must be signed in to change notification settings - Fork 598
Patch python3 for CVE-2025-8194 [High]
#14691
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
Conversation
| Provides: python%{majmin_nodots} = %{version}-%{release} | ||
| %if %{with_check} | ||
|
|
||
| %if 0%{?with_check} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rpmspec was not able to parse the spec

-
Original:
%if %{with_check}- This condition is true if the macro
with_checkis defined and non-zero. Ifwith_checkis not defined, this can produce an error like it is creating right now when we are doing rpmspec parse.
- This condition is true if the macro
-
Changed to:
%if 0%{?with_check}0%{?with_check}safely expands to0ifwith_checkis not defined (so, false), or to the value ofwith_checkif it is defined (still works as before if set).- The
?in%{?with_check}means "use the value if defined, otherwise nothing." - Prefixing with
0ensures the macro always expands to a valid number (0/1), avoiding errors if undefined.
|
/azurepipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Kanishk Bansal <[email protected]>
0d41e22 to
7dcb78c
Compare
|
the patch applies cleanly w.r.t upstream patch python/cpython#137645 |
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Patch applies cleanly
- Security tag exists
- Release bump & Changelog
- Buddy Build
- No new ptest regression
Signed-off-by: @realsdx
Signed-off-by: Kanishk Bansal <[email protected]> Co-authored-by: Kanishk Bansal <[email protected]> (cherry picked from commit b174f1e)
|
Auto cherry-pick results: Auto cherry-pick pipeline run -> https://dev.azure.com/mariner-org/mariner/_build/results?buildId=944855&view=results |
Signed-off-by: Kanishk Bansal <[email protected]> Co-authored-by: Kanishk Bansal <[email protected]> (cherry picked from commit b174f1e)
Signed-off-by: Kanishk Bansal <[email protected]> Co-authored-by: Kanishk Bansal <[email protected]> (cherry picked from commit b174f1e)
Signed-off-by: Kanishk Bansal <[email protected]> Co-authored-by: Kanishk Bansal <[email protected]> (cherry picked from commit b174f1e)
Signed-off-by: Kanishk Bansal <[email protected]> Co-authored-by: Kanishk Bansal <[email protected]> (cherry picked from commit b174f1e)
Merge Checklist
All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)
*-staticsubpackages, etc.) have had theirReleasetag incremented../cgmanifest.json,./toolkit/scripts/toolchain/cgmanifest.json,.github/workflows/cgmanifest.json)./LICENSES-AND-NOTICES/SPECS/data/licenses.json,./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md,./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)*.signatures.jsonfilessudo make go-tidy-allandsudo make go-test-coveragepassSummary
What does the PR accomplish, why was it needed?
Change Log
Does this affect the toolchain?
YES
Associated issues
Links to CVEs
Test Methodology