I got steam fully working on arch linux, no multilib repo. only 64 bit.

Here is the issue I learned about this from, and here is the maintainers stance on why they won’t change it.
tl;dr: 32 bit linux native games stop working, as they need 32 bit libs. But, they can still be run through proton wow64 and the windows version of the game. The kernel also still needs to support running 32 bit applications. The devs don’t like this approach because apparently not all 32 bit games are supported via this method.

Workaround

I installed steam on Arch linux with the multilib repo disabled, skipping all 32 bit dependencies. Everything essentially works, but launching a game doesn’t work. Turns out the only thing stopping it is a single 32 bit binary called reaper. It’s essentially a process-supervisor helper used for every game launch. Note: It could/should be a 64 bit binary, but here is the maintainer’s reason why it isn’t

I chose a stupid workaround that was in the thread. I got the 64 bit reaper from this repo, and used binfmt_misc to run the 64 bit reaper anytime the 32 bit one is called. Compiled with the reaper32’s file size and checksum constants to get past steam’s integrity check.

Tested so far

  • Terraria: native linux 64 bit game. works.
  • TF2: same thing
  • Half Life 2 (32 bit, windows build): Launched with Proton Experimental with launch flags PROTON_USE_WOW64=1 %command% No issues.

Tbf i haven’t extensively tested everything, but it all seems to work. And IMO, it’s worth it. Especially for finally dropping 32 bit libs. Like half a gigabyte of useless updates and dependencies gone.

What do you think? Would you deal with potential compatibility issues with some older 32 bit games for the sake of finally dropping 32 bit libs on your desktop?

Edit: this is not meant to be a guide. This is just a showcase of what can be done, and what steam could do, but just doesn’t. You should expect online games with anticheats to flag you as a cheater, as you’re tampering with the integrity of the files. I personally dont play much online games, at least on steam. If you want to do it yourself, go to the 64 bit reaper repo, and use the PKGBUILD. There is no performance improvement.

Valve doing this would finally drop 32 bit support on basically every modern distro/software as the standard. Finally reducing maintainers workload compiling old, useless 32 bit libs. This is an update they could push tomorrow. I only made the post because they maintainers seem to be against it?

  • lime!@feddit.nu
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    2 days ago

    it is emulating the windows api. that’s the correct term.

    • barnacles@lemmy.zip
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 days ago

      I don’t know how far this hair needs to be split - but isn’t it a translation layer in this case?

      I don’t know enough about emulation so take this with a grain of salt, but I figure there’s an element of virtualisation or an intermediary application when “emulating”

      • lime!@feddit.nu
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 days ago

        it is absolutely hair-splitting, but the term is broad. it’s just a system behaving as another system.

        • barnacles@lemmy.zip
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 days ago

          Yeah fair enough. The dictionary definition would certainly support proton being called an emulator.

      • thingsiplay@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        1 day ago

        In computing, usually “emulation” means when emulating the CPU instructions. That’s why we have other terms to distinguish that, like Virtualization will not emulate the CPU and possibly the GPU itself. And you are right, WINE and Proton are translation layers that re-route the api calls directly to local api calls, to run games native. Nothing is “emulated” in the way of the word is used in this space. But off course the broader sense of the word “emulation” can be confusing. But we are not talking in broader sense here.

        Famously WINE even stands for Wine Is Not an Emulator (Proton is based on WINE).

    • thingsiplay@lemmy.ml
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      3
      ·
      2 days ago

      Alright whatever. I’m not here to start another definition war. So let’s move on.