Newer
Older
steam-runtime-tools (0.20210219.0) UNRELEASED; urgency=medium
[ Simon McVittie ]
* pressure-vessel: Never set XDG_DATA_DIRS to just our override directory.
Default to /usr/local/share:/usr/share as per the specification.
* pressure-vessel: Mask Vulkan layers in home directory or other non-/usr
paths. This avoids the Steam fossilize and overlay layers being
duplicated in the container's search path. (Resolves: T26160)
* pressure-vessel: Accept runtime with or without ./files at top level
* pv-launch: Sync minor improvements from flatpak-xdg-utils
* pv-launch: Use unset-env option for subsandbox API >= v5.
This was added in Flatpak 1.10.0.
[ Ludovico de Nittis ]
* pressure-vessel: Update flatpak-run to the latest upstream version.
This includes a fix to propagate the X11 cookies that have an address
equal to XAUTHLOCALHOSTNAME, fixing X11 authentication on some openSUSE
systems (Resolves: steam-runtime-tools#53)
* pv-adverb: Remove unused locales temporary directories
(Resolves: steam-runtime-tools#56)
* system-info: Add ability to store multiarch tuples
* build: Refactoring
-- Simon McVittie <smcv@collabora.com> Fri, 19 Feb 2021 10:53:12 +0000
steam-runtime-tools (0.20210203.0) scout; urgency=medium
* pressure-vessel: Revert improvements to speed of container setup.
This optimization caused some Vulkan layers and ICDs to appear more
than once in the container, which makes some games hang.
(Maybe resolves: steam-runtime#361, steam-runtime#362, steam-runtime#363)
* system-info: Log environment variables used by various Vulkan layers
-- Simon McVittie <smcv@collabora.com> Wed, 03 Feb 2021 16:33:56 +0000
steam-runtime-tools (0.20210201.0) scout; urgency=medium
[ Simon McVittie ]
* pressure-vessel: Make graphics stack provider's /etc/amd available
in the container.
This is needed for at least one of the AMD-maintained graphics stacks:
AMDVLK (open-source) and/or AMDGPU-PRO (proprietary).
(Resolves: steam-runtime#313)
* pressure-vessel: Make host's /etc available for reference in
/run/host/etc inside the container (also graphics stack provider's /etc
in /run/gfx/etc, if different)
* pressure-vessel: Make /var/tmp available in the container
* system-info: Show various environment variables that influence
components that we are interested in:
- the Steam client
- SDL
- Wine/Proton
- PulseAudio clients
- ALSA clients
* check-vulkan: Fix compilation on Steam Runtime 1½ 'heavy'.
heavy is still on Vulkan loader v1.1.73, which doesn't know
VK_ERROR_INVALID_DRM_FORMAT_MODIFIER_PLANE_LAYOUT_EXT.
* tests: Fix unit test failure if environment variables like DRI_PRIME
are set
[ Ludovico de Nittis ]
* pressure-vessel: Improve speed of container setup by combining multiple
calls to capsule-capture-libs
* system-info: Show machine-readable info for each Vulkan PhysicalDevice
(each GPU/driver combination, plus software rendering if available).
This should help us to see what is going wrong in multi-GPU scenarios.
(Helps: steam-runtime#312, steam-runtime#341, steam-runtime#352;
maybe also steam-runtime#340)
-- Simon McVittie <smcv@collabora.com> Mon, 01 Feb 2021 19:03:26 +0000
steam-runtime-tools (0.20210126.0) scout; urgency=medium
[ Ludovico de Nittis ]
* pressure-vessel: Fix a crash when environment variables carried over
from the host are not in the expected encoding
- In particular this fixes a crash when a game's installation directory
contains the trademark symbol. (Resolves: #52, steam-runtime#349)
* system-info: Fix a crash in some unlikely error cases
* system-info: Refactoring
* check-vulkan: Avoid a possible crash
* check-vulkan: Convert from C++ to C
* check-vulkan: List all Vulkan GPUs
* check-vulkan: Improve error messages
* system-info: Log more influential environment variables
* system-info: Add support for reading /run/host/container-manager
* system-info: Add support for detecting Podman
* system-info: Print diagnostic messages as arrays of lines
* system-info: Temporarily print details of all GPUs as diagnostic
messages, until we support printing them in a machine-readable way
-- Simon McVittie <smcv@collabora.com> Tue, 26 Jan 2021 13:22:50 +0000
steam-runtime-tools (0.20210114.0) scout; urgency=medium
[ Ludovico de Nittis ]
* pressure-vessel: Fix loading of ICDs and Vulkan layers that are
referenced by a bare SONAME (Resolves: #49)
- In particular this fixes the Mesa device selection layer
* pressure-vessel: Improve handling of LD_PRELOAD
[ Simon McVittie ]
* pressure-vessel: Find PulseAudio socket on systems that do not use
XDG_RUNTIME_DIR (Resolves: #51, steam-runtime#343)
* pressure-vessel: Further refactoring towards being able to run from
inside Flatpak
* pressure-vessel: Create symlinks for various distros' ld.so.cache
equivalents, improving ability to run on Clear Linux and Exherbo
(partially addresses steam-runtime#345, steam-runtime#230)
* pv-wrap: *Really* don't assume container's env is in the PATH,
again for Exherbo (partially addresses steam-runtime#230).
* pressure-vessel: Implement the container indicator from systemd's
CONTAINER_INTERFACE ($container and /run/host/container-manager)
* test-ui: Look for runtimes in PRESSURE_VESSEL_VARIABLE_DIR.
Future versions of SteamLinuxRuntime will use this to move the
non-Steampipe-managed runtimes into a var/ subdirectory.
-- Simon McVittie <smcv@collabora.com> Thu, 14 Jan 2021 14:29:37 +0000
steam-runtime-tools (0.20210105.0) scout; urgency=medium
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
[ Simon McVittie ]
* pv-wrap: Make graphics drivers outside $HOME available, if used
(Resolves: #29, steam-runtime#313)
* pv-wrap: Refactor collection of DRI drivers so we use all the search
paths that SrtGraphics knows about
- Also look for Mesa DRI drivers in ${libdir}/xorg/modules/dri,
used on Slackware (Resolves: steam-runtime#318)
* pv-wrap: Don't assume container's env is in the PATH.
Some OS distributions, notably Exherbo, don't put /usr/bin in their
PATH. This means we can't safely use their PATH to invoke standard tools
inside the container. (Partially addresses steam-runtime#230)
* pv-wrap: Always disable gtk3-nocsd.
This module interposes in front of g_object_get(), and is known to cause
crashes, even in programs that use GObject but not GTK.
(Resolves: steam-runtime#286)
* pv-wrap: Cope with /tmp being a symlink.
If /tmp is a symlink in the current execution environment, then when
we ask bwrap to bind-mount /tmp/pressure-vessel-wrap.XXXXXX/overrides
over itself, it will try to create the parent directory /tmp, and fail
because there's a symlink in the way. Canonicalize the path and use that
instead. Partially addresses steam-runtime#321 (symlinks "above" the home
directory have the same problem, but are harder to fix).
* Improve diagnostic tools bundled with relocatable pressure-vessel:
- Don't wrap steam-runtime-system-info, so it can find its helpers
- Include vulkaninfo and wflinfo in relocatable installs
* pv-wrap: Remove --host-fallback option.
We are not going to be able to do this from within Flatpak, and it is
unsuitable for running runtimes other than Steam Runtime 1 'scout',
for which the LD_LIBRARY_PATH runtime mostly already works.
If we need an automatic fallback to running on the host for scout games,
we can do that better by running `pressure-vessel-wrap --test`.
* pressure-vessel: Speed up execution of short-lived subprocesses.
In particular, if the soft limit on open file descriptors is very large
(formerly recommended for Proton "esync", although the current
recommendation is to set a small soft limit and a large hard limit)
this can speed up pressure-vessel by as much as 90%. In more normal
configurations it can still save 10%. (Resolves: steam-runtime#323)
* pressure-vessel: Stop running bwrap --help, no longer needed.
* pv-wrap: Log pressure-vessel version on startup.
This serves two purposes: it gives us a timestamp for when
pressure-vessel started, and it puts the version number in the log.
* Preparatory work for being able to run inside Flatpak:
- system-info: Look in both /overrides and /usr/lib/p-v/overrides
- pv-wrap: In Flatpak, use pv-launch to run commands on the host
- pv-wrap: Remap $HOME for Flatpak correctly
- pv-wrap: In Flatpak, put game in same userns/pidns as Steam if possible
- pv-launch: Add the ability to unset environment variables when using
Flatpak APIs on the host
- Lots of refactoring in PvRuntime
* THIRD-PARTY.md: Add more licenses for steam-runtime-tools
* THIRD-PARTY.md: Point to git repo for steam-runtime-tools source
* THIRD-PARTY.md: Point to scout images for third-party library source
[ Ludovico de Nittis ]
* system-info: Diagnose STEAM_COMPAT_CLIENT_INSTALL_PATH mismatch
(Resolves: #41)
* runtime: correctly handle ICD for different ABI even without subdirs
(Resolves: #45)
* graphics: Do not load JSON ICDs multiple times from the same directory
(Resolves: #48; partially addresses steam-runtime#336)
* Refactor logging
* Add PRESSURE_VESSEL_LOG_INFO and PRESSURE_VESSEL_LOG_WITH_TIMESTAMP
environment variables
-- Simon McVittie <smcv@collabora.com> Tue, 05 Jan 2021 18:12:58 +0000
steam-runtime-tools (0.20201203.0) scout; urgency=medium
[ Ludovico de Nittis ]
* pressure-vessel: Cope with Vulkan meta-layers and handle them specially,
fixing an assertion failure (Resolves: steam-runtime#306)
* pressure-vessel: Add option to disable the import of Vulkan layers.
Users experiencing problems with Vulkan layers can disable their
inclusion in the container with environment variable
PRESSURE_VESSEL_IMPORT_VULKAN_LAYERS=0. (Resolves: steam-runtime-tools#37)
* pressure-vessel: Do not dlopen layers if it isn't necessary.
This makes it more likely that we can share the same JSON manifest
for all word-sizes, working around some overzealous deduplication
in the Vulkan loader. (Partially addresses: steam-runtime-tools#39)
* diagnostic tools: Try more VA-API code paths, so that the check can pass
on Intel GPUs (Resolves: steam-runtime-tools#24)
[ Simon McVittie ]
* pressure-vessel: Fix VDPAU driver loading when using newer glibc on
post-Haswell CPUs
* pressure-vessel: Improve correctness of PRESSURE_VESSEL_COPY_RUNTIME_INTO
by removing more conflicting libraries
* input-device test: Add more test data
-- Simon McVittie <smcv@collabora.com> Thu, 03 Dec 2020 18:20:30 +0000
steam-runtime-tools (0.20201124.0) scout; urgency=medium
* runtime: Expand libqual into an array of multilib directories.
This is a step towards searching all the necessary places for unusual
distributions like Exherbo (see steam-runtime#230), and gives us
an obvious extension point for adding more multilib directories.
* runtime: Don't issue warnings when unable to delete from runtime copy
* pressure-vessel-unruntime: Don't assume bash is at /bin/bash.
Apparently NixOS puts it somewhere else.
* pressure-vessel: Fix a wrong assertion that prevented running the
container with libraries from the host system instead of a runtime.
Steam never does this, but it's occasionally useful for debugging.
* pressure-vessel: Make /nix available read-only, if it exists.
This is necessary (but not sufficient!) for NixOS support.
* pressure-vessel: Make sure ~/.steam is available in the container,
even if it's a symbolic link (steam-runtime#291)
* pressure-vessel-wrap: Add environment variables to share filesystems
* pressure-vessel: Make STEAM_EXTRA_COMPAT_TOOLS_PATHS available
(partially addresses steam-runtime#302)
* input-device: Add a new API for input device enumeration and monitoring.
This can list and inspect input devices using libudev or directly, and
is potentially a basis for a future input device portal (see
steam-runtime-tools#11).
* system-info: Detect whether the expected runtime linker is present.
On operating systems with unusual path layouts, such as Exherbo and
NixOS, the de facto standard path for the runtime linker is not
necessarily present for all architectures.
(Of course, if the x86_64 runtime linker is not present, we won't
normally be able to run steam-runtime-system-info either, but at least
users of such operating systems can compile it from source code if they
need to provide diagnostics.)
* bin: Add new steam-runtime-input-monitor diagnostic tool
* bin, pressure-vessel: Disable GIO modules differently.
This avoids some misleading warnings (steam-runtime-tools#32).
* bin: Link diagnostic tools to libsteam-runtime-tools statically
* lib: Don't export private _srt_filter_gameoverlayrenderer
* tests: Link utils test to libsteam-runtime-tools statically
* tests: Move some tests for utility code out of pressure-vessel
* utils: Add the ability to find our prefix when statically linked
* build: Fix dependencies on generated headers
* build: Compile using gcc-4.8 on scout
* debian: Allow building with only libcapsule-tools-relocatable installed
* tests: Generate sysroots for each test, instead of per-build
[ Ludovico de Nittis ]
* pressure-vessel: Make the original environment available
* pressure-vessel: Treat LD_LIBRARY_PATH as system libraries.
At this stage we expect to have `LD_LIBRARY_PATH` set to the
`SYSTEM_LD_LIBRARY_PATH` of `steam.sh`.
This means that we should treat the `LD_LIBRARY_PATH` entries as
OS-level search path too.
* pressure-vessel-unruntime: Support PRESSURE_VESSEL_APP_LD_LIBRARY_PATH
* pressure-vessel: Add support for Vulkan layers.
When we use the provider graphics stack we also try to collect the
available Vulkan layers, similarly to what we already do for ICDs.
(T24365, T24347, T24348)
* pressure-vessel: use the new libcapsule "--remap-link-prefix" option.
Using the new "--remap-link-prefix" option we can now avoid breaking
symlinks not available under `/run/host`, such as Vulkan layers or
drivers in the home directory or in /opt. (steam-runtime-tools#29)
* pressure-vessel: Include host's fonts in the newly built container.
Soldier and Scout include a limited set of fonts that doesn't cover all
use cases. For example it is missing the necessary glyphs for Asian
languages. For this change to be effective, the container also needs an
updated steamrt-container-host-compat package.
(steam-runtime#289, T24559)
* system-info: Diagnose implicit and explicit Vulkan layers
* system-info: Add helper to check for xdg-desktop-portal
-- Simon McVittie <smcv@collabora.com> Tue, 24 Nov 2020 19:18:06 +0000
steam-runtime-tools (0.20201022.0) scout; urgency=medium
[ Ludovico de Nittis ]
* wrap: Set all the env vars before building the locking list.
This ensures pressure-vessel picks up the correct DISPLAY and XAUTHORITY
to work in situations where the X11 server does not listen on an
abstract socket, such as recent GNOME in Wayland mode.
(steam-runtime-tools#26, Proton#4270)
* Add support for Arch Linux /etc/locale.gen. (steam-runtime-tools#5)
* system-info: Return the correct value if the assertion fails
-- Simon McVittie <smcv@collabora.com> Thu, 22 Oct 2020 10:09:01 +0100
steam-runtime-tools (0.20201007.0) scout; urgency=medium
[ Ludovico de Nittis ]
* wrap: Do not lock LD_PRELOAD, so that games run in session mode get the
Steam Overlay (steam-runtime-tools#21)
* launch: Close the file descriptors after being forwarded
* CI: Avoid partial upgrades
* Diagnostic tools: include STEAMSCRIPT and STEAMSCRIPT_VERSION.
These provide details of the Steam bootstrapper script. (T22352)
[ Simon McVittie ]
* launch: Add support for communicating with Flatpak services
* adverb: Don't "pile up" errors if we cannot exec generate-locales
* adverb, launch, launcher: Store original environment
* flatpak-run: Make this more similar to Flatpak's version
* tests: Allow more time for test-locale-gen.sh
-- Simon McVittie <smcv@collabora.com> Wed, 07 Oct 2020 16:25:00 +0100
steam-runtime-tools (0.20201002.0) scout; urgency=medium
[ Ludovico de Nittis ]
* Reapply "runtime: Set STEAM_RUNTIME=/ if running in scout".
This will reassure some games, particularly those ported by Feral
Interactive, that they are running in the right environment.
Last time we tried this, it broke GTK in scout, but since then we have
fixed the custom search path patches in various libraries to cope.
(Resolves: pressure-vessel#8; maybe also: steam-runtime#202,
steam-runtime#249)
* wrap, launcher: Add an environment variable locking system.
If we want to pass all the possible variables that a user might have set
in the environment, then we need a mechanism to lock the variables that
pressure-vessel is editing (e.g. LIBGL_DRIVERS_PATH), variables that we
want to keep unset because will be wrong in the new container (e.g.
FLATPAK_ID) and variables that should inherit their value from the host
system (e.g. DISPLAY).
(Part of steam-runtime-tools#17)
* wrap: Save original environ before potentially altering it
* launcher: add support for unsetting environment variables
* json-glib-compat.h: Use the correct cleanup function for JsonArray
* fake-home.c: Do not shadow the possible global declaration of dirname
[ Simon McVittie ]
* launcher: Always set PWD to the command's actual working directory,
ignoring "locked" variables
* build: Link libglnx into steam-runtime-tools library.
This changes the effective license of the library from MIT/X11 to LGPL,
and will let us make more use of libglnx in future to make the library
more reliable.
- graphics, tests: Start to use g_autofree
* libsrt: Explicitly control symbol visibility
* libsrt: Move non-public utility functions to internal header
* libsrt: Start moving pressure-vessel utilities into the library
* flatpak-bwrap: Update from Flatpak 1.8.2
gcc 10 correctly diagnoses that if there are 0 bytes of arguments, we'll
allocate no bytes, leaving no space for this (unnecessary) '\0'.
* graphics: Fix a minor memory leak
* graphics: Canonicalize relative filenames before prepending sysroot
* graphics: Fix shadowing
* system-info: Open sysroot as a file descriptor
* system-info: Resolve container flag-files via sysroot
* system-info: Always pass around a non-NULL environment block
* README: Add more information about pressure-vessel
* tests: Parse and re-serialize expected JSON output.
This avoids test failure when using json-glib 1.6.x, which pretty-prints
empty arrays and empty objects differently.
* tests: Consolidate test-helper libraries
-- Simon McVittie <smcv@collabora.com> Fri, 02 Oct 2020 13:53:34 +0100
steam-runtime-tools (0.20200914.0) scout; urgency=medium
* Combine steam-runtime-tools with pressure-vessel (T22909)
[ Ludovico de Nittis ]
* steam: Do not report an issue if the Flatpak version of Steam is the
default URI handler
* wrap: Propagate even unchanged environment variables if running
in Flatpak
-- Simon McVittie <smcv@collabora.com> Mon, 14 Sep 2020 17:17:04 +0100
pressure-vessel (0.20200909.0) scout; urgency=medium
* Revert "runtime: Set STEAM_RUNTIME=/ if running in scout".
Setting STEAM_RUNTIME=/ causes configuration changes in libraries like
Pango and GTK, which break module loading when not in the
LD_LIBRARY_PATH Steam Runtime. We will need to update those libraries'
search paths before we can do this.
(Reopens: pressure-vessel#8, steam-runtime#202, steam-runtime#249)
-- Simon McVittie <smcv@collabora.com> Wed, 09 Sep 2020 18:51:19 +0100
[ Ludovico de Nittis ]
* Initial support for escaping from a Flatpak app to run games.
Due to Flatpak limitations, this prototype only works when the Flatpak
sandbox security has been completely disabled. Future development in both
Flatpak and pressure-vessel will be required to be able to launch games
in individual containers while keeping a security boundary between Steam
and the host system. (Resolves: T22373, T22371)
[ Simon McVittie ]
* runtime: Carry out the /usr merge when copying sysroots
(Resolves: pressure-vessel#3, T22126)
* wrap: Don't populate environment of FlatpakBwrap that will be merged
(Resolves: T23422)
* wrap: Use FlatpakExports to make host paths available in container.
This gives us access to the same tricks that Flatpak uses to get host
paths into the container in a more robust way: in particular, it sorts
paths to put parent before child, and exports symbolic links as symbolic
links plus a separate mount point for the target (which we previously
did for the subdirectories of ~/.steam, but nowhere else).
(Resolves: pressure-vessel#2, pressure-vessel#18; part of T22908)
* various commands: Print exit status immediately before exiting
* various commands: Include process ID in output.
When we have more than one layer of adverbs, this provides a way to
tell which one we are.
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
* wrap, adverb: Move "wrap with xterm" code into the adverb.
This means the launching scripts for the "session" mode, which use
pv-launch to run the main game command in a previously-set-up pv-launcher
environment, can direct pv-adverb to run an interactive shell instead of
or in addition to the actual game.
(Part of steamlinuxruntime#2)
* wrap: Always mount /tmp from host for now.
SteamHTMLSurface and SteamVR use this as a rendezvous directory for
IPC. (Resolves: pressure-vessel#10)
* wrap: Parse app ID from $STEAM_COMPAT_APP_ID
* wrap: Parse several environment variables for paths to mount.
When combined with a Steam update, this should resolve a lot of issues
involving paths outside the current working directory.
(Resolves: pressure-vessel#4, pressure-vessel#11, pressure-vessel#12,
steam-runtime#217, steam-runtime#236, steam-runtime#257)
* wrap, adverb, launcher: Add ability to pass fds through to the command
(Resolves: pressure-vessel#6)
* runtime: Load basic NSS plugins along with host system glibc,
fixing username resolution in soldier container on Arch Linux.
This might also resolve steam-runtime#226, steam-runtime#264,
steam-runtime#258, steam-runtime#192, steam-runtime#262,
steam-runtime#227.
* runtime: Set STEAM_RUNTIME=/ if running in scout
(Resolves: pressure-vessel#8, and maybe steam-runtime#202,
steam-runtime#249)
* Improve automated tests
-- Simon McVittie <smcv@collabora.com> Tue, 08 Sep 2020 18:30:07 +0100
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
pressure-vessel (0.20200819.0) scout; urgency=medium
* adverb, wrap: Add --terminate-timeout, --terminate-idle-timeout options.
This will let us clean up background processes when sharing a container
between multiple commands using -launcher and -launch.
* adverb, wrap: Implement --exit-with-parent.
-wrap eventually replaces itself with bubblewrap. If the bubblewrap
process is killed, we want the adverb command to be terminated, passing
the termination signal on to its own child process.
* adverb: When sent a common fatal signal, try to pass it on to the child
* launch, launcher: Allow terminating commands after a "main" command exits.
This can be used when launching Proton games, which consist of zero or
more setup commands, which may launch background processes, followed by
launching the game itself.
* wrap: Don't set up X11, etc. until after --filesystem.
If we want to be able to use --filesystem=/tmp, then we can't set up
the X11 socket until after we're finished with that.
* launch: Improve error handling for forwarding signals
* launch: Fix program name in logging
* runtime: Always provide adverb at /run/pressure-vessel/pv-from-host
* glib-backports: Redo backported Unix fd source in terms of a new GSource
* Remove -unruntime-test-ui.
We have a straightforward environment-variable-based way to select this.
* Remove unruntime-scout.
The SteamLinuxRuntime depot has a better implementation of this.
* man: Improve documentation
* CI fixes
-- Simon McVittie <smcv@collabora.com> Wed, 19 Aug 2020 16:33:45 +0100
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
pressure-vessel (0.20200805.0) scout; urgency=medium
[ Simon McVittie ]
* wrap: Bind-mount /run/host/os-release if available.
Recent versions of Flatpak and systemd-nspawn can mount the host's
os-release at /run/host/os-release, even if the rest of the host's
/etc and /usr are not exposed to the container. For feature parity
we should try to do the same.
* runtime: Fix logic for whether to mount over an executable.
When using a scout sysroot with a newer-than-scout host, we were not
overwriting locale(1) and localedef(1) with the host copy, causing
mismatches.
Resolves: T22877
* wrap: Add a minimal implementation of --filesystem.
This is like `flatpak run --filesystem`, but for now much, much simpler;
callers are responsible for not giving us paths that will be a problem.
However, it's enough to bind-mount subdirectories of /tmp, which is
what we need if we want to use them as IPC rendezvous points.
* launcher: Add ability to run multiple commands in one container.
See the new pressure-vessel-launcher(1) man page for details.
We need this for Proton games, where running a game takes several
steps. At the moment each step is its own container, which means
they can't share locks, IPC sockets and other state.
Partially resolves: T22770
* all: Consistently work around glib!490 like Flatpak does
* adverb, wrap: Don't interfere with child process's stdin, stdout
* adverb, wrap: Pass verbosity down to adverb
* adverb, wrap: Share pv_boolean_environment()
[ Ludovico de Nittis ]
* gitlab-ci: Re-enable artifacts upload.
By increasing the CI upload limit we should be able to store the
pressure-vessel artifacts.
* Move locale generation to pressure-vessel-adverb
pressure-vessel-with-lock has been renamed to pressure-vessel-adverb
because now it has more capabilities than just taking a lock.
This change should help the environments that are not able to normally
run `bwrap`, like if we are in a Docker container or in a Flatpak app.
* Test that --generate-locales is in the bwrap arguments when expected
* tests/containers.py: Remove duplicated code
-- Simon McVittie <smcv@collabora.com> Wed, 05 Aug 2020 18:51:16 +0100
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
pressure-vessel (0.20200709.0) scout; urgency=medium
* d/control: Fix wrong dependencies.
I'd only intended to bump the version on the libcapsule dependency,
not the steam-runtime-tools dependency.
* runtime: Remove hwcaps subdirectories when looking for gconv modules.
tests/containers.py was failing on SteamOS 2 'brewmaster' with the
libc6-i686 package installed, because that package contains an
optimized i686 glibc in /lib/i386-linux-gnu/i686/cmov/libc.so.6, which
is used in preference to the baseline i586 glibc in
/lib/i386-linux-gnu/libc.so.6. There are no corresponding optimized
gconv modules, only /usr/lib/i386-linux-gnu/gconv/*.
* tests: Add support for basic testing on a soldier container.
For the moment, this is basically scout with fewer guarantees: we
can't assume whether the host glibc is newer (like Arch Linux or
Ubuntu 20.04) or older (like SteamOS 2 'brewmaster'). (T22544)
* tests: Run s-r-s-i on host with LD_BIND_NOW=1.
If we allow lazy binding, we can succeed in loading a GIO module from
the host (which depends on a newer GObject than the one bundled with
pressure-vessel), then find that a symbol reference fails at the time
that we try to actually use it. Make it fail early, instead.
In particular, this is helpful on SteamOS 2 'brewmaster'.
* tests: Ignore inability to load libOSMesa.so.8.
This is included in prerelease versions of SteamRT 2 'soldier',
but because it uses the post-gcc-5 C++ ABI of libLLVM-7.so.1, it's
incompatible with versions of libLLVM-7.so.1 that were compiled to be
compatible with the gcc 4 C++ ABI, and in particular the one in
SteamOS 2 'brewmaster'.
This and the previous commit are sufficient to make tests/containers.py
pass on SteamOS 2 'brewmaster', if we also configure libxcb.so.1 to
be chosen by counting symbols (T22538) and libgcc_s.so.1 to be chosen
by counting verdefs (T16561).
-- Simon McVittie <smcv@collabora.com> Thu, 09 Jul 2020 11:43:09 +0100
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
pressure-vessel (0.20200708.0) scout; urgency=medium
* unruntime, wrap: Add a way to disable all interactivity.
This is desirable if we are running something other than the main game,
for example steam-runtime-system-info or various preparatory steps
involved in running Proton.
* wrap: Import Steam compat tool data. (T22360)
This is necessary for Steam "compat tools" such as Proton.
STEAM_COMPAT_DATA_PATH points to data associated with the current
(compat tool, game) pair, for example the ${WINEPREFIX}.
STEAM_COMPAT_TOOL_PATH doesn't exist yet, but I'm assuming that it will
be set by some later version of the Steam client to point to Proton
itself.
STEAM_COMPAT_CLIENT_INSTALL_PATH points to the Steam installation. This
is hopefully in the home directory, so hopefully we bind-mount it anyway;
but if we don't, we should.
* runtime: Add arguments to the right bwrap invocation.
When we're entering the container to generate locales, we need to
bind-mount the staging area for /overrides in *that* bwrap invocation,
not add it as a bind-mount to the bwrap invocation that will actually
run the game. (T22534)
* runtime: Factor out beginning of capsule-capture-libs command-line.
This doesn't currently include the --dest because that varies - it's
usually arch->libdir_on_host, but not always.
* runtime: Pass --library-knowledge to capsule-capture-libs if possible.
For runtimes that support it, this gives us a way to override library
comparisons. In particular, we can make sure libgcc_s.so.1 is compared
by its version-definitions and symbols. (T16561, T16562)
* run-in-sysroot: Copy host /etc/passwd, /etc/group.
Otherwise, any test that refers to the username or home directory will
fail with a warning. Prior to GLib 2.35.9 (in particular, in GLib 2.32)
this happens in g_get_any_init_do(), which is also called to get the
TMPDIR, so any test that wants to create a temporary directory will
fail like this.
-- Simon McVittie <smcv@collabora.com> Wed, 08 Jul 2020 18:43:05 +0100
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
[ Ludovico de Nittis ]
* Bind VDPAU drivers.
If available, and newer, we bind VDPAU drivers from the host system.
* Bind VA-API drivers and loaders.
If available, and newer, we bind VA-API drivers and loaders from the
host system.
* runtime: handle merged-/usr host OS with non merged-/usr container.
Prioritize "/usr/" over "/lib/" if it is available to avoid issues when
we use a non merged-/usr container with a host system that is
merged-/usr. (T22125)
[ Simon McVittie ]
* Update libglnx subproject from upstream
* runtime: Look for ldconfig in /sbin, /usr/sbin.
If we are on an OS where /sbin is not normally in unprivileged users'
PATHs (for example Debian), we won't find ldconfig in PATH and will
need to try harder.
* runtime: Reset PATH in the container.
The PATH from outside the container doesn't really make sense inside
the container, because the directory hierarchy could be totally different
(particularly on unusual host systems like GoboLinux and Exherbo).
Resetting it also makes sure we don't pick up local installations in
~/bin or ~/.local/bin, which could have dependencies that are
unsatisfied in the container.
Conversely, the PATH from the host might not include everything we need
in the container.
* runtime: Don't critical if we were unable to lock the runtime
* runtime: Add an option to skip generating missing locales.
This is one of the slower parts of the whole process, and not all
games (or automated tests) even need it.
* runtime: Factor out a struct to hold architecture-specific details
* runtime: Save a bwrap invocation and a shell by not using globbing
* runtime: Sort DRI "search path" more carefully.
As noted in the comment, the order matters.
* runtime: Access runtime without using bwrap if possible
* runtime: Optionally copy the runtime, and bind-mount the copy.
This is good for two reasons. In a Flatpak runtime, we will not be able
to do tricks with arbitrary bind-mounts; if we want the host library
stack, we will have to rewrite the mutable copy of the runtime to
replace container libraries with symlinks into /run/host. Also, when
not in a Flatpak runtime, having a mutable copy of the immutable runtime
gives developers a chance to edit the runtime to inject workarounds or
things they're testing. (T18688, T22035)
* bwrap: When we bind /usr, also bind /etc/ld.so.conf*
We'll need those if we want to run ldconfig.
* wrap: Add the ability to unshare the pid namespace.
We can use this to test whether it can be done without breaking Steam
(currently it cannot, unless you unload the gameoverlayrenderer.so
module).
* wrap: Really fail on invalid --env-if-host argument
* locale-gen: Add --output-dir option
* wrap-interactive: Fix display of pressure-vessel-wrap's name
* wrap-interactive: Print exit status before --shell=after
* wrap-interactive: Print exit status before "Enter to continue" prompt
* utils: Preserve permissions when copying, and fall back to reflink or
copy if hard link fails
* scripts: Assert that we have the desired Python version.
We require Python 3.5 (backports exist in both Steam Runtime 1 'scout'
and Steam Runtime 1½ 'heavy'), except for scripts that are meant to run
on test machines or non-developer Steam users' machines, which require
Python 3.4 (SteamOS 2, Debian 8, Ubuntu 14.04).
* build: Only instantiate libglnx subproject once
* build: Disable optional features of steam-runtime-tools subproject
* build: Disable -Wunused-local-typedefs globally
* build: Centralize dependency checking
* build: Convert parts of pressure-vessel into a static library
* build: Split into subdirectories
* tests: Improve coverage
* test-ui: Fix pyflakes warning for unnecessary blank line
* tests/relocatable-install.py: Silence a mypy warning
* sysroot: Add a way to mount more directories rw.
This will make it easier to install a new pressure-vessel build into a
relocatable directory hierarchy for testing.
* CI: Enable man pages for devel build
* CI: Move artifacts adjacent to the job that would produce them
* CI: Consistently indent with 4 spaces
-- Simon McVittie <smcv@collabora.com> Wed, 24 Jun 2020 19:05:13 +0100
[ Jeremy Whiting ]
* Add --test command line argument to pressure-vessel-wrap.
When --test is used, check for bubblewrap executable and return
0 if found, 1 otherwise.
[ Ludovico de Nittis ]
* Bind the host's ldconfig, gconv modules, locale(1) if we already use
libc from the host
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
* wrap: mount /usr/share/libdrm if using host libdrm
* README: update scout download URL
* README: fix scout SDK package name
[ Simon McVittie ]
* wrap: Remount API filesystems when operating without a runtime
* test-ui: Do some expectation-management.
We don't want users who discover this test UI to think that everything
is going to work as-is.
* test-ui: Always offer to unshare home, with a clearer UI.
Rephrase it so that in the UI, unsharing the home directory looks like
the active choice ("separate home directory"), with the shared home
directory as the passive/default choice.
* test-ui: Clarify what the "no runtime" choice means
* test-ui: Rename "runtime" to "container runtime"
When we start dealing with LD_LIBRARY_PATH runtimes too, the difference
will become significant.
* test-ui: Show the version number of pressure-vessel-wrap
* bwrap: Don't create a /libexec symlink
* wrap: Resync some code borrowed from Flatpak with their version
* wrap: Correct some wait-status / exit status confusion
* wrap: Debug-log the bwrap executable if --test succeeds
* CONTRIBUTING.md: Add notes on what it's OK to depend on
* build: Automatically use python3.5 if available.
Steam Runtime 1 'scout' has python3.5 as a non-default Python 3 version,
and python3.2 as default.
* utils: Add a method to copy a directory tree using hard links.
This will let us duplicate a runtime and edit it in-place.
* runtime: Factor out a PvRuntime object
* runtime: Add an off-switch for the host graphics stack.
In practice we always want the host graphics stack, but maybe this
will be useful when debugging.
* runtime: Combine multiple runs of capsule-capture-libs into one
* README: Document a wrong assumption
* Build as a native package again.
Now that deb-build-snapshot supports a Build-Suffix option in
debian/git-version-gen.control, we don't need to worry about whether
the version number will be less than a previous version that had a +srt
suffix added by the Open Build Service.
-- Simon McVittie <smcv@collabora.com> Tue, 31 Mar 2020 20:39:16 +0100
pressure-vessel (0.20200108.0-0+steamrt1.1) scout; urgency=medium
* wrap: Don't pass --lock-file to bwrap.
This is redundant with us passing the fd to be held by
pressure-vessel-with-lock, and it causes bwrap to produce the wrong
exit status (see https://github.com/containers/bubblewrap/issues/336
and https://github.com/containers/bubblewrap/pull/325).
* bwrap-lock: Add support for OFD locks.
On Linux >= 3.15, this allows us to pass a lock fd to a child process
across bwrap's fork-and-exec the way we were already trying to, and
have it actually work.
* wrap: Tell child process to take out its own lock if necessary.
Non-OFD locks don't propagate across fork(), and bwrap needs to clone()
itself (which behaves like fork() in this respect) to separate itself
into a parent outside the container and a child inside the container.
This change adds a weak dependency on Linux 3.15. If we run on an older
version, everything should still *work*, but there will be a short
period of time during which we have already decided to use the runtime,
but it is not locked (and in particular not protected from deletion).
-- Simon McVittie <smcv@collabora.com> Wed, 08 Jan 2020 15:34:14 +0000
pressure-vessel (0.20191216.0-0+steamrt1.1) scout; urgency=medium
* wrap: Mount pressure-vessel on /run/pressure-vessel if using runtime.
This avoids relying on the directory containing pressure-vessel being
being below either the current working directory, or the default
Steam library in $(realpath ~/.steam/steam).
(Closes: ValveSoftware/steam-runtime#204)
* ci: Do a build with AddressSanitizer and UndefinedBehaviourSanitizer
-- Simon McVittie <smcv@collabora.com> Mon, 16 Dec 2019 14:15:29 +0000
pressure-vessel (0.20191115.0-0+steamrt1.1) scout; urgency=medium
* wrap: Add API for a bubblewrap-compatible fcntl lock
* wrap: Take out a lock on the container's runtime for the duration
* with-lock: Add a utility to do things while holding a lock
* wrap: Use with-lock to hold the lock until all children have exited
* wrap: Print environment variables quoted as intended
* Go back to non-native versioning.
Versioning pressure-vessel as a native package interacts poorly with
the combination of the Open Build Service pseudo-binNMU suffix and the
deb-build-snapshot tool used for prereleases:
0.20190927.0+7+g1234567+srt1 is less than 0.20190927.0+srt1, so
0.20190927.0 would wrongly be preferred over the prerelease at commit
1234567, 7 commits later than 0.20190927.0.
* Update libglnx, applying a fixed version of libglnx!14
* build: Enable and fix many compiler warnings
* debian: Make compiler warnings into errors for unreleased builds
* gitlab-ci: Make compiler warnings into errors
* wrap: Make GOptionEntry flags clearer
* wrap: Print version number as YAML
-- Simon McVittie <smcv@collabora.com> Fri, 15 Nov 2019 19:03:20 +0000
pressure-vessel (0.20191112.1) scout; urgency=medium
* Revert inclusion of libglnx!14.
It accidentally depended on a newer GLib version.
-- Simon McVittie <smcv@collabora.com> Tue, 12 Nov 2019 13:52:17 +0000
* ci: Add build-dependencies of steam-runtime-tools subproject
* wrap: Don't bind-mount ~/.steam/steambeta etc. if they don't exist
* wrap: Fix logic for whether Steam Runtime is passed through
* Update libglnx subproject, including merge requests libglnx!13 and
libglnx!14
-- Simon McVittie <smcv@collabora.com> Tue, 12 Nov 2019 13:32:32 +0000
pressure-vessel (0.20190927.0) scout; urgency=medium
* wrap: Include all known NVIDIA libraries, except for libnvidia-gtk*
-- Simon McVittie <smcv@collabora.com> Fri, 27 Sep 2019 18:40:56 +0100
pressure-vessel (0.20190926.0) scout; urgency=medium
* test-ui: Respect a few of the same environment variables as -wrap
* wrap: Pull in EGL and Vulkan ICDs from the host system
- Add steam-runtime-tools library dependency
* Various CI improvements
-- Simon McVittie <smcv@collabora.com> Thu, 26 Sep 2019 14:55:03 +0100
pressure-vessel (0.20190912.0) scout; urgency=medium
* Refactor pressure-vessel-wrap
* wrap: Fail with an error if no architectures work
* wrap: Only bind-mount host /usr/lib/locale once
* wrap: If using host libc.so.6, also pick up host libidn2.so.0
* wrap: Use a new pressure-vessel-locale-gen to set up locales
* d/copyright: Remove duplication
-- Simon McVittie <smcv@collabora.com> Thu, 12 Sep 2019 14:54:47 +0100
* Switch to "native" packaging format
* wrap: Add PRESSURE_VESSEL_RUNTIME, which can force use of a runtime
* wrap: Add an option to find the runtime relative to a base path
* wrap: Add $PRESSURE_VESSEL_SHELL as default for --shell-*
* wrap: Add $PRESSURE_VESSEL_TERMINAL and --terminal
* wrap: Add environment variables for more options
* wrap: When using --unshare-home, replace symlinks in ~/.steam with
up-to-date values
* wrap: Make --share-home take precedence over --home
* wrap: Skip architecture setup for architectures the runtime can't run.
This means we can use amd64-only or i386-only runtimes.
-- Simon McVittie <smcv@collabora.com> Fri, 23 Aug 2019 16:44:05 +0100
pressure-vessel (0.20190822.0-0+steamrt1.1) scout; urgency=medium
* pressure-vessel-unruntime-scout: Add a shortcut way to select the
scout runtime
-- Simon McVittie <smcv@collabora.com> Thu, 22 Aug 2019 15:46:36 +0100
pressure-vessel (0.20190820.0-0+steamrt1.1) scout; urgency=medium
* Move Gitlab-CI setup into debian directory
* Improve build-relocatable-install
-- Simon McVittie <smcv@collabora.com> Tue, 20 Aug 2019 18:44:27 +0100
pressure-vessel (0.20190819.0-0+steamrt1.1) scout; urgency=medium
-- Simon McVittie <smcv@collabora.com> Mon, 19 Aug 2019 16:19:18 +0100
steam-runtime-tools (0.20200908.1) scout; urgency=medium
* Correct version number
* Update symbols file
-- Simon McVittie <smcv@collabora.com> Tue, 08 Sep 2020 18:52:28 +0100
steam-runtime-tools (0.20200908.0) scout; urgency=medium
[ Ludovico de Nittis ]
* inspect-library: print the real SONAME of the given library.
This information could be used to correctly handle libraries like
libldap that sometimes is just an alias for libldap_r.
[ Simon McVittie ]
* system-info: Don't confuse graphics issues with library issues.
Previously, when we check for and find graphics issues, we'd set bits
in the library issues bitfield instead. Only users of the C API will
notice this, because this information doesn't end up in the JSON.
* library: Distinguish between requested name and SONAME.
In rare cases, like libldap-2.4 and libcurl in scout, they can differ.
* os: Look at /run/host/os-release if we are inspecting a container.
Recent versions of Flatpak and systemd-nspawn can mount the host's
os-release at /run/host/os-release, even if the rest of the host's
/etc and /usr are not exposed to the container.
* graphics: Fix use-after-free in a debug message.
Diagnosed by scan-build during CI.
* CI fixes
-- Simon McVittie <smcv@collabora.com> Tue, 08 Sep 2020 18:17:44 +0100
steam-runtime-tools (0.20200624.0) scout; urgency=medium
[ Ludovico de Nittis ]
* Add automated graphics verification for VDPAU
* Add automated graphics verification for VA-API
* Add a function to return the absolute path to "ubuntu12_32" directory.
We already stored the path to "ubuntu12_32" but this information wasn't
in the public API or the JSON report.
* Add missing "x11/vaapi" to the s-r-s-i report
* Add ability to load info from JSON output report (T16565)
-- Simon McVittie <smcv@collabora.com> Wed, 24 Jun 2020 19:04:53 +0100
steam-runtime-tools (0.20200415.0) scout; urgency=medium
[ Ludovico de Nittis ]
* Diagnose problems with "steam:" URL handler
* Create a new srt_system_info_get_steam_details function
* tests: Generate mock sysroots programmatically (fixes: T20177)
* Enumerate VDPAU drivers from LD_LIBRARY_PATH and system library
search path (implements: T19545)
* Avoid warnings when a graphics check returns empty JSON
* Check for required CPU features.
Check if the CPU supports the features we are interested in.
Right now they are: SSE3 (pni), x86_64 (lm) and CMPXCHG16B (cx16).
(implements: T20489; diagnoses: steam-for-linux#5164,
steam-for-linux#6812, steam-for-linux#6795, steam-for-linux#4196)
* Add check-requirements preflight check.
With check-requirements we can do a preflight check and ensure that the
Steam client requirements are met. (implements: T20491)
[ Simon McVittie ]
* tests: Factor out the directory containing mock sysroots
* tests: Add a script to generate the mock sysroots
-- Simon McVittie <smcv@collabora.com> Wed, 15 Apr 2020 13:21:10 +0100
steam-runtime-tools (0.20200331.1-0+steamrt1.1) scout; urgency=medium
-- Simon McVittie <smcv@collabora.com> Tue, 31 Mar 2020 21:00:28 +0100
steam-runtime-tools (0.20200331.0-0+steamrt1.1) scout; urgency=medium
[ Ludovico de Nittis ]
* Add srt_vdpau_driver_resolve_library_path, etc. methods.
The corresponding _get_library_path methods might return a relative
path, so add a way to go from that to an absolute path.
* Refactor vdpau tests into a single function
* Add a special Mesa DRIs search path to cover Ubuntu 16.04.
Ubuntu 16.04 is older than GLVND and it places Mesa loaders in
${libdir}/mesa and the DRIs in ${libdir}/dri.
[ Simon McVittie ]
* inspect-library: Ignore symbols like LIBATOMIC_1.0@LIBATOMIC_1.0.
I had hoped that dlsym() and dlvsym() would find these special symbols,
but in fact they don't. To check for ABI compatibility we need to look
for specific symbols, like __atomic_load_1@LIBATOMIC_1.0.
* build: Disable gtk-doc by default.
This lets us do self-hosting releases from SteamRT 1 'scout'.
* Document the minimum meson version.
The Steam Runtime has a backport of meson 0.49.0, originally from Debian
stretch-backports, which is the oldest thing we'll even try to support.
-- Simon McVittie <smcv@collabora.com> Tue, 31 Mar 2020 20:40:41 +0100
steam-runtime-tools (0.20200306.0-0+steamrt1.1) scout; urgency=medium
[ Ludovico de Nittis ]
* Enumerate VDPAU drivers
* Enumerate GLX ICDs
* Log driver-selection environment variables
* Add check-va-api helper
* meson: remove redundant Wall and Wextra flags
* Move indirect_strcmp0 to utils
* Move rm_rf to utils.c
* build: Belatedly update version number in meson.build
* Fail build if version number in meson.build hasn't been updated
* system-info: Make SRT_DRIVER_FLAGS_NONE the absence of flags
* system-info: Add an undocumented --ignore-extra-drivers option
* .gitignore: Ignore several common Meson build directories
* build: Use a loop to reduce repetition when compiling shaders
* tests: Use loops to build mock helpers
* bin: Generalize jsonify_enum()
* bin: Factor out jsonify_os_release
* system-info: Make sysroot a first-class member of the object
* Combine common code for dealing with graphics modules
[ Jeremy Whiting ]
* If wflinfo or check-gl fails, run a second time with
LIBGL_DEBUG=verbose set
-- Simon McVittie <smcv@collabora.com> Fri, 06 Mar 2020 17:05:23 +0000