xrdb 1.2.3: X resource database utility (xdm greeter branding)
Author:
Chris Tusa <chris.tusa@leafscale.com>
Date:
Jul 24, 2026 09:16
Changeset:
99debf19e3ce658dd18ea9ae7095863cb95779ee
Branch:
default
Changed files:
Diff
diff -r 5ce902458048 -r 99debf19e3ce base/xrdb/build.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/base/xrdb/build.sh Fri Jul 24 09:16:18 2026 -0500 @@ -0,0 +1,29 @@ +#!/bin/sh +# Build script for xrdb (autotools, Template A + runtime cpp pin). +set -e +cd "$SRCDIR" + +# MANDATORY libtool fix (Task 4a, 2026-07-22): see libXau/build.sh for the +# full explanation. Piggyback hammerhead onto the kopensolaris arm. +if [ -f configure ]; then + sed -i -E 's/(kopensolaris\*-gnu)([^)]*\))/\1 | hammerhead*\2/' configure +fi + +export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" +export CFLAGS="${CFLAGS} -I$PREFIX/include -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS" +export LDFLAGS="${LDFLAGS} -L$PREFIX/lib -R$PREFIX/lib" + +# xrdb pipes resource files through cpp at RUNTIME, not just build time. +# configure's AC_PATH_PROG probe would find Hammerhead's /usr/bin/cpp via +# PATH anyway, but pin it explicitly so the result doesn't depend on PATH +# search order across build hosts. +./configure \ + --prefix="$PREFIX" \ + --build="$BUILD_TRIPLE" \ + --host="$BUILD_TRIPLE" \ + --sysconfdir="$SYSCONFDIR" \ + --disable-static \ + --with-cpp=/usr/bin/cpp + +gmake -j${JOBS:-1} +gmake install DESTDIR="$PKGDIR" diff -r 5ce902458048 -r 99debf19e3ce base/xrdb/package.toml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/base/xrdb/package.toml Fri Jul 24 09:16:18 2026 -0500 @@ -0,0 +1,36 @@ +# xrdb - X server resource database utility +# https://gitlab.freedesktop.org/xorg/app/xrdb +# +# hammerhead-xdm's Xsession/greeter uses xrdb to load +# /usr/local/lib/X11/xdm/Xresources onto the X server's RESOURCE_MANAGER so +# the xlogin greeter picks up the Zygaena teal branding + greeting instead of +# the default white box. See docs/roadmap/DESKTOP_XLIBRE_XDM_GREETER_PLAN.md. +# +# xrdb pipes resource files through a C preprocessor at RUNTIME (not just +# build time). configure's AC_PATH_PROG cpp probe searches +# $PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib, +# which would find Hammerhead's /usr/bin/cpp anyway, but build.sh pins +# --with-cpp=/usr/bin/cpp explicitly for a deterministic, host-independent +# result rather than relying on PATH search order. + +[package] +name = "xrdb" +version = "1.2.3" +release = 1 +description = "X server resource database utility (xdm greeter branding)" +url = "https://xorg.freedesktop.org/releases/individual/app/" +license = "MIT" +maintainer = "Chris Tusa <chris.tusa@leafscale.com>" +arch = "x86_64" + +[dependencies] +runtime = ["libX11", "libXmu"] +build = ["libX11", "libXmu", "xorgproto", "util-macros"] + +[[source]] +file = "xrdb-1.2.3.tar.xz" +urls = ["https://xorg.freedesktop.org/releases/individual/app/xrdb-1.2.3.tar.xz"] +checksum = "c88f560243278c896ce4fc92ae5a45a2b505a316ffa427fe55b02e5d5914c4e4" + +[build] +parallel = true