!!!
steam has conveniently decided to start using the 64 bit version of itself at the same time i posted this so im going to have to change it
it seems to be working... steam stopped working and didnt show a login window, but now it is with the same launch arguments idk
!!!
also: about the arm version in the fedora repos, the libraries in the arm64 linux zip file are still x86_64/i386 when i use file so idk
from this zip: https://client-update.steamstatic.com/bins_linuxarm64.zip.3b7aed410e7a931e7accc9df1f7500be0c6d82f8
i found this link in the python script in this rpm file: https://download.copr.fedorainfracloud.org/results/slp/steam-arm64/srpm-builds/11261284/
I don't know if anyone really needs this but I couldn't get FEX working for the life of me and when it did work for steam with the premade package it was slow af so heres how to run steam with box64.
1. build missing symbols .so
download this .so file if you like to live dangerously (mods or i can remove this link if it isnt allowed) or make it yourself:
put this in a c file (steam_missing_symbols.c)
#include <stdlib.h>
void *__sched_cpualloc(size_t count) { return malloc(((count + 31) / 32) * 4); }
void __sched_cpufree(void *set) { free(set); }
and build with
an-x86_64-gcc -Bpath/to/x86_64/binaries/like/ld/and/as/and/stuff -m32 -shared -fPIC -nostdlib steam_missing_symbols.c -o steam_missing_symbols.so
the x86_64 gcc i used was the one from the x86_64 arch repos and i ran that under box64. that gcc doesnt need any box64 args, it just runs without issues.
2. change bin/steam and usr/lib/steam/steam
This part is only needed if you didn't install steam to your regular root (I installed mine to an x86_64 root i have at /mnt/x86_64 with pacman using an x86_64 config). I will refer to the custom root as $root
you can do:
change the path in $root/bin/steam to $root/usr/lib/steam/steam. you must use absolute paths otherwise it will run from the working directory of where ever you run the script from. I think you can just also make $root/bin/steam a symlink. then also change $root/usr/lib/steam/steam to symlink to $root/usr/lib/steam/bin_steam.sh. It is currently linked to /usr/lib/steam/bin_steam.sh, which isn't in the custom root.
or
copy $root/usr/lib/steam to /usr/lib/steam. You might as well just install the package to your main root at that point, all the package installs (on the x86_64 arch repos at least) is /bin/steam, /bin/steamdeps, /usr/lib/steam, and some stuff in /usr/share.
if one doesn't work, try the other.
3. launch!
run with
BOX64_LD_PRELOAD=/path/to/steam_missing_symbols.so \
BOX64_LIBCEF=1 BOX64_DYNAREC_DIRTY=2 \
DBUS_FATAL_WARNINGS=0 STEAM_RUNTIME=1 STEAMOS=1 \
box64 path/to/steam
add -skipinitialbootstrap to steam if it keeps "extracting package" every time for no reason, and including the box64 command is optional if binfmt_misc is set up. it took 1-2 minutes to start (it was like 5 minutes with FEX for me idk).
lmk if anything is wrong, I started doing this weeks ago so I may have forgotten to add things.