Skip to content

[dbus-broker] bring rustc and bindgen #13299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions projects/dbus-broker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
#
################################################################################

FROM gcr.io/oss-fuzz-base/base-builder
RUN git clone --depth 1 https://github.com/bus1/dbus-broker
FROM gcr.io/oss-fuzz-base/base-builder-rust
RUN bash -c "git clone --depth 1 https://github.com/bus1/dbus-broker && cd dbus-broker && git fetch origin pull/399/head && git checkout FETCH_HEAD"
RUN cargo install bindgen-cli
WORKDIR dbus-broker
COPY *.c build.sh $SRC/
4 changes: 4 additions & 0 deletions projects/dbus-broker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ apt-get update -y

if [[ "$ARCHITECTURE" == i386 ]]; then
apt-get install -y pkg-config:i386

RUST_TARGET=i686-unknown-linux-gnu
rustup target add "$RUST_TARGET"
export RUSTC="rustc --target=$RUST_TARGET"
else
apt-get install -y pkg-config
fi
Expand Down
Loading