There is an updated pull request by classabbyamp against master on the void-packages repository https://github.com/classabbyamp/void-packages bindgen-fixes https://github.com/void-linux/void-packages/pull/36125 fix cross for packages with bindgen (rdedup, pijul), update rdedup, make libsodium-sys link dynamically ## **Don't merge until #35591 is merged** This is a bit of a combo PR, but all the changes are interlinked so hear me out: 1. #35591 introduces a change to `common/build_helper/rust.sh` that fixes `bindgen` when it's run at build-time in `build.rs`. This fix is included in this PR temporarily until that PR is merged. This should apply that fix to the two other packages I could find that use `bindgen` in the same way 2. There was an update available for `rdedup`, so that was applied 3. When applying the bindgen fix to `rdedup`, I found that `libsodium-sys` failed to find `libsodium`. From there, I found that `libsodium-sys` was attempting to statically link and failing. Upstream provided the solution, `SODIUM_SHARED=1` 4. `pijul` is the other package that can cleaned up because of the `bindgen` fix, and it also confirms that the `libsodium` fix works (there are no other packages that use `libsodium-sys` in the repos that I could find) #### Testing the changes - I tested the changes in this PR: **briefly** A patch file from https://github.com/void-linux/void-packages/pull/36125.patch is attached