Mark tobi-try arch=any - #126
Open
scottjones wants to merge 1 commit into
Open
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tobi-trycontains no architecture-dependent content. The whole payload is three Ruby files plus a symlink:build()only rewrites the shebang to/usr/bin/ruby,package()only installs those files, and there are nomakedepends. Declaringarch=('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_64fromedge. The file lists match, the payloads are byte-identical underdiff -r --no-dereference, and the/usr/bin/trysymlink target is the same. The new package reportsarch = any.Practical effect:
edge/aarch64andstable/aarch64currently 404, so ARM users get nothing from this package today. Becauseanypackages are architecture-independent, this one change makestobi-tryinstallable on aarch64 straight from the existingx86_64repo path — no aarch64 publishing pipeline needed for it.I bumped
pkgrelto 3 so the rebuild is picked up.Context: I hit this while working on the Apple Silicon / Asahi fork of Omarchy, where
tobi-tryshows 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.