@@ -55,6 +55,10 @@ matrix:
env: DISTRO=debian:oldstable
compiler: clang
+ - os: linux
+ env: DISTRO=opensuse/tumbleweed
+ compiler: gcc
+
- os: linux
env: DISTRO=opensuse/leap
compiler: gcc
@@ -80,7 +84,22 @@ matrix:
compiler: gcc
before_install:
- - df -hT
+ # Tumbleweed requires podman and newest runc due docker incompatible with glibc 2.33 (faccessat2)
+ - >
+ if [ "${DISTRO//*\/}" = "tumbleweed" ]; then
+ # podman
+ . /etc/os-release
+ sudo sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
+ wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_${VERSION_ID}/Release.key -O- | sudo apt-key add -
+ sudo apt update
+ sudo apt -y install podman
+ alias docker=podman
+
+ # runc
+ sudo curl -L https://github.com/opencontainers/runc/releases/download/v1.0.0-rc93/runc.amd64 -o /usr/bin/runc
+ sudo chmod +x /usr/bin/runc
+ fi
+
# pull rate limit workaround
- tmpdaemon=$(mktemp)
- sudo jq '."registry-mirrors" += ["https://mirror.gcr.io"]' /etc/docker/daemon.json > $tmpdaemon
@@ -88,11 +107,12 @@ before_install:
- sudo systemctl daemon-reload
- sudo systemctl restart docker
- docker system info
+
# ltp
- DIR="/usr/src/ltp"
- printf "FROM $DISTRO\nRUN mkdir -p $DIR\nWORKDIR $DIR\nCOPY . $DIR\n" > Dockerfile
- cat Dockerfile
- - docker build -t ltp .
+ - docker --runtime=/usr/bin/runc build -t ltp .
script:
- INSTALL="${DISTRO%%:*}"
@@ -100,4 +120,4 @@ script:
- if [ "$MAKE_INSTALL" = 1 ]; then INSTALL_OPT="-i"; fi
- if [ ! "$TREE" ]; then TREE="in"; fi
- case $VARIANT in cross-compile*) BUILD="cross";; i386) BUILD="32";; *) BUILD="native";; esac
- - docker run -t ltp /bin/sh -c "cd travis && ./$INSTALL.sh && if [ \"$VARIANT\" ]; then ARCH=\"$ARCH\" ./$INSTALL.$VARIANT.sh; fi && ../build.sh -o $TREE -t $BUILD -c $CC $INSTALL_OPT"
+ - docker --runtime=/usr/bin/runc run -t ltp /bin/sh -c "cd travis && ./$INSTALL.sh && if [ \"$VARIANT\" ]; then ARCH=\"$ARCH\" ./$INSTALL.$VARIANT.sh; fi && ../build.sh -o $TREE -t $BUILD -c $CC $INSTALL_OPT"
openSUSE Tumbleweed was temporarily removed in fbd46736d due faccessat2() incompatibility in libseccomp/runc used in old docker with old kernel on Ubuntu Focal on hosts in Travis CI together with guests with the newest glibc 2.33. Fixing Tumbleweed required switch to podman and downloading newest runc release (v1.0.0-rc93) which contains the fix [1], because proposed glibc fix [2] aren't going to merged to upstream [3] nor to Tumbleweed downstream glibc [4]. Sooner or later it will be required for more distros (Fedora, Debian Ubuntu), but don't waste time before required. [1] https://github.com/opencontainers/runc/pull/2750 [2] https://sourceware.org/pipermail/libc-alpha/2020-November/119955.html [3] https://sourceware.org/pipermail/libc-alpha/2020-November/119978.html [4] https://bugzilla.opensuse.org/1182451 Signed-off-by: Petr Vorel <pvorel@suse.cz> --- .travis.yml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-)