Skip to content
Snippets Groups Projects
Simon McVittie's avatar
Simon McVittie authored
It's difficult for users of non-Debian-derived distros to select the
runtime's SDL, especially if they don't know whether the game is 32- or
64-bit, because the expansion of `$LIB` and `$PLATFORM` varies between
distro glibc builds.

However, we can normally predict `$LIB` and `$PLATFORM` well enough to
do the right thing programmatically. For example, if `$PLATFORM` expands
to `i686` in 32-bit processes and `xeon-phi` in 64-bit, then we can
create symlinks at `/tmp/XX/i686/libSDL2-2.0.so.0` and
`/tmp/XX/xeon-phi/libSDL2-2.0.so.0`, and then set
`SDL_DYNAMIC_API='/tmp/XX/${PLATFORM}/libSDL2-2.0.so.0'` to have the
runtime linker dynamically select the correct word size.

While I'm here, we might as well provide the same setup for SDL3.

steamrt/tasks#578

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
0f1133b3
History

steam-runtime-tools — Steam Runtime integration for the Steam client

The steam-runtime-tools library provides low-level Unix-specific tools and functionality for the Steam client, including the pressure-vessel tool that runs Steam games in containers.

To support multiple architectures (currently only i386, x86_64 and aarch64 are supported), you will need to build it once for each architecture and install at least the helper tools in /usr/libexec/steam-runtime-tools-0 (the libsteam-runtime-tools-0-helpers package) for every architecture in parallel.

The helper tools are located relative to the shared library, so it's OK to bundle steam-runtime-tools alongside some other stack in this layout:

anything/
    lib/
        x86_64-linux-gnu/
            libsteam-runtime-tools-0.so.0
    libexec/
        steam-runtime-tools-0/
            i386-linux-gnu-*
            x86_64-linux-gnu-*

as long as the program that is linked to libsteam-runtime-tools-0.so.0 can find it (via a RPATH or RUNPATH or by setting the LD_LIBRARY_PATH environment variable).

pressure-vessel — putting Steam in containers

The pressure-vessel/ subdirectory of this project contains the pressure-vessel utilities, which are used by Steam's Steam Linux Runtime (container runtime) compatibility tool to run games in individual game-specific containers. For background on pressure-vessel and the Steam Linux Runtime, please see: