Skip to content

fix: PyNaCl bundled libsodium config for android#896

Closed
lggcs wants to merge 1 commit intopyca:mainfrom
lggcs:android
Closed

fix: PyNaCl bundled libsodium config for android#896
lggcs wants to merge 1 commit intopyca:mainfrom
lggcs:android

Conversation

@lggcs
Copy link

@lggcs lggcs commented Sep 23, 2025

Fixes PyNaCl wheel build failure on android hosts because Android/Bionic does not have these in it's libc.

On Android/Bionic these functions are not provided by libc (explicit_bzero, memset_s,
memset_explicit). This commit forces the configure cache variables for those functions to "no"
when building for Android, ensuring the generated config headers will not
advertise availability and the bundled libsodium will use its internal secure‑wipe
implementation fixing the build.

Fixes PyNaCl wheel build failure on android hosts because Android/Bionic does not have these in it's libc.
@alex
Copy link
Member

alex commented Sep 23, 2025

This file comes from the upstream libsodium and we do not modify it. You shoudl send this PR to them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments