File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ doecho source "${HOME}"/.cargo/env
1717
1818# install required libs on linux
1919install_pkgs () {
20- local -a packages=( clang )
20+ local -a packages=( clang git )
2121 # non-native targets require openssl headers to compile cargo-c
2222 if [[ ${HOSTTYPE} != " x86_64" ]]; then
2323 packages+=( openssl-devel )
@@ -53,17 +53,17 @@ elif [[ ${OSTYPE} == "darwin"* ]]; then
5353 fi
5454fi
5555
56+ # clone the pkgcraft repo from a specific tag or branch
57+ doecho git clone -b ${PKGCRAFT_C_REF:- main} --recurse-submodules https://github.com/pkgcraft/pkgcraft.git
58+
5659if [[ -n ${SOURCE_CARGO_C} ]]; then
5760 # avoid libgit2 usage due to memory problems when emulated under qemu
5861 # https://users.rust-lang.org/t/cargo-uses-too-much-memory-being-run-in-qemu/76531
59- cargo --config net.git-fetch-with-cli=true update
62+ doecho cargo --config net.git-fetch-with-cli=true update --manifest-path pkgcraft/Cargo.toml
6063
6164 # manually build cargo-c for arches without native binaries
62- cargo install cargo-c
65+ doecho cargo install cargo-c
6366fi
6467
65- # clone the pkgcraft repo from a specific tag or branch
66- git clone -b ${PKGCRAFT_C_REF:- main} --recurse-submodules https://github.com/pkgcraft/pkgcraft.git
67-
6868# build and install C library
6969doecho cargo cinstall --manifest-path pkgcraft/Cargo.toml -p pkgcraft-c --profile bundled
You can’t perform that action at this time.
0 commit comments