Skip to content

Switch: regenerate the sqlite3 patch so it applies - #20

Merged
dorPXP merged 1 commit into
dorPXP:android-portfrom
TomasUribe:switch-sqlite3-patch
Nov 4, 2026
Merged

dorPXP merged 1 commit into
dorPXP:android-portfrom
TomasUribe:switch-sqlite3-patch

Conversation

@TomasUribe

Copy link
Copy Markdown
Contributor

sqlite3-nintendo-switch-platform.patch never applies. Its hunk headers don't match the hunk bodies, and on the pristine sqlite-amalgamation-3510300 that the build downloads, GNU patch stops with:

patch: **** malformed patch at line 17: @@ -46226,6 +46226,15 @@

The PATCH_COMMAND ends in || true, so the failure is hidden. On Switch this leaves HAVE_FCHOWN defined, and the link fails with undefined fchown / geteuid from sqlite's aSyscall table. The sdmc: path fix in unixFullPathname is also not applied.

I regenerated the patch with diff -u against that exact amalgamation. It has the same three changes and the same comments, only correct hunk headers and context. patch -p1 --dry-run now applies it cleanly, where the old file fails as above.

🤖 Generated with Claude Code

… it never applied)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dorPXP
dorPXP merged commit 9725ab6 into dorPXP:android-port Nov 4, 2026
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.

2 participants