114.6. libxcb-1.17.0
X protocol C-language binding
| Version | 1.17.0, release 1 |
| Shelf | x11 — X11 protocol, client libraries and data, plus Xwayland, the one X server |
| Phase | 41_system (System), 1029 of 1047 in build order |
| Licence | X11 |
| Homepage | https://gitlab.freedesktop.org/xorg/lib/libxcb |
| Build time | 0.4 SBU |
| Installed size | 4.7 MiB in 2446 files |
| Recipe | ports/core/x11/libxcb/kpkgbuild |
About
libxcb is the C binding of the X protocol, generated at build time from the XML protocol descriptions in xcb-proto. Xlib is built on it, and so is every X client in the tree, the X11 backends of the toolkits among them. It also installs one library per extension (libxcb-randr, libxcb-xkb, libxcb-shm and the rest).
Sources
libxcb-1.17.0.tar.xz(444.5 KiB)
sha256599ebf9996710fea71622e6e184f3a8ad5b43d0e5fa8c4e407123c88a59a6d55
upstream: https://www.x.org/releases/individual/lib/libxcb-1.17.0.tar.xz
archive copy: sources-4/x11--libxcb-1.17.0.tar.xz
Dependencies
Depends on: xcb-proto, libXau, libXdmcp.
Required by (32): cairo, chromium, falkon, firefox-esr, kguiaddons, kidletime, krfb, ktouch, kwin, kwindowsystem, libreoffice, librewolf, libX11, libxkbcommon, mesa, obs-studio, oxygen, plasma-desktop, plasma-integration, plasma-workspace, qt5-qtbase, qt5-qtx11extras, qt6-qtbase, qt6-qtwebengine, sddm, thunderbird, vlc, vulkan-loader, xcb-util, xcb-util-keysyms, xcb-util-renderutil, xcb-util-wm.
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/41_system/phase.env && kpkg install libxcb'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/x11/libxcb.
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/libxcb
echo '599ebf9996710fea71622e6e184f3a8ad5b43d0e5fa8c4e407123c88a59a6d55 libxcb-1.17.0.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/libxcb
SRC=$SRC_ROOT/libxcb-1.17.0
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf libxcb-1.17.0.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-devel-docs \
--without-doxygen
make
make DESTDIR=$PKG install
The switches, and why each is set:
--disable-devel-docs— Leave out the doxygen manual of the API. With the switch on, the manual is built when doxygen anddotare both installed, so the package’s contents would follow what the build root holds.--without-doxygen— Do not look for doxygen at all.
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/libxcb, 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 libxcb-1.17.0-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/libxcb, and runs the triggers its paths call for.
Contents
Installed libraries: libxcb-composite.so, libxcb-damage.so, libxcb-dbe.so, libxcb-dpms.so, libxcb-dri2.so, libxcb-dri3.so, libxcb-glx.so, libxcb-present.so, libxcb-randr.so, libxcb-record.so, libxcb-render.so, libxcb-res.so, libxcb-screensaver.so, libxcb-shape.so, libxcb-shm.so, libxcb-sync.so, libxcb-xf86dri.so, libxcb-xfixes.so, libxcb-xinerama.so, libxcb-xinput.so, libxcb-xkb.so, libxcb-xtest.so, libxcb-xv.so, libxcb-xvmc.so, libxcb.so.
Installed directories: /usr/share/doc/libxcb, /usr/share/licenses/libxcb.
Short descriptions
xcb.pc |
X-protocol C Binding |
xcb-composite.pc |
XCB Composite Extension |
xcb-damage.pc |
XCB Damage Extension |
xcb-dbe.pc |
XCB Double Buffer Extension |
xcb-dpms.pc |
XCB DPMS Extension |
xcb-dri2.pc |
XCB DRI2 Extension |
xcb-dri3.pc |
XCB DRI3 Extension |
xcb-glx.pc |
XCB GLX Extension |
xcb-present.pc |
XCB Present Extension |
xcb-randr.pc |
XCB RandR Extension |
xcb-record.pc |
XCB Record Extension |
xcb-render.pc |
XCB Render Extension |
xcb-res.pc |
XCB X-Resource Extension |
xcb-screensaver.pc |
XCB Screensaver Extension |
xcb-shape.pc |
XCB Shape Extension |
xcb-shm.pc |
XCB Shm Extension |
xcb-sync.pc |
XCB Sync Extension |
xcb-xf86dri.pc |
XCB XFree86-DRI Extension |
xcb-xfixes.pc |
XCB XFixes Extension |
xcb-xinerama.pc |
XCB Xinerama Extension |
xcb-xinput.pc |
XCB XInput Extension (EXPERIMENTAL) |
xcb-xkb.pc |
XCB Keyboard Extension (EXPERIMENTAL) |
xcb-xtest.pc |
XCB XTEST Extension |
xcb-xv.pc |
XCB Xv Extension |
xcb-xvmc.pc |
XCB XvMC Extension |
Notes
The tutorial in doc/tutorial is installed under /usr/share/doc/libxcb/tutorial whatever the switches say. kpkg’s documentation prune removes its index.html, and the stylesheet beside it, xcb.css, is what the package keeps of it (see Size and language policy).