xserver/.github/scripts/install-prereq.sh
Enrico Weigelt, metux IT consult 5e0430ef2f
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
.github: fix XTS build on MacOS
For strange reasons, our MacOS build breaks old XTS code, due their
compiler suddenly not accepting old K&R style function declarations.
(weird: that happens only on the 25.0 release, not newer ones, even
they're using the same build hosts and XTS revisions).

Fixing this by adding a special hotfix branch on our XTS mirror,
where all old K&S style function declations have been converted
to modern ones.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-04-17 18:50:03 +02:00

25 lines
1 KiB
Shell
Executable file

#!/bin/bash
set -e
. .github/scripts/util.sh
mkdir -p $X11_BUILD_DIR
cd $X11_BUILD_DIR
build_meson rendercheck $(fdo_mirror rendercheck) rendercheck-1.6
if [ "$X11_OS" = "Linux" ]; then
build_meson drm $(fdo_mirror drm) libdrm-2.4.121 -Domap=enabled
fi
build_meson libxcvt $(fdo_mirror libxcvt) libxcvt-0.1.0
build_ac xorgproto $(fdo_mirror xorgproto) xorgproto-2024.1
if [ "$X11_OS" = "Darwin" ]; then
build_ac xset $(fdo_mirror xset) xset-1.2.5
fi
# really must be build via autoconf instead of meson, otherwise piglit wont find the test programs
build_ac_xts xts $(fdo_mirror xts) hotfix/for-macos-and-25.0
clone_source piglit $(fdo_mirror piglit) 28d1349844eacda869f0f82f551bcd4ac0c4edfe
echo '[xts]' > piglit/piglit.conf
echo "path=$X11_BUILD_DIR/xts" >> piglit/piglit.conf