4 export DEBIAN_FRONTEND
=noninteractive
9 sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc
/apt
/sources.list
10 echo 'deb https://deb.debian.org/debian buster-backports main' >/etc
/apt
/sources.list.d
/backports.list
12 # Use newer packages from backports by default
13 cat >/etc
/apt
/preferences
<<EOF
15 Pin: release a=buster-backports
21 # Ephemeral packages (installed for this script and removed again at the end)
66 python3-pytest-timeout \
68 python3-requests-mock \
76 pip3
install pytest-pythonpath
77 pip3
install pytest-raises
79 # Download Waffle artifacts. See also
80 # https://gitlab.freedesktop.org/mesa/waffle/-/merge_requests/89
81 # https://docs.gitlab.com/ee/ci/pipelines/job_artifacts.html#downloading-the-latest-artifacts
82 for target
in mingw32 mingw64
84 mkdir
-p /opt
/waffle
/$target
85 curl
-s -L "https://gitlab.freedesktop.org/mesa/waffle/-/jobs/artifacts/${WAFFLE_BRANCH:-maint-1.7}/raw/publish/$target/waffle-$target.zip?job=cmake-mingw" -o /tmp
/waffle-
$target.
zip
86 unzip -qo /tmp
/waffle-
$target.
zip -d /opt
/waffle
/$target
87 test -d /opt
/waffle
/$target/waffle
88 rm /tmp
/waffle-
$target.
zip
92 # Debian buster has libdrm 2.4.97, which is too old
93 export LIBDRM_VERSION
=libdrm-2.4
.98
95 curl
-s -L "https://dri.freedesktop.org/libdrm/$LIBDRM_VERSION.tar.bz2" -o /tmp
/$LIBDRM_VERSION.
tar.bz2
96 tar -xvf /tmp
/$LIBDRM_VERSION.
tar.bz2
&& rm /tmp
/$LIBDRM_VERSION.
tar.bz2
98 meson build
-D vc4
=false
-D freedreno
=false
-D etnaviv
=false
99 ninja
-C build
install
101 rm -rf $LIBDRM_VERSION
104 apt-get purge
-y $EPHEMERAL
105 apt-get autoremove
-y --purge