Skip to content

fix: update libaom POSIX_C_SOURCE patch context for current CMakeLists.txt - #1224

Merged
crazywhalecc merged 1 commit into
crazywhalecc:mainfrom
dunglas:fix/libaom-posix-patch-context-main
Aug 5, 2026
Merged

fix: update libaom POSIX_C_SOURCE patch context for current CMakeLists.txt#1224
crazywhalecc merged 1 commit into
crazywhalecc:mainfrom
dunglas:fix/libaom-posix-patch-context-main

Conversation

@dunglas

@dunglas dunglas commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

libaom's main moved the aom_encoder_stats target from if(ENABLE_EXAMPLES) at CMakeLists.txt:269 to if(ENABLE_APPS) at line 312 (a CONFIG_HIGHWAY block got inserted above it). Since libaom_posix_implict.patch is applied with plain patch -p1 against a fresh git checkout of libaom's main, the hunk no longer matches and patch fails outright, aborting the whole build.

This breaks https://github.com/php/frankenphp CI on main/v2 (musl targets falling back to source build for libaom):

patching file CMakeLists.txt
Hunk #1 FAILED at 269.
1 out of 1 hunk FAILED -- saving rejects to file CMakeLists.txt.rej
✗ File system error: Cannot extract source libaom: Patch file [libaom_posix_implict.patch] failed to apply

Same root cause as #1223, which fixed this on v3 only. This backports the identical hunk-context update to main.

…s.txt

libaom's main moved the aom_encoder_stats target from
if(ENABLE_EXAMPLES) at CMakeLists.txt:269 to if(ENABLE_APPS) at
line 312, so the hunk no longer matches and patch fails outright,
breaking any build that falls back to a source build of libaom
(e.g. musl targets with no pre-built asset).

Same fix as crazywhalecc#1223, backported to main (v2); that one only landed on v3.
@crazywhalecc
crazywhalecc merged commit 0c10aa0 into crazywhalecc:main Aug 5, 2026
6 checks passed
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.

3 participants