mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-30 21:54:16 +08:00
db2c14887b
The rootfs generation is failing due to issues with the deqp and crosvm build stages. == crosvm == This week, crates.io released the bindgen cargo package at version 0.61.0, but this version could not be installed via `cargo install bindgen ...`, setting the version to the previous one to avoid breaking the Mesa rootfs builds. See also related failed job: https://gitlab.freedesktop.org/gallo/mesa/-/jobs/30046963 == deqp == The deqp build is failing due to the missing archive of an old zlib release version, which was deleted due to a CVE, see zlib 1.2.13 release notes. As the deqp uprev to 1.3.4.0, which contains the fix, was not straightforward, let's only apply the necessary patch to fix zlib source code download link and then remove this indirection in an eventual deqp uprev. Example of a failed kernel+rootfs build job: https://gitlab.freedesktop.org/gallo/mesa/-/jobs/30045324 Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com> Reviewed-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19183>
42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
#!/bin/bash
|
|
# shellcheck disable=SC2086 # we want word splitting
|
|
|
|
set -ex
|
|
|
|
git config --global user.email "mesa@example.com"
|
|
git config --global user.name "Mesa CI"
|
|
|
|
CROSVM_VERSION=acd262cb42111c53b580a67355e795775545cced
|
|
git clone --single-branch -b main --no-checkout https://chromium.googlesource.com/crosvm/crosvm /platform/crosvm
|
|
pushd /platform/crosvm
|
|
git checkout "$CROSVM_VERSION"
|
|
git submodule update --init
|
|
|
|
VIRGLRENDERER_VERSION=3c5a9bbb7464e0e91e446991055300f4f989f6a9
|
|
rm -rf third_party/virglrenderer
|
|
git clone --single-branch -b master --no-checkout https://gitlab.freedesktop.org/virgl/virglrenderer.git third_party/virglrenderer
|
|
pushd third_party/virglrenderer
|
|
git checkout "$VIRGLRENDERER_VERSION"
|
|
meson build/ -Drender-server=true -Drender-server-worker=process -Dvenus-experimental=true $EXTRA_MESON_ARGS
|
|
ninja -C build install
|
|
popd
|
|
|
|
RUSTFLAGS='-L native=/usr/local/lib' cargo install \
|
|
bindgen \
|
|
-j ${FDO_CI_CONCURRENT:-4} \
|
|
--root /usr/local \
|
|
--version 0.60.1 \
|
|
$EXTRA_CARGO_ARGS
|
|
|
|
RUSTFLAGS='-L native=/usr/local/lib' cargo install \
|
|
-j ${FDO_CI_CONCURRENT:-4} \
|
|
--locked \
|
|
--features 'default-no-sandbox gpu x virgl_renderer virgl_renderer_next' \
|
|
--path . \
|
|
--root /usr/local \
|
|
$EXTRA_CARGO_ARGS
|
|
|
|
popd
|
|
|
|
rm -rf /platform/crosvm
|