Chromium Flatpak package uses flatpak-spawn command for sandboxing
the child processes. The command comes from flatpak-xdg-utils, which is
presumably included in Flatpak runtimes. The command then calls Spawn
method of the portal.
The portal supports running commands in a clear environment when passed
FLATPAK_SPAWN_FLAGS_CLEAR_ENV flag. Unfortunately, that also clears PATH,
which is probably what prevents `flatpak` command itself from being found.
There is a relevant TODO note in the code:
https://github.com/flatpak/flatpak/blob/1.10.2/portal/flatpak-portal.c#L995-L999
For now, let’s hardcode the path to the binary.
Pantheon's sideload broke:
```
meson.build:17:0: ERROR: Could not generate cargs for flatpak:
Package ostree-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `ostree-1.pc'
to the PKG_CONFIG_PATH environment variable
Package 'ostree-1', required by 'flatpak', not found
```
https://hydra.nixos.org/build/113077888
ZHF: #80379
* Regenerated all patches for 1.4.2 and resolved
any conflicts.
* fix-test-paths.patch doesn't copy the whole locale archive
because we have C.UTF8 now.
* nixos/flatpak creates a Flatpak system helper user
Change introduced in 1.3.2.
Changes:
See https://github.com/flatpak/flatpak/releases/tag/1.3.1 through
1.4.2.
SVG support isn't built-in to GdkPixBuf, it's provided by an external
module. Therefore, GDK_PIXBUF_MODULE_FILE should be preserved in the
sandbox, otherwise `flatpak-validate-icon --sandbox` won't work on SVG
files.
GDK_PIXBUF_MODULE_FILE is often set to a nix store path not available in a app
sandbox. This can cause some apps to fail launching, simply reset this env var
when running applications.
fixes https://github.com/NixOS/nixpkgs/issues/53441
This makes the command ‘nix-env -qa -f. --arg config '{skipAliases =
true;}'’ work in Nixpkgs.
Misc...
- qtikz: use libsForQt5.callPackage
This ensures we get the right poppler.
- rewrites:
docbook5_xsl -> docbook_xsl_ns
docbook_xml_xslt -> docbook_xsl
diffpdf: fixup
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/flatpak/versions.
These checks were done:
- built on NixOS
- Warning: no invocation of /nix/store/2ig3b399yp3nlnhfyrv6yypyaf7x7rk3-flatpak-0.99.2/bin/flatpak-bisect had a zero exit code or showed the expected version
- /nix/store/2ig3b399yp3nlnhfyrv6yypyaf7x7rk3-flatpak-0.99.2/bin/flatpak-coredumpctl passed the binary check.
- /nix/store/2ig3b399yp3nlnhfyrv6yypyaf7x7rk3-flatpak-0.99.2/bin/.flatpak-wrapped passed the binary check.
- /nix/store/2ig3b399yp3nlnhfyrv6yypyaf7x7rk3-flatpak-0.99.2/bin/flatpak passed the binary check.
- 3 of 4 passed binary check by having a zero exit code.
- 2 of 4 passed binary check by having the new version present in output.
- found 0.99.2 with grep in /nix/store/2ig3b399yp3nlnhfyrv6yypyaf7x7rk3-flatpak-0.99.2
- directory tree listing: https://gist.github.com/4cd5330783ac4dc304e7ceba12395ba0
- du listing: https://gist.github.com/81060efb0965f7e05ba54655bce0f2ca