aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects/systemd
diff options
context:
space:
mode:
authorGravatar Zbigniew Jędrzejewski-Szmek <zjedrzej@redhat.com>2021-05-18 19:57:51 +0200
committerGravatar GitHub <noreply@github.com>2021-05-18 10:57:51 -0700
commite57df811fd668d0ca7a03d89fa082358d2b186ce (patch)
tree7d713ec9a937a932c2ba69bfdc3a4e6559faddb4 /projects/systemd
parentb7788b5655a3031fa741e9bf5ef4dce928104d48 (diff)
[systemd] use pip3 to install jinja2 (#5796)
It turns out that the system version of jinja2 is visible to the build script. From https://github.com/systemd/systemd/pull/19630#issuecomment-842983177: > On OSS-Fuzz (and CIFuzz) the latest version of Python is built from > scratch in the base-builder image. /usr/lib/python3/dist-packages > (where python3-jinja2 is installed by apt-get) isn't included in > PYTHONPATH there: > > ['', '/usr/local/lib/python38.zip', '/usr/local/lib/python3.8', '/usr/local/lib/python3.8/lib-dynload', '/usr/local/lib/python3.8/site-packages']
Diffstat (limited to 'projects/systemd')
-rw-r--r--projects/systemd/Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/projects/systemd/Dockerfile b/projects/systemd/Dockerfile
index a4d406d4..09369d2b 100644
--- a/projects/systemd/Dockerfile
+++ b/projects/systemd/Dockerfile
@@ -16,10 +16,10 @@
FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update &&\
- apt-get install -y gperf m4 gettext python3-pip python3-jinja2 \
+ apt-get install -y gperf m4 gettext python3-pip \
libcap-dev libmount-dev libkmod-dev \
pkg-config wget &&\
- pip3 install meson ninja
+ pip3 install meson ninja jinja2
RUN git clone --depth 1 https://github.com/systemd/systemd systemd
WORKDIR systemd
COPY build.sh $SRC/