Skip to content

Commit 23c9369

Browse files
authored
fix(android): pin injected openssl to <=0.10.78 for rustc 1.71 (#19)
openssl 0.10.79 bumped MSRV to 1.80, breaking the Android build which uses rustc 1.71.0. Cap the injected vendored-openssl version at 0.10.78 (MSRV 1.70) in both the release workflow and the local build script.
1 parent 8f96d00 commit 23c9369

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
ANDROID_NDK_ROOT: /opt/android-ndk-r28
7878
run: |
7979
cd src/serai/hrf
80-
sed -i 's/\[dependencies\]/[dependencies]\nopenssl = { version = "0.10", features = ["vendored"] }/' Cargo.toml
80+
sed -i 's/\[dependencies\]/[dependencies]\nopenssl = { version = "<=0.10.78", features = ["vendored"] }/' Cargo.toml
8181
cargo +1.71.0 ndk --target ${{ matrix.target }} --platform 21 build --release
8282
cp ../target/${{ matrix.target }}/release/libhrf_api.so \
8383
../../../frostdart-android-${{ matrix.abi }}.so

scripts/android/build_all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ cd build/serai/hrf || exit
4343

4444
# inject vendored openssl required for android cross compilation
4545
sed -i "s/\[dependencies\]/\[dependencies\]\\
46-
openssl = { version = \"0.10\", features = [\"vendored\"] }/" Cargo.toml
46+
openssl = { version = \"<=0.10.78\", features = [\"vendored\"] }/" Cargo.toml
4747

4848
rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android
4949
cargo ndk \

0 commit comments

Comments
 (0)