Xlibre video drivers compiled in EasyOS
Here are the two previous blog posts:
- Xlibre input drivers compiled in EasyOS — June 05, 2026
- Xlibre server and drivers compiled in EasyOS — June 05, 2026
Here is the '3xvideo' script:
#!/bin/sh
mkdir -p video
export XLIBRE_SRC="$(pwd)"
export XLIBRE_BUILD="${XLIBRE_SRC}/build"
export XLIBRE_PREFIX="${XLIBRE_SRC}/image"
cd video
#fail, rem: qxl v4l
Vn="intel amdgpu voodoo siliconmotion vmware ati cirrus geode xgi savage ast r128 fbdev dummy chips trident sisusb s3virge rendition nouveau mach64 neomagic mga i128 i740 ark apm vesa nested"
for aV in ${Vn}
do
[ -z "$aV" ] && continue
[ -d xf86-video-${aV} ] && rm -rf xf86-video-${aV}
case "$aV" in
amdgpu)
#requires pkgs from stable-backports. hmmm, don't want that, get older..
Br="-b release/25.0"
;;
*) Br='' ;;
esac
git clone ${Br} https://github.com/X11Libre/xf86-video-${aV}.git --depth=1
sync
cd xf86-video-${aV}
if [ -x autogen.sh ];then
#hack so autogen.sh doesn't complain...
#note, tricky, to escape ] it has to be the first after ^ ...
[ -f configure.ac ] && sed -i 's%xorg-server >= [23456][^] ]*%xorg-server >= 21.0.0%' configure.ac
case "$aV" in
intel) Ex="--enable-sna --enable-uxa --with-default-accel=sna --enable-dri2 --enable-dri3 --with-default-dri=2 --enable-udev --enable-dga" ;;
amdgpu) Ex="--enable-udev" ;;
vmware) Ex="--with-libudev" ;;
qxl) Ex="--enable-udev --enable-xspice=no --enable-kms" ;;
ati) Ex="--enable-glamor --enable-udev" ;;
savage) Ex="--enable-dri" ;;
r128|mach64|mga) Ex="--enable-exa --enable-dri" ;;
vesa)
#compile fail, needs hacks...
grep -qF '<signal.h>' src/vesa.c
if [ $? -ne 0 ];then
sed -i 's%#include <fcntl.h>%#include <fcntl.h>\n#include <signal.h>%' src/vesa.c
fi
sed -i 's%std=c99%std=gnu99%' configure.ac
Ex=''
;;
*) Ex="" ;;
esac
NOCONFIGURE=1 ./autogen.sh
PKG_CONFIG_PATH="${XLIBRE_PREFIX}/usr/lib/pkgconfig" \
./configure --prefix=/usr --sysconfdir=/etc/X11 --localstatedir=/var ${Ex}
make
DESTDIR=${XLIBRE_PREFIX} make install
fi
cd ..
#hack, avoid conflicting .h files...
cp -a -f --remove-destination ${XLIBRE_PREFIX}/usr/include/xorg/* /usr/include/xorg/
sync
echo -n "ENTER: "; read keepgoing
done
There were some issues. Firstly, the latest xf86-video-amdgpu source requires packages from 'excalibur-backports', also known as 'stable-backports'. This is unfortunate, as backporting from 'testing' can cause issues elsewhere. So I downloaded the "release/25.0" branch, which is 6 months old. Not satisfactory.
The 'xf86-video-vesa' source does not compile. As can be seen above, I patched it so it will compile. This needs to be raised as an issue on the github project site. I took out 'qxl' and 'v4l' drivers, as they failed, but didn't bother to try and fix them.
Script '3xvideo' is uploaded, with false '.gz' appended, here.
I set these three scripts to all install into the 'image' folder.
The reason for this is want to create just one package, that will
install and replace all the Devuan X11 packages. Will explain that
in the next blog post.
Tags: easy