Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

193.5. vulkan-loader-1.4.363

Khronos Vulkan ICD loader (libvulkan.so.1) — dispatches to Mesa venus/lavapipe ICDs

Version 1.4.363, release 1
Shelf gpu — The GPU stack: Mesa, DRM, GL and Vulkan loaders and headers, shader compilers, VA-API, OpenCL
Phase 42_graphics (Graphics Stack), 32 of 189 in build order
Licence Apache-2.0
Homepage https://github.com/KhronosGroup/Vulkan-Loader
Build time 0.3 SBU
Installed size 804.8 KiB in 13 files
Recipe ports/core/gpu/vulkan-loader/kpkgbuild

About

The Vulkan loader is libvulkan.so.1, the library every Vulkan program links. It reads the driver (ICD) and layer manifests under /etc/vulkan and /usr/share/vulkan, loads the drivers they name (Mesa’s for the GPU, and lavapipe on the CPU) and dispatches each call to the right one. It is built here with every window-system surface a driver can offer, so a Vulkan program can present to a Wayland window or, under Xwayland, to an X11 one.

Sources

Dependencies

Depends on: cmake, ninja, pkgconf, vulkan-headers, wayland, libxcb, libX11, libXrandr.

Required by (20): blender, ddnet, fastfetch, glfw, gst-plugins-bad, gtk4, inlyne, kwin, libggml, libplacebo, mesa-demos, mpv, mupen64plus, ppsspp, qt5-qtbase, retroarch, sniffnet, vulkan-tools, waypipe, wine.

Installation

From the repository root, inside the build container, this is the line kdosbuild runs for the port:

script/chroot/exec.sh bash -c 'source script/phases/42_graphics/phase.env && kpkg install vulkan-loader'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/gpu/vulkan-loader.

1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.

cd /ports/core/gpu/vulkan-loader
echo 'cc520304a4d8de9a6a1699553d6090aef0c25f87ef6cbc16b7c84ebd99093264  vulkan-loader-1.4.363.tar.gz' | sha256sum -c -

2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.

SRC_ROOT=/var/cache/kpkg/work/vulkan-loader
SRC=$SRC_ROOT/vulkan-loader-1.4.363
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf vulkan-loader-1.4.363.tar.gz -C "$SRC" --strip-components=1

Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.

3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

cmake -GNinja -B build \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DCMAKE_INSTALL_SYSCONFDIR=/etc \
	-DCMAKE_INSTALL_DATADIR=/usr/share \
	-DCMAKE_PREFIX_PATH=/usr \
	-DVULKAN_HEADERS_INSTALL_DIR=/usr \
	-DBUILD_WSI_WAYLAND_SUPPORT=ON \
	-DBUILD_WSI_XCB_SUPPORT=ON \
	-DBUILD_WSI_XLIB_SUPPORT=ON \
	-DBUILD_WSI_XLIB_XRANDR_SUPPORT=ON \
	-DBUILD_TESTS=OFF
cmake --build build
DESTDIR=$PKG cmake --install build

The switches, and why each is set:

The common switches of each build system are explained in the Flag glossary.

4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/vulkan-loader, prunes what the image does not ship, lints the tree and rolls it reproducibly:

tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
    --mtime=@$SOURCE_DATE_EPOCH \
    --use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
    -cf vulkan-loader-1.4.363-1.tar.xz -C "$PKG" .

5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/vulkan-loader, and runs the triggers its paths call for.

Contents

Installed libraries: libvulkan.so.

Installed directories: /usr/lib/cmake/VulkanLoader, /usr/share/licenses/vulkan-loader.

Short descriptions

vulkan.pc Vulkan Loader