-
Notifications
You must be signed in to change notification settings - Fork 417
python-3.13/3.13.4 package update #55227
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
octo-sts
bot
commented
Jun 3, 2025
🩹 Build Failed: Patch Application Failed
Build Details
Root Cause Analysis 🔍The patch could not be cleanly applied to the Lib/hashlib.py file. Specifically, hunk #3 at line 178 failed to apply. This is likely because the target file has changed since the patch was created, causing a context mismatch between the patch and the current file state. 🔍 Build failure fix suggestionsFound similar build failures that have been fixed in the past and analyzed them to suggest a fix: Suggested ChangesFile: CVE-2025-4516.patch
Replacement: Content: File: Melange YAML
Replacement: Content: Click to expand fix analysisAnalysisThe build failure occurs during the patch application step where one of the patches (likely CVE-2025-4516.patch) fails to apply cleanly to the Lib/hashlib.py file. Specifically, hunk #3 at line 178 failed to apply. This type of failure typically happens when the upstream source code has changed since the patch was created, causing context mismatches. The error "Hunk #3 FAILED at 178" indicates that the patch is trying to modify content around line 178, but the current content doesn't match what the patch expects. Click to expand fix explanationExplanationThe patch failure is occurring because the content of Lib/hashlib.py in Python 3.13.4 has changed since the CVE-2025-4516 patch was created. This is a common issue when maintaining patches against rapidly evolving upstream code. There are two main approaches to solve this:
The reason this error is occurring is that patches contain both the changes to be made AND context lines around those changes. When the context lines no longer match (because the upstream file has been modified), the patch tool cannot reliably determine where to apply the changes. For a proper fix, we need to examine both the current version of Lib/hashlib.py and the CVE-2025-4516.patch to determine exactly what changes need to be made, then either update the patch or implement those changes in a manual step. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
Signed-off-by: wolfi-bot <121097084+wolfi-bot@users.noreply.github.com>
b9f3a40 to
ef40d4f
Compare