From cfa88a53355574647694de3070278c110606d351 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 13 May 2020 14:59:37 +0200 Subject: [PATCH] gitlab-ci: fix binfmt support for focal to run apksigner This manually mounts the binfmt_misc dir if its not present. It seems the Ubuntu/focal release stopped auto-mounting binfmt_misc: https://bugs.launchpad.net/binfmt-support/+bug/1878413 --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3832c933..a7d00a05 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -92,8 +92,10 @@ ubuntu_lts_ppa: - echo "deb http://ppa.launchpad.net/fdroid/fdroidserver/ubuntu $RELEASE main" >> /etc/apt/sources.list - apt-get update - apt-get dist-upgrade + - mount | grep binfmt_misc || mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc - apt-get install --install-recommends binfmt-support fdroidserver git python3-defusedxml python3-setuptools - - grep binfmt /proc/modules || apt -qy purge apksigner + - ls -l /proc/sys/fs/binfmt_misc || true + - test -e /proc/sys/fs/binfmt_misc/jarwrapper || apt -qy purge apksigner - cd tests - ./run-tests