gitlab-ci: Install WINE from Debian testing
authorMichel Dänzer <mdaenzer@redhat.com>
Mon, 27 Apr 2020 10:42:58 +0000 (12:42 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 14 May 2020 12:54:09 +0000 (12:54 +0000)
Instead of a third-party repository which has proved unreliable at
times.

This pulls in glibc 2.30 from testing in the x86_build image, so we need
to update the x86_test-{gl,vk} images to match.

Acked-by: Andres Gomez <agomez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4851>

.gitlab-ci.yml
.gitlab-ci/container/obs-emulators-wine-debian.gpg.key [deleted file]
.gitlab-ci/container/x86_build.sh
.gitlab-ci/container/x86_test-gl.sh
.gitlab-ci/container/x86_test-vk.sh

index b2196cee5e915e533080c91d3cfcef742fae6533..0fb1b5cf8a950bfe64f566f5443561f1b57d6c4c 100644 (file)
@@ -146,13 +146,13 @@ x86_build:
 x86_test-gl:
   extends: x86_build
   variables:
-    FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-04-21"
+    FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-05-08"
 
 # Debian 10 based x86 test image for VK
 x86_test-vk:
   extends: x86_build
   variables:
-    FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-04-09"
+    FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-05-08"
 
 # Debian 9 based x86 build image (old LLVM)
 x86_build_old:
@@ -549,7 +549,7 @@ meson-s390x:
   script:
     # For unknown reasons "too many" installed i386 libraries cause qemu to
     # crash while executing llvm-config for s390x.
-    - apt-get purge -y winehq-stable
+    - apt-get purge -y wine32
     - apt-get autoremove -y --purge
     - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
     - .gitlab-ci/meson-build.sh
diff --git a/.gitlab-ci/container/obs-emulators-wine-debian.gpg.key b/.gitlab-ci/container/obs-emulators-wine-debian.gpg.key
deleted file mode 100644 (file)
index df8a06b..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
------BEGIN PGP PUBLIC KEY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b49435dbc4622a371368c056f..87d1b93b47ff8f7a0dc658d265c0212c680a3422 100644 (file)
@@ -20,19 +20,6 @@ apt-get install -y \
 apt-key add .gitlab-ci/container/llvm-snapshot.gpg.key
 echo "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-9 main" >/etc/apt/sources.list.d/llvm9.list
 
-# Upstream Wine (WineHQ) package repository. We use the OBS service
-# instead of the repository at the winehq.org domain because:
-#
-#   " The WineHQ packages for Debian 10 and later require libfaudio0
-#     as a dependency. Since the distro does not provide it for Debian
-#     10, users of that version can download libfaudio0 packages from
-#     the OBS. See https://forum.winehq.org/viewtopic.php?f=8&t=32192
-#     for details."
-#
-# As explained at https://wiki.winehq.org/Debian
-apt-key add .gitlab-ci/container/obs-emulators-wine-debian.gpg.key
-echo 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/ ./' >/etc/apt/sources.list.d/obs-emulators-wine-debian.list
-
 sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list
 echo 'deb https://deb.debian.org/debian buster-backports main' >/etc/apt/sources.list.d/backports.list
 echo 'deb https://deb.debian.org/debian testing main' >/etc/apt/sources.list.d/testing.list
@@ -142,8 +129,21 @@ apt-get install -y --no-remove -t buster-backports \
 # for 64bit windows cross-builds
 apt-get install -y --no-remove \
       libz-mingw-w64-dev \
-      mingw-w64 \
-      winehq-stable
+      mingw-w64
+
+
+# Install packages we need from Debian testing last, to avoid pulling in more
+
+# Need to allow removing libgcc1 for these
+apt-get install -y -t testing \
+      libstdc++6:i386 \
+      libstdc++6:ppc64el \
+      libstdc++6:s390x
+
+apt-get install -y --no-remove -t testing \
+      wine \
+      wine32 \
+      wine64
 
 
 . .gitlab-ci/container/container_pre_build.sh
index 1114059053a57c2ff384450c8a5a2f395aa5a676..a8220df0ec40f026d13ae4b0a2676ccf7a66f8df 100644 (file)
@@ -14,15 +14,15 @@ apt-key add .gitlab-ci/container/llvm-snapshot.gpg.key
 echo "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-9 main" >/etc/apt/sources.list.d/llvm9.list
 
 sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list
-echo 'deb https://deb.debian.org/debian buster-backports main' >/etc/apt/sources.list.d/backports.list
+echo 'deb https://deb.debian.org/debian testing main' >/etc/apt/sources.list.d/testing.list
 
 apt-get update
 
-# Use newer packages from backports by default
+# Don't use newer packages from testing by default
 cat >/etc/apt/preferences <<EOF
 Package: *
-Pin: release a=buster-backports
-Pin-Priority: 500
+Pin: release a=testing
+Pin-Priority: 100
 EOF
 
 apt-get dist-upgrade -y
@@ -78,6 +78,11 @@ apt-get install -y --no-remove \
       xz-utils \
       zlib1g
 
+# Install packages we need from Debian testing last, to avoid pulling in more
+apt-get install -y -t testing \
+      libc6-dev
+
+
 . .gitlab-ci/container/container_pre_build.sh
 
 ############### Build virglrenderer
index c88199b42bfaca2dcfecf6fdd4d0390af41ed25a..455506d2972a0b33da08da5def7e020c08e524ce 100644 (file)
@@ -14,10 +14,17 @@ apt-key add .gitlab-ci/container/llvm-snapshot.gpg.key
 echo "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-9 main" >/etc/apt/sources.list.d/llvm9.list
 
 sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list
-echo 'deb https://deb.debian.org/debian buster-backports main' >/etc/apt/sources.list.d/backports.list
+echo 'deb https://deb.debian.org/debian testing main' >/etc/apt/sources.list.d/testing.list
 
 apt-get update
 
+# Don't use newer packages from testing by default
+cat >/etc/apt/preferences <<EOF
+Package: *
+Pin: release a=testing
+Pin-Priority: 100
+EOF
+
 apt-get dist-upgrade -y
 
 apt-get install -y --no-remove \
@@ -74,6 +81,11 @@ apt-get install -y --no-remove \
       wine32 \
       wine64
 
+# Install packages we need from Debian testing last, to avoid pulling in more
+apt-get install -y -t testing \
+      libc6-dev
+
+
 ############### Set up Wine env variables
 
 export WINEDEBUG="-all"