summaryrefslogtreecommitdiff
path: root/.gitlab-ci/debian-install.sh
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@herrb.eu>2024-05-05 14:58:15 +0200
committerMatthieu Herrb <matthieu@herrb.eu>2024-05-05 14:58:15 +0200
commitd873aa20b4638a96a72696598dce4ceb2807c14a (patch)
tree037adaa693d86b74e5fc8367e76c96e988056614 /.gitlab-ci/debian-install.sh
parentc797ffa41b47056ad438bdd24cc00d017acce157 (diff)
parent8e5a43d2481cc5e31358f648e3e8adb1f4467dc1 (diff)
Merge remote-tracking branch 'origin/master' into obsd
Diffstat (limited to '.gitlab-ci/debian-install.sh')
-rw-r--r--.gitlab-ci/debian-install.sh20
1 files changed, 15 insertions, 5 deletions
diff --git a/.gitlab-ci/debian-install.sh b/.gitlab-ci/debian-install.sh
index 4e528588..f010cd0b 100644
--- a/.gitlab-ci/debian-install.sh
+++ b/.gitlab-ci/debian-install.sh
@@ -3,7 +3,7 @@
set -e
set -o xtrace
-echo 'deb-src https://deb.debian.org/debian buster main' >/etc/apt/sources.list.d/deb-src.list
+echo 'deb-src https://deb.debian.org/debian bookworm main' >/etc/apt/sources.list.d/deb-src.list
apt-get update
@@ -25,7 +25,7 @@ apt-get install -y --no-remove \
echo 'APT::Get::Build-Dep-Automatic "true";' >>/etc/apt/apt.conf
apt-get build-dep -y xorg-server
-
+# xserver 1.18 and older branches require libXfont 1.5 instead of 2.0
git clone https://gitlab.freedesktop.org/xorg/lib/libXfont.git
cd libXfont
git checkout libXfont-1.5-branch
@@ -40,16 +40,24 @@ cd xserver
for VERSION in 1.13 1.14 1.15; do
git checkout server-${VERSION}-branch
- ./autogen.sh --prefix=/usr/local/xserver-$VERSION --enable-dri2
+ # Workaround glvnd having reset the version in gl.pc from what Mesa used
+ # similar to xserver commit e6ef2b12404dfec7f23592a3524d2a63d9d25802
+ sed -i -e 's/gl >= [79].[12].0/gl >= 1.2/' configure.ac
+ ./autogen.sh --prefix=/usr/local/xserver-$VERSION --enable-dri2 --disable-dmx
make -C include install-nodist_sdkHEADERS
make install-headers install-aclocalDATA install-pkgconfigDATA clean
+ git restore configure.ac
done
-for VERSION in 1.16 1.17 1.18 1.19 1.20; do
+for VERSION in 1.16 1.17 1.18 1.19 1.20 21.1; do
git checkout server-${VERSION}-branch
- ./autogen.sh --prefix=/usr/local/xserver-$VERSION --enable-dri2 --enable-dri3 --enable-glamor
+ # Workaround glvnd having reset the version in gl.pc from what Mesa used
+ # similar to xserver commit e6ef2b12404dfec7f23592a3524d2a63d9d25802
+ sed -i -e 's/gl >= [79].[12].0/gl >= 1.2/' configure.ac
+ ./autogen.sh --prefix=/usr/local/xserver-$VERSION --enable-dri2 --enable-dri3 --enable-glamor --disable-dmx
make -C include install-nodist_sdkHEADERS
make install-headers install-aclocalDATA install-pkgconfigDATA clean
+ git restore configure.ac
done
cd ..
@@ -65,6 +73,8 @@ apt-get install -y --no-remove \
libpciaccess-dev \
libpixman-1-dev \
libudev-dev \
+ libxcvt-dev \
+ mesa-common-dev \
xutils-dev \
x11proto-dev