191.1. libX11-1.8.13
Core X11 client-side library
| Version | 1.8.13, release 1 |
| Shelf | x11 — X11 protocol, client libraries and data, plus Xwayland, the one X server |
| Phase | 42_graphics (Graphics Stack), 2 of 189 in build order |
| Licence | X11 AND MIT-open-group AND HPND AND BSD-3-Clause |
| Homepage | https://gitlab.freedesktop.org/xorg/lib/libX11 |
| Build time | 0.5 SBU |
| Installed size | 4.7 MiB in 1022 files |
| Recipe | ports/core/x11/libX11/kpkgbuild |
About
libX11 (Xlib) is the core X Window System client library: it opens a connection to an X server, here over libxcb, and provides the requests, events, keyboard mapping, input methods and compose tables an X client uses. The one X server on KDOS is Xwayland, which serves X clients beside the Wayland desktop, and libX11 is what those programs, and the X11 backends of Mesa, GTK, Qt and mpv beside their Wayland ones, link. See No Xorg server, and one carve-out.
Sources
libX11-1.8.13.tar.xz(1.7 MiB)
sha25669606f485c2c07c14ef64f75b7bb326d48587af33795d9ab3e607c0b5f94f11c
upstream: https://www.x.org/releases/individual/lib/libX11-1.8.13.tar.xz
archive copy: sources-4/x11--libX11-1.8.13.tar.xz
Dependencies
Depends on: libxcb, xtrans, xorgproto.
Required by (128): abiword, ardour, at-spi2-core, avidemux, blender, brasero, cairo, chromium, coin, dasher, digikam, fcitx5-configtool, fcitx5-gtk, firefox-esr, flamp, fldigi, flmsg, flrig, fltk, freeglut, gimp, glew, glfw, gmsh, goldendict-ng, gtk-vnc, gtk3, gtk4, gwenview, hwloc, inkscape, kcrash, kdbusaddons, kdesu, kdialog, keditbookmarks, keepassxc, kguiaddons, kidletime, kimageannotator, kio-extras, kontactinterface, krfb, krita, kstatusnotifieritem, ktouch, kwin, kwindowsystem, libcanberra, libepoxy, libglvnd, libreoffice, librewolf, libspnav, libXcomposite, libXcursor, libXdamage, libXext, libxfce4ui, libXfixes, libXft, libXi, libXinerama, libxkbfile, libXmu, libXpm, libXpresent, libXrandr, libXrender, libXres, libXScrnSaver, libXt, libXtst, libXv, libXxf86vm, linuxcnc, mesa, mlt, motif, mpv, mumble, mupdf, obs-studio, opencpn, openjdk, openscad, orcaslicer, pango, plasma-desktop, plasma-integration, plasma-workspace, prusaslicer, python3-tkinter, qemu, qqc2-desktop-style, qt5-qtbase, qt5-qtx11extras, qt6-qtbase, qt6-qtmultimedia, qt6-qtwebengine, qtutilities, R, remmina, rhythmbox, sauerbraten, shotcut, smplayer, soqt, spice-gtk, suil, texstudio, thunderbird, tk, viking, vlc, vtk, vulkan-loader, webkitgtk, webkitgtk6, wine, wxwidgets, xastir, xauth, xhost, xkbcomp, xsettingsd, xwayland, zbar.
Optional, off in KDOS
These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.
--without-perl, line 21: perl (explained with the switches below)
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 libX11'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/x11/libX11.
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/x11/libX11
echo '69606f485c2c07c14ef64f75b7bb326d48587af33795d9ab3e607c0b5f94f11c libX11-1.8.13.tar.xz' | 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/libX11
SRC=$SRC_ROOT/libX11-1.8.13
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf libX11-1.8.13.tar.xz -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:
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib \
--disable-static \
--disable-specs \
--without-xmlto \
--without-fop \
--without-xsltproc \
--without-perl
make
make DESTDIR=$PKG install
The switches, and why each is set:
--disable-specs— Skip the specifications underspecs/(the Xlib manual, the XIM and locale documents, the compose-sequence charts), which upstream builds from DocBook by default.--without-xmlto,--without-fop,--without-xsltproc— Do not look for the DocBook tools those documents are built with, so the configure result does not depend on whether they are in the build root.--without-perl— Do not use Perl. libX11 runs it only fornls/compose-check.pl, a check of the compose tables undermake check, and for the compose-chart generator of the specs; the library and its manual pages are built without it.
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/libX11, 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 libX11-1.8.13-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/libX11, and runs the triggers its paths call for.
Contents
Installed libraries: libX11-xcb.so, libX11.so.
Installed directories: /usr/share/X11/locale, /usr/share/licenses/libX11.
Short descriptions
x11.pc |
X Library |
x11-xcb.pc |
X Library XCB interface |