Skip to content

Commit

Permalink
fix(host-rust): make it build
Browse files Browse the repository at this point in the history
Signed-off-by: Anhad Singh <[email protected]>
  • Loading branch information
Andy-Python-Programmer committed Mar 28, 2024
1 parent 028732c commit 0ca27da
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions build-support/rust/host-config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[patch.crates-io]
libc = { path = "/base_dir/sources/rust-libc" }
6 changes: 4 additions & 2 deletions host-recipes/rust
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ imagedeps="python git wget gcc"
allow_network="yes"

build() {
# Rust memes.
echo "Patching out rust memes..."
cp -rp "${source_dir}/." ./

CARGO_HOME=/tmp/cargo ./x.py build --stage 2 -j${parallelism}
mkdir /tmp/cargo
cp ${base_dir}/build-support/rust/host-config.toml /tmp/cargo/config.toml
CARGO_HOME=/tmp/cargo ./x.py build --stage 2 -j${parallelism} --verbose
}

package() {
Expand Down
4 changes: 2 additions & 2 deletions source-recipes/rust-libc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name=rust-libc
version=fe4e9cda46b0be8421b0f56df0b63b8c4dcaf5e6
version=cf112e9aab32267f6f92c519cb3ebe59f754059d
tarball_url="https://github.com/Andy-Python-Programmer/libc/archive/${version}.tar.gz"
tarball_blake2b="7a97d83784dfb6cdfd189d880f367facd2e06e43468248b41aa0239d3043172dfb508eca0209a7adb0ec12fda06887bfbdc37f41ebcb65b1a48967754c940b8f"
tarball_blake2b="74427da3af0c4c7fcd7b178d8084556e4a8e5f7707918d96612d05e3713255da4cc2a55626eacf31a7b7400deedb0df9433ca563bcac1714accfa37f55ed2bc0"

0 comments on commit 0ca27da

Please sign in to comment.