From 6cd590c4ddd65c8f9572949370a822f6ea299efb Mon Sep 17 00:00:00 2001
From: Ludovico de Nittis <ludovico.denittis@collabora.com>
Date: Wed, 17 Feb 2021 10:21:28 +0100
Subject: [PATCH] gitlab-ci: Workaround archlinux issue by updating glibc to
 2.33-4

Remove this workaround once the docker image of archlinux ships glibc
2.33-4 by default. Currently it still uses the old 2.33-3.

Partially addresses: #57

Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>
---
 debian/gitlab-ci.yml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/debian/gitlab-ci.yml b/debian/gitlab-ci.yml
index b49b1e79a..22ce4defc 100644
--- a/debian/gitlab-ci.yml
+++ b/debian/gitlab-ci.yml
@@ -347,6 +347,14 @@ test:archlinux:
         - |
             set -eux
 
+            # Manually update to the latest glibc-2.33-4 to workaround the issue
+            # https://gitlab.steamos.cloud/steamrt/steam-runtime-tools/-/issues/57
+            # FIXME: remove this once it landed in the latest archlinux docker image
+            curl -LO "https://mirrors.kernel.org/archlinux/core/os/x86_64/glibc-2.33-4-x86_64.pkg.tar.zst"
+            curl -LO "https://mirrors.kernel.org/archlinux/core/os/x86_64/glibc-2.33-4-x86_64.pkg.tar.zst.sig"
+            gpg --homedir=/etc/pacman.d/gnupg --verify glibc-2.33-4-x86_64.pkg.tar.zst.sig
+            bsdtar -C / -xvf glibc-2.33-4-x86_64.pkg.tar.zst
+
             # Enable multilib repository
             echo -e "\n[multilib]\nInclude = /etc/pacman.d/mirrorlist" >> /etc/pacman.conf
 
-- 
GitLab