Skip to content

Mark tobi-try arch=any - #126

Open
scottjones wants to merge 1 commit into
omacom-io:masterfrom
scottjones:tobi-try-arch-any
Open

Mark tobi-try arch=any#126
scottjones wants to merge 1 commit into
omacom-io:masterfrom
scottjones:tobi-try-arch-any

Conversation

@scottjones

Copy link
Copy Markdown
Contributor

tobi-try contains no architecture-dependent content. The whole payload is three Ruby files plus a symlink:

usr/bin/try -> /usr/lib/tobi-try/try.rb
usr/lib/tobi-try/try.rb
usr/lib/tobi-try/lib/tui.rb
usr/lib/tobi-try/lib/fuzzy.rb

build() only rewrites the shebang to /usr/bin/ruby, package() only installs those files, and there are no makedepends. Declaring arch=('aarch64' 'x86_64') means makepkg stamps whichever machine built it, so serving both architectures requires two separate builds of a byte-identical payload. arch=('any') makes one build cover every architecture.

Verified rather than assumed: I built this on aarch64 and compared the result against the published tobi-try-1.8.1-2-x86_64 from edge. The file lists match, the payloads are byte-identical under diff -r --no-dereference, and the /usr/bin/try symlink target is the same. The new package reports arch = any.

Practical effect: edge/aarch64 and stable/aarch64 currently 404, so ARM users get nothing from this package today. Because any packages are architecture-independent, this one change makes tobi-try installable on aarch64 straight from the existing x86_64 repo path — no aarch64 publishing pipeline needed for it.

I bumped pkgrel to 3 so the rebuild is picked up.

Context: I hit this while working on the Apple Silicon / Asahi fork of Omarchy, where tobi-try shows up as unavailable. Happy to look at the other script-only packages in the same position if this direction is useful — I didn't want to widen the diff unprompted.

The package is three Ruby files and a symlink -- try.rb, lib/tui.rb,
lib/fuzzy.rb, and /usr/bin/try pointing at try.rb. build() only rewrites the
shebang to /usr/bin/ruby, package() only installs, and there are no
makedepends. Nothing in it is architecture-dependent.

Declaring ('aarch64' 'x86_64') means makepkg stamps whichever arch built it,
so serving both needs two builds of a byte-identical payload. With 'any' one
build covers every architecture.

Verified by building on aarch64: the resulting tobi-try-1.8.1-3-any package
has a byte-identical payload to the published x86_64 build, same symlink
target.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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