Skip to content

Commit da25e20

Browse files
committed
[dbus-broker] bring rustc and bindgen
to make it compile with bus1/dbus-broker#399
1 parent 20a387d commit da25e20

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

projects/dbus-broker/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
#
1515
################################################################################
1616

17-
FROM gcr.io/oss-fuzz-base/base-builder
17+
FROM gcr.io/oss-fuzz-base/base-builder-rust
1818
RUN git clone --depth 1 https://github.com/bus1/dbus-broker
19+
RUN cargo install bindgen-cli
1920
WORKDIR dbus-broker
2021
COPY *.c build.sh $SRC/

projects/dbus-broker/build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ apt-get update -y
3737

3838
if [[ "$ARCHITECTURE" == i386 ]]; then
3939
apt-get install -y pkg-config:i386
40+
41+
RUST_TARGET=i686-unknown-linux-gnu
42+
rustup target add "$RUST_TARGET"
43+
export RUSTC="rustc --target=$RUST_TARGET"
4044
else
4145
apt-get install -y pkg-config
4246
fi

0 commit comments

Comments
 (0)