-
Notifications
You must be signed in to change notification settings - Fork 363
py3-aiohttp/3.12.0 package update #54257
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
py3-aiohttp/3.12.0 package update #54257
Conversation
octo-sts
bot
commented
May 24, 2025
Signed-off-by: wolfi-bot <[email protected]>
🩹 Build Failed: Patch Application Failed
Build Details
Root Cause Analysis 🔍The build is trying to apply a patch to unbundle llhttp dependency, but the patch cannot be applied cleanly to the source code. The patch for aiohttp/_cparser.pxd was detected as reversed or previously applied, and the patch for setup.py failed completely. 🔍 Build failure fix suggestionsFound similar build failures that have been fixed in the past and analyzed them to suggest a fix: Suggested ChangesFile: unbundle-llhttp.patch
Replacement:
Content:
File: setup.py
File: aiohttp/_cparser.pxd
Click to expand fix analysisAnalysisThe build failure is occurring because a patch named "unbundle-llhttp.patch" is failing to apply cleanly to the source code. The specific error indicates:
This suggests that the patch file was created for a previous version of aiohttp, but the package has been updated to version 3.12.0 where the file structure or content has changed. From the upstream changelog, we can see that in version 3.12.0, one of the changes was "Upgraded to LLHTTP 9.3.0", which is directly related to the unbundling effort in the patch. Click to expand fix explanationExplanationThe patch failure is occurring because the aiohttp package has been updated to version 3.12.0 with significant changes to how it integrates with llhttp. The patch that was previously used to unbundle llhttp is no longer compatible with the new source code structure. The changelog specifically mentions "Upgraded to LLHTTP 9.3.0" which indicates changes in the llhttp integration. Additionally, there's a packaging update that says "Added support for building against system llhttp library" which directly relates to what the unbundle-llhttp.patch is trying to accomplish. The most effective solution is to create a new patch file based on the current source code. Since aiohttp now officially supports building against system llhttp (via the AIOHTTP_USE_SYSTEM_DEPS environment variable mentioned in the changelog), the new patch should leverage this functionality rather than trying to manually modify the code in ways that might conflict with upstream changes. The new patch should:
This approach aligns with Wolfi's principle of building packages from source while keeping them up to date with upstream releases. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
Signed-off-by: Dentrax <[email protected]>