From 1da5211206a774f912fff3686f0a0c2d036d9932 Mon Sep 17 00:00:00 2001 From: Kohei Wada Date: Sun, 13 Sep 2026 13:03:10 +0900 Subject: [PATCH] build(packaging): point PKGBUILD at v0.3.1 and disable LTO MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v0.3.1 is the first release carrying `make install-system`, so the PKGBUILD is publishable now — pkgver and sha256sums updated against that tarball. `options=('!lto')` is required, not defensive: makepkg's default `lto` option compiles mlua's vendored Lua 5.4 C sources with -flto=auto, leaving GCC LTO IR in the static lib that rust-lld cannot read. A clean build without it fails with 17 `undefined symbol: lua_*` link errors. Refs #375 Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01GFGFsYeFLqRaWUAzXonwd3 --- packaging/PKGBUILD | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/packaging/PKGBUILD b/packaging/PKGBUILD index 3d31a32..a1f9d0d 100644 --- a/packaging/PKGBUILD +++ b/packaging/PKGBUILD @@ -3,12 +3,11 @@ # Reference PKGBUILD, kept in-tree as the source of truth; the AUR # copy lives in aur.archlinux.org/ttymap.git. # -# NOT PUBLISHABLE AS-IS: `make install-system` landed after v0.3.0, -# so this needs a newer tag. Bump pkgver and refresh sha256sums -# (`updpkgsums`) against that release before pushing to the AUR. +# On each release: bump pkgver, refresh sha256sums (`updpkgsums`), +# then push to the AUR repo. pkgname=ttymap -pkgver=0.3.0 +pkgver=0.3.1 pkgrel=1 pkgdesc='Scriptable globe for the terminal — Mapbox Vector Tiles rendered as Unicode Braille' arch=('x86_64' 'aarch64') @@ -16,8 +15,13 @@ url='https://github.com/Kohei-Wada/ttymap' license=('MIT' 'Apache-2.0') depends=('gcc-libs' 'openssl') makedepends=('cargo') +# mlua compiles Lua 5.4 from vendored C sources. Under makepkg's +# default `lto` option that C code is built with -flto=auto, so the +# static lib carries GCC LTO IR that rust-lld cannot read and every +# lua_* symbol comes back undefined at link time. +options=('!lto') source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz") -sha256sums=('ef3fe9d046014fa30c26aa1eb052d1ec5ac11c6580ec362c448d64c52015780b') +sha256sums=('54bd19b1f49bceee29967ab5802c5f38b5160c3acb3c83cf47932b3571b218b7') prepare() { cd "$pkgname-$pkgver"