|
root / base / libpthread-stubs
libpthread-stubs Plain Text 53 lines 1.8 KB
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/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 <chris.tusa@leafscale.com>"
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