Skip to content

Commit 7e9e27f

Browse files
use CARGO_NET_GIT_FETCH_WITH_CLI for 32bits OS
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
1 parent 437f77d commit 7e9e27f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/build_gst.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,10 @@ python3 -m pip install --no-cache-dir "${GST_PIP_DEPENDENCIES[@]}"
297297
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
298298
# shellcheck source=/dev/null
299299
source "$HOME/.cargo/env"
300+
# Use system git instead of Cargo's built-in libgit2 for fetching dependencies.
301+
# libgit2 fails on 32-bit ARM (armv7) with "Value too large for defined data type"
302+
# when cloning large repositories like gstreamer-rs.
303+
export CARGO_NET_GIT_FETCH_WITH_CLI=true
300304
cargo install cargo-c
301305

302306
# Download and install IL headers if needed:

0 commit comments

Comments
 (0)