a29fe71666
build and publish packages / distcc-avahi-aarch64 (push) Successful in 3s
build and publish packages / mesa-panvk-bifrost-aarch64 (push) Successful in 4s
build and publish packages / lmcp-any (push) Successful in 3s
build and publish packages / lmcp-debian (push) Successful in 3s
build and publish packages / claude-his-any (push) Successful in 3s
build and publish packages / ffmpeg-v4l2-request-aarch64 (push) Successful in 3s
build and publish packages / claude-his-debian (push) Successful in 3s
build and publish packages / ffmpeg-v4l2-request-debian (push) Successful in 3s
build and publish packages / libva-v4l2-request-fourier-aarch64 (push) Successful in 3s
build and publish packages / daedalus-v4l2-debian (push) Successful in 3s
build and publish packages / mpv-fourier-aarch64 (push) Successful in 3s
build and publish packages / libva-v4l2-request-fourier-debian (push) Successful in 3s
build and publish packages / daedalus-v4l2-dkms-debian (push) Successful in 3s
build and publish packages / mpv-fourier-debian (push) Successful in 4s
Closes task #134 work. PR #44 showed the cross-distro ABI hazard for `libva-v4l2-request-fourier-debian`: building on Arch (libva 2.23) produced `__vaDriverInit_1_23`, which trixies libva 2.22 runtime cant bind. Same hazard applies to other fourier-debian jobs that link against debian-native libs. **Moved from runs-on: arch-aarch64 → debian-aarch64:** - ffmpeg-v4l2-request-debian - mpv-fourier-debian - daedalus-v4l2-debian - daedalus-v4l2-dkms-debian **Left alone (arch=all, no native compile against debian libs):** - lmcp-debian - claude-his-debian Depends on PR #46 (label vs name fix) being merged so `debian-aarch64` actually routes to bohr. Reviewed-on: #47
71 lines
2.8 KiB
Bash
Executable File
71 lines
2.8 KiB
Bash
Executable File
#!/bin/bash
|
|
# Build lmcp_<ver>_all.deb from this directory using dpkg-deb directly.
|
|
# Run from inside the runner container, which has dpkg installed.
|
|
#
|
|
# This avoids dh/debhelper to keep the build simple and runnable on a
|
|
# non-Debian builder. The resulting .deb is structurally a normal apt
|
|
# package (Architecture: all, depends on lua + lua-socket).
|
|
set -euo pipefail
|
|
|
|
PKGVER=1.2.1
|
|
UPSTREAM_TAG=v1.2.1
|
|
PKGREL=1
|
|
LMCP_TARBALL_SHA256=bf9cce1a84c66b1b74c5aec923c5960d60ae33c221afc8d47ce0d74b8f7ee609
|
|
HERE=$(dirname "$(readlink -f "$0")")
|
|
|
|
# Reproducible build: pin all file mtimes + ar member timestamps to a fixed
|
|
# epoch tied to this packaging release (lmcp v0.3.0 — 2026-04-14 22:00 UTC).
|
|
# Without this, repeat builds produce different byte streams and reprepro
|
|
# refuses re-includes with "size expected: X, got: Y".
|
|
export SOURCE_DATE_EPOCH=1776677688
|
|
|
|
work=$(mktemp -d)
|
|
trap "rm -rf $work" EXIT
|
|
|
|
cd "$work"
|
|
curl --connect-timeout 10 --max-time 600 --retry 3 --retry-delay 5 -sSLfo lmcp.tar.gz "https://git.reauktion.de/marfrit/lmcp/archive/${UPSTREAM_TAG}.tar.gz"
|
|
echo "$LMCP_TARBALL_SHA256 lmcp.tar.gz" | sha256sum -c
|
|
tar xzf lmcp.tar.gz
|
|
|
|
ROOT="$work/pkgroot"
|
|
mkdir -p "$ROOT/DEBIAN" \
|
|
"$ROOT/usr/share/lua/5.4" \
|
|
"$ROOT/usr/bin" \
|
|
"$ROOT/usr/share/doc/lmcp"
|
|
|
|
cp lmcp/lmcp.lua "$ROOT/usr/share/lua/5.4/"
|
|
cp lmcp/json.lua "$ROOT/usr/share/lua/5.4/"
|
|
cp lmcp/server.lua "$ROOT/usr/share/lua/5.4/"
|
|
cp lmcp/hub.lua "$ROOT/usr/share/lua/5.4/"
|
|
mkdir -p "$ROOT/usr/share/doc/lmcp/examples"
|
|
cp lmcp/examples/lmcp-hub.service "$ROOT/usr/share/doc/lmcp/examples/"
|
|
cp lmcp/examples/lmcp.service "$ROOT/usr/share/doc/lmcp/examples/"
|
|
cp lmcp/examples/hub-backends.conf.example "$ROOT/usr/share/doc/lmcp/examples/"
|
|
install -m 755 lmcp/example_server.lua "$ROOT/usr/bin/lmcp-example"
|
|
cp lmcp/README.md "$ROOT/usr/share/doc/lmcp/"
|
|
cp "$HERE/debian/copyright" "$ROOT/usr/share/doc/lmcp/copyright"
|
|
cp "$HERE/debian/changelog" "$ROOT/usr/share/doc/lmcp/changelog.Debian"
|
|
gzip -9 -n "$ROOT/usr/share/doc/lmcp/changelog.Debian"
|
|
|
|
cat > "$ROOT/DEBIAN/control" <<EOF
|
|
Package: lmcp
|
|
Version: ${PKGVER}-${PKGREL}
|
|
Section: net
|
|
Priority: optional
|
|
Architecture: all
|
|
Depends: lua5.4 | lua5.3 | lua, lua-socket
|
|
Maintainer: Markus Fritsche <mfritsche@reauktion.de>
|
|
Homepage: https://git.reauktion.de/marfrit/lmcp
|
|
Description: Lightweight MCP server in pure Lua
|
|
lmcp is a small Model Context Protocol server written in Lua. It exposes
|
|
user-defined tools over HTTP for use by AI agents.
|
|
.
|
|
Library files install to /usr/share/lua/5.4/. The example server is
|
|
available as /usr/bin/lmcp-example.
|
|
EOF
|
|
|
|
# Build the .deb. Output to current dir of the caller.
|
|
DEB_OUT=lmcp_${PKGVER}-${PKGREL}_all.deb
|
|
dpkg-deb --root-owner-group --build "$ROOT" "$HERE/$DEB_OUT"
|
|
echo "built: $HERE/$DEB_OUT"
|