Bug 2217227

Summary: Review Request: box64 - Linux userspace x86_64 emulator with a twist, targeted at ARM64
Product: [Fedora] Fedora Reporter: Davide Cavalca <davide>
Component: Package ReviewAssignee: Neal Gompa <ngompa13>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ngompa13, package-review, ppisar
Target Milestone: ---Flags: ngompa13: fedora-review?
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Davide Cavalca 2023-06-25 08:18:24 UTC
Spec URL: https://dcavalca.fedorapeople.org/review/box64/box64.spec
SRPM URL: https://dcavalca.fedorapeople.org/review/box64/box64-0.2.2-1.fc39.src.rpm

Description:
Box64 lets you run x86_64 Linux programs (such as games) on non-x86_64 Linux
systems, like ARM (host system needs to be 64-bit little-endian).

Fedora Account System Username: dcavalca

Comment 1 Davide Cavalca 2023-06-25 08:21:00 UTC
This needs access to x86_64 libraries to actually be useful. The easiest way to get those is to

dnf --forcearch=x86_64 --installroot=/path/to/x64root install <packages...>

and then set BOX64_LD_LIBRARY_PATH=/path/to/x64root before running box64.

Comment 2 Neal Gompa 2023-06-25 09:06:25 UTC
Taking this review.

Comment 3 Neal Gompa 2023-06-25 09:08:37 UTC
Spec review:

> Requires(post): %{_sbindir}/update-alternatives
> Requires(postun): %{_sbindir}/update-alternatives

Why are we using alternatives instead of Provides+Conflicts and "RemovePathPostfixes" stanzas?

Example of this: https://code.opensuse.org/package/pagure/blob/master/f/pagure.spec#_218-238

Comment 4 Davide Cavalca 2023-06-25 09:33:14 UTC
Because I figured may want to have the generic aarch64 version and the platform specific one installed concurrently to compare and contrast (not on Apple Silicon, as you'll need the -asahi one for 16k, but on other platforms).