Skip to content

build(packaging): point PKGBUILD at v0.3.1 and disable LTO - #408

Merged
Kohei-Wada merged 1 commit into
mainfrom
chore/pkgbuild-0.3.1
Sep 13, 2026
Merged

Kohei-Wada merged 1 commit into
mainfrom
chore/pkgbuild-0.3.1

Conversation

@Kohei-Wada

Copy link
Copy Markdown
Owner

Refs #375. Makes packaging/PKGBUILD actually build.

  • pkgver=0.3.1 + real sha256sums — v0.3.1 is the first release containing make install-system.
  • options=('!lto'), which is required, not defensive: makepkg's default lto option compiles mlua's vendored Lua 5.4 C sources with -flto=auto, so the static lib carries GCC LTO IR that rust-lld can't read.

Verification (all on a real Arch box, makepkg)

  • makepkg --verifysource → checksum passes against the published v0.3.1 tarball.
  • makepkg -f --nodeps on a clean src/ → exit 0, produces ttymap-0.3.1-1-x86_64.pkg.tar.zst containing usr/bin/ttymap, usr/share/ttymap/init.lua, 48 files under usr/share/ttymap/lua/, plus both licenses and the README. check() (the full cargo test) ran as part of it.
  • Control build with !lto removed, clean src/ → fails, exit 4, 17 × undefined symbol: lua_*. So the option is load-bearing and the comment above it is accurate.
  • Ran the packaged artifact: extracted the built package, overlaid its usr/share at the real /usr/share in a user namespace, bind-mounted an empty dir over the repo's runtime/ and pointed HOME at an empty dir, so /usr/share/ttymap was the only runtime tier. The packaged binary painted 6481 Braille cells, 6226 non-blank.

Still manual, still yours: git push to aur.archlinux.org/ttymap.git needs your SSH key.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GFGFsYeFLqRaWUAzXonwd3

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) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GFGFsYeFLqRaWUAzXonwd3

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PKGBUILD updates are well-structured and thoroughly tested. The version bump to 0.3.1, SHA256 checksum update, and LTO disabling are all properly implemented with clear documentation. The extensive verification described in the PR description confirms these changes work correctly.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

@Kohei-Wada
Kohei-Wada merged commit b1439c0 into main Sep 13, 2026
5 checks passed
@Kohei-Wada
Kohei-Wada deleted the chore/pkgbuild-0.3.1 branch September 13, 2026 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant