Skip to content

libretro-holani: fix vendored checksum patch for cargo 1.97 - #17299

Closed
MastaG wants to merge 1 commit into
batocera-linux:masterfrom
MastaG:rust-1.97.1-clean-build
Closed

MastaG wants to merge 1 commit into
batocera-linux:masterfrom
MastaG:rust-1.97.1-clean-build

Conversation

@MastaG

@MastaG MastaG commented Nov 6, 2026

Copy link
Copy Markdown

Summary

Fix libretro-holani failing to patch with cargo >= 1.97 (see batocera-linux/buildroot#1215).

001-fix-build-with-clang-22.patch modified libretro.h and also rewrote the whole one-line VENDOR/libretro-rs-ffi/.cargo-checksum.json to update the header's checksum. Cargo 1.97 added a $comment key to that file, so the second hunk no longer applies:

patching file VENDOR/libretro-rs-ffi/.cargo-checksum.json
Hunk #1 FAILED at 1.

The patch now only touches libretro.h, and a POST_PATCH_HOOK updates the checksum with sed. It doesn't depend on the layout of the json, so it works with both the old and new cargo vendoring output.

Testing

  • Full clean build for rk3326 with rust 1.97.1 completed.
  • Checked that the patched libretro.h hashes to the value the hook writes (220bd363...).

https://claude.ai/code/session_012SzrKCG5QK38mhxCGtiGQR

Cargo 1.97 added a $comment key to .cargo-checksum.json, so the patch
that rewrote the whole one-line file no longer applies. Patch only
libretro.h and update its checksum with sed in a post-patch hook, which
does not depend on the layout of the json file.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012SzrKCG5QK38mhxCGtiGQR
@dmanlfc dmanlfc added the 45 label Nov 7, 2026
@dmanlfc

dmanlfc commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

As per the buildroot comment, we don't need this upgrade yet and no changes will be considered to the build system until v45. This is not a bug that requires our attention for v44.

@MastaG MastaG closed this Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants