#!/bin/sh # Build script for libpthread-stubs (autotools, Template A). # NOTE: the 0.5 release tarball ships only Makefile.am/configure.ac (no # meson.build) despite some packaging docs describing it as a Meson port - # verified 2026-07-22 by inspecting the actual distfile. Header/.pc only, # no compiled library content - just satisfies libxcb's pkg-config check. set -e cd "$SRCDIR" export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig:$PKG_CONFIG_PATH" ./configure \ --prefix="$PREFIX" \ --build="$BUILD_TRIPLE" \ --host="$BUILD_TRIPLE" \ --sysconfdir="$SYSCONFDIR" \ --disable-static gmake -j${JOBS:-1} gmake install DESTDIR="$PKGDIR" # libpthread-stubs - weak aliases for pthread functions (pkg-config-only stub) # https://gitlab.freedesktop.org/xorg/lib/libpthread-stubs # # Confirmed needed on Hammerhead 2026-07-22 (Task 4a): even though illumos # has native pthreads, libxcb's configure hard-requires the pthread-stubs # pkg-config module unconditionally (`xau >= 0.99.2 pthread-stubs`). Not a # skip candidate here. # # Build system note: the 0.5 distfile is autotools-only (Makefile.am + # configure.ac, no meson.build) - built with Template A, not Meson. [package] name = "libpthread-stubs" version = "0.5" release = 1 description = "Weak aliases for pthread functions not provided by all libc/libpthread implementations" url = "https://xorg.freedesktop.org/releases/individual/lib/" license = "MIT" maintainer = "Chris Tusa " arch = "x86_64" [dependencies] runtime = [] build = ["util-macros"] [[source]] file = "libpthread-stubs-0.5.tar.xz" urls = ["https://xorg.freedesktop.org/releases/individual/lib/libpthread-stubs-0.5.tar.xz"] checksum = "59da566decceba7c2a7970a4a03b48d9905f1262ff94410a649224e33d2442bc" [build] parallel = true