mirror of
https://github.com/siderolabs/extensions.git
synced 2026-05-05 04:06:38 +02:00
Consolidate extension services to be self contained, don't pollute rootfs or mount up libraries from host unless absolutely needed. Fixes: #876 Fixes: https://github.com/siderolabs/talos/issues/12667 Signed-off-by: Noel Georgi <git@frezbo.dev>
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
|
|
name: libtirpc
|
|
variant: scratch
|
|
shell: /bin/bash
|
|
dependencies:
|
|
- stage: base
|
|
steps:
|
|
- sources:
|
|
- url: https://archive.ubuntu.com/ubuntu/pool/main/libt/libtirpc/libtirpc_{{ .LIBTIRPC_VERSION | replace "-" "." }}+ds.orig.tar.gz
|
|
destination: libtirpc.tar.gz
|
|
sha256: {{ .LIBTIRPC_SHA256 }}
|
|
sha512: {{ .LIBTIRPC_SHA512 }}
|
|
prepare:
|
|
- |
|
|
tar -xf libtirpc.tar.gz --strip-components=1
|
|
|
|
patch -p1 < /pkg/patches/gcc15.patch
|
|
|
|
mkdir -p /usr/local/include/sys
|
|
cp /pkg/patches/sys-queue.h /usr/local/include/sys/queue.h
|
|
|
|
export CFLAGS="${CFLAGS} -I/usr/local/include"
|
|
|
|
./configure \
|
|
--prefix=/usr/local \
|
|
--disable-gssapi \
|
|
--enable-rpcdb
|
|
build:
|
|
- |
|
|
make -j $(nproc)
|
|
install:
|
|
- |
|
|
mkdir -p /rootfs
|
|
|
|
mkdir -p /rootfs/usr/local/include/sys
|
|
cp /pkg/patches/sys-queue.h /rootfs/usr/local/include/sys/queue.h
|
|
|
|
make install DESTDIR=/rootfs
|
|
rm -rf /rootfs/usr/local/share/man
|
|
finalize:
|
|
- from: /rootfs
|
|
to: /rootfs
|