From 9b25801f4563dc0f190d9c8ba9c8a0715f66aa08 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Wed, 5 Aug 2020 15:49:30 +0200 Subject: Set CFLAGS="-O0" when cross-compiling lxml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I57ae3a76d1838ccde2699a1a206487079c7f2fae Signed-off-by: Cédric Ollivier --- docker/core/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker/core/Dockerfile b/docker/core/Dockerfile index 58389734..d8f1672e 100644 --- a/docker/core/Dockerfile +++ b/docker/core/Dockerfile @@ -6,6 +6,11 @@ ARG OPENSTACK_TAG=master RUN apk --no-cache add --update python3 py3-pip bash git mailcap libxml2 libxslt && \ apk --no-cache add --virtual .build-deps --update \ python3-dev build-base libxml2-dev libxslt-dev && \ + case $(uname -m) in aarch*|arm*) CFLAGS="-O0" \ + pip3 install --no-cache-dir \ + -chttps://opendev.org/openstack/requirements/raw/branch/$OPENSTACK_TAG/upper-constraints.txt \ + -chttps://git.opnfv.org/functest-xtesting/plain/upper-constraints.txt?h=$BRANCH \ + lxml && \ git init /src/functest-xtesting && \ (cd /src/functest-xtesting && \ git fetch --tags https://gerrit.opnfv.org/gerrit/functest-xtesting $BRANCH && \ -- cgit 1.2.3-korg