32 Commits

Author SHA1 Message Date
Markus Volk d7accea337 flatpak: update 1.17.6 -> 1.18.0
Changes in 1.18.0
~~~~~~~~~~~~~~~~~
Released: 2026-06-08

Enhancements:

* Improve error handling and printed output of `flatpak-coredumpctl` (#6649,
  #6680)

* Support the AMD vendor specific compute interface (`/dev/kfd`) via the DRI
  device permission (#6648)

* Improve the output of `flatpak update` with failure causes (#6657)

* Improve startup time for fish shell integration (#6635)

* Translation updates: zh_CN (#6671)

Bug fixes:

* Fix building when HAVE_LIBSYSTEMD but not USE_SYSTEM_HELPER is defined (#6652)

* Ignore system bus failures in parental controls check (#6663)

* Fix some return values and replace deprecated `GTimeVal` with
  `g_get_real_time()` (#6646)

* Suppress an unused-result warning in the tests (#6655)

Changes in 1.17.7
~~~~~~~~~~~~~~~~~~
Released: 2026-05-06

Enhancements:

* Add the new permission conditionals `has-usb-device` and `has-usb-portal` to
  allow apps to drop --device=all and --device=usb permissions (#6560)

* Always send the `Flatpak-Upgrade-From` header when updating instead of
  freshly installing, to improve the quality of statistics (#6626)

* Improve how the absence of the system repo is handled (#6621)

* Changes to repos are now more atomic which helps to avoid them being in an
  invalid state. This could be observed when importing the GPG key failed,
  because the system clock was wrong. (#6547)

* A function to report the age of the configuration was added to libflatpak,
  which will help GNOME Software to prevent unnecessary work (#6532)

* Improvements to the build system (#6614, #6610)

* Improve various tests (#6604, #6606, #6619, #6617, #6605, #6625)

* Translation updates: tr (#6629), zh_CN (#6630)

Bug fixes:

* Fix a regression in handling of the fallback-x11 permission, which was
  affecting overrides from Flatseal (#6632)

* Fix a memory leak in the Flatpak portal (#6613)

* Install SELinux configuration files to the right directory (#6622)

* Silence wrong `lseek()` errors when creating sub-sandboxes (#6609)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
2026-06-26 19:59:33 -07:00
Gyorgy Sarvari 15b3c0f141 flatpak: upgrade 1.17.3 -> 1.17.6
Contains fixes for CVE-2026-34078 and CVE-2026-34079

Add explicit CVE_STATUS tags for these CVEs, because they are tracked
without version info by NVD at this time.

Changelog:
17.6:
Bug fixes:
- Fix the remaining regression for Chromium based browsers by not leaking file
  descriptors down to wrapped command
- Fix a regression when installing extra-data without a runtime, which is the
  case for openh264
- Fix the remaining regression for Epiphany by ignoring unusable sandbox-expose
  paths for sub-sandboxes in the portal
- Fix the installed tests by allowing to add a new ref to an existing temporary
  ostree repo
- Avoid closing fds 0/1/2 when they are used as a bad argument to flatpak-run,
  and reduce duplication in handling file descriptor arguments

Enhancements:
- Disable auto-pin in flatpak-repair to preserve the pin state across
  re-installs
- Small improvements for the tests

17.5:
Bug fixes:
- Fix regressions caused by the sandbox escape security fix, which impact some
  browsers, browser-based apps and Steam (#6577, #6569, #6576, #6574)

Enhancements:
- Expand test coverage of flatpak-run features used by flatpak-portal (#6573)

17.4:
Security fixes:
- Fix a complete sandbox escape which leads to host file access and code
  execution in the host context (CVE-2026-34078)
- Prevent arbitrary file deletion on the host filesystem (CVE-2026-34079)
- Prevent arbitrary read-access to files in the system-helper context
  (GHSA-2fxp-43j9-pwvc)
- Prevent orphaning cross-user pull operations (GHSA-89xm-3m96-w3jg)

Enhancements:
- Enable ntsync unconditionally
- Automatic branch following for extensions to ensure that "no-autodownload"
  extensions stay functional after an update that requires a new branch
- Translation updates: eo, kk, sr, zh_CN

Bug fixes:
- Prevent CPR sequence from showing up in the terminal
- Fix a crash for apps/runtimes with multiarch permission
- Fixes for Coverity warnings
- Add test-preinstall.sh to the test matrix source
- Fix a test message to refer to "systemd-localed" instead of "located"

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-04-13 15:28:24 -07:00
Markus Volk 99531e79e7 flatpak: update 1.17.2 -> 1.17.3
Enhancements:

* Improve check for --filesystem paths pointing to a parent folder (#6473)

* Fail if non-interactive and multiple refs, remotes or installations match
  (#5754)

* Default to text auth on WSL (#6491)

* Add build instructions for Ubuntu 24.04 (#6498)

* Show a better message when there are no refs to update (#6521)

* Silence AppStream refresh output on non-interactive runs (#6521)

* Translation updates: pt_BR (#6483), sl (#6468, #6475), sv (#6514), tr (#6528),
  zh_CN (#6469, #6477)

Bug fixes:

* Map the font-dirs.xml file more selectively (#6450)

* Change const pointers. This fixes build issues with glibc 2.43. (#6490)

* Add custom type flatpak_home_t for ~/.local/share/flatpak for SELinux (#6437)

* Fix build warnings when compiling with -Wanalyzer-null-argument and with
  -Wanalyzer-null-dereference (#6527)

* Use raw string for regular expression in the flatpak-bisect script (#6519)

Internal changes:

* Set the `FLATPAK_TRIGGERSDIR` environment variable when running
  installed tests. This fixes a regression with autopkg tests in
  Debian. (#6444)

* Add translator comments for some translatable strings (#6462)

* Fix typos in translatable strings (#6463)

* Fix lots of typos in code comments (#6482)

* Remove an unused function (#6529)

* Update two strings (#6464)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-03-27 19:43:42 -07:00
Liu Yiding 3b77edcab3 flatpak: upgrade 1.17.0 -> 1.17.2
1. Changelog:
    https://github.com/flatpak/flatpak/releases/tag/1.17.2

2. Update 0001-flatpak-pc-add-pc_sysrootdir.patch for 1.17.2

3. Remove http_backend related options as it was removed in 1.17.2

Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-12-23 12:22:42 -08:00
Liu Yiding 7e33b9cc55 flatpak: upgrade 1.16.1 -> 1.17.0
Changelog:
  https://github.com/flatpak/flatpak/releases/tag/1.17.0

Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-11-18 08:17:53 -08:00
Markus Volk 1175f24271 flatpak: update 1.16.0 -> 1.16.1
1.16.1

Enhancements:

    When using parental controls, allow a child account to update existing apps by default, to ensure that security and bugfix updates can be installed. This can be overridden by setting polkit policy rules for the new org.freedesktop.Flatpak.override-parental-controls-update action if necessary. (#5552)
    Make systemd scopes easier to match to Flatpak app instances, by using the instance ID instead of the top-level process ID in the scope name (#6015)
    Access to --device=dri now includes /dev/udmabuf (#6158)
    Improve the error message for an invalid parameter to flatpak-spawn --sandbox-a11y-own-name (#6048)
    Speed up flatpak prune --dry-run by not calculating potential freed space and avoiding operations that would need to hold a lock (#5813, #6121)
    Speed up flatpak permission-reset by only writing entries that have actually changed (#5772)
    Documentation improvements (#4859, #6066, #6134)
    Look for TLS certificates at /etc/containers/certs.d when interacting with OCI registries (#5916)
    Translation updates: bg (#6120), ka (#6176), pl (#6106), pt_BR (#6076, #6188), ro (#6139), ru (#6145), sl (#6054), sv (#6193), tr (#6109)
    This is the first bugfix release of the Flatpak 1.16 series! Users and distributions are strongly encouraged to update to this version.

Bug fixes:

    Fix intermittent flatpak-portal crashes by avoiding unnecessary multi-threading (#5605)
    Don't show a confusing confirmation prompt when flatpak remove --unused removes autoprune-unless extensions that are no longer needed, such as older Nvidia drivers (#5712, #2718)
    Don't propagate $PYTHONPYCACHEPREFIX from host into sandbox (#6110)
    Don't propagate $WAYLAND_DISPLAY, $WAYLAND_SOCKET from host into sandbox if access to the Wayland socket has been denied (#3948)
    When discovering the AT-SPI bus, treat $AT_SPI_BUS_ADDRESS as higher-priority than GetAddress(), more closely matching the behaviour of AT-SPI itself (#6173)
    Fix a memory leak when installing extra-data (#6069)
    Don't show fatal transaction errors twice (#3400)
    Fix the build with -Ddefault_library=static (#6119)
    Fix incorrect error reporting (#6127, #5170)
    When using FLATPAK_TTY_PROGRESS, terminate OSC escape sequence with standard ST sequence instead of xterm-specific BEL (#6092)
    Include all options in shell completion for flatpak search (#6096)

Internal changes:

    Fix an unclear boolean expression (no functional change) (#5013)
    Avoid a duplicate redirection in the test suite (#6117)
    CI updates

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-09-06 10:11:38 -07:00
Alexander Kanavin fc78d37ff0 meta-openembedded/all: adapt to UNPACKDIR changes
Please see
https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265
for what changes are needed, and sed commands that can be used to make them en masse.

I've verified that bitbake -c patch world works with these, but did not run a world
build; the majority of recipes shouldn't need further fixups, but if there are
some that still fall out, they can be fixed in followups.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-25 06:44:52 -07:00
Markus Volk 6ed8a8f67d flatpak: fix path for nologin
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-19 14:36:06 -07:00
Markus Volk dfa01b1eca flatpak: add requested user
This fixes:
WARNING: gnome-image-1.0-r0 do_rootfs: User flatpak has never been defined

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-19 14:36:03 -07:00
Markus Volk 77ed40f75d flatpak: update 1.15.10 -> 1.16.0
Changes in 1.16.1
~~~~~~~~~~~~~~~~~~
Released: not yet

...

Changes in 1.16.0
~~~~~~~~~~~~~~~~~~
Released: 2025-01-09

Bug fixes:

 * Update libglnx to 2024-12-06:
    - Fix an assertion failure if creating a parent directory encounters a
      dangling symlink (GNOME/libglnx#1)
    - Fix a Meson warning

* Don't emit terminal progress indicator escape sequences by default. They are
  interpreted as notifications by some terminal emulators. (#6052)

* Fix introspection annotations in libflatpak

Enhancements:

* Add the `FLATPAK_TTY_PROGRESS` environment variable, which re-enables the
  terminal progress indicator escape sequences added in 1.15.91.

* Document the `FLATPAK_FANCY_OUTPUT` environment variable, which allows
  disabling the fancy formatting when outputting to a terminal.

Changes in 1.15.91
~~~~~~~~~~~~~~~~~~
Released: 2024-12-19

Enhancements:

 * Add the `FLATPAK_DATA_DIR` environment variable, which allows overriding
   at runtime the data directory location that Flatpak uses to search for
   configuration files such as remotes. This is useful for running tests,
   and for when installing using Flatpak in a chroot.

 * Add a `FLATPAK_DOWNLOAD_TMPDIR` variable. This allows using download
   directories other than /var/tmp.

 * Emit progress escape sequence. This can be used by terminal emulators
   to detect and display progress of Flatpak operations on their graphical
   user interfaces.

Bug fixes:

 * Install missing test data. This should fix "as-installed" tests via
   `ginsttest-runner`, used for example in Debian's autopkgtest framework.

 * Unify and improve how the Wayland socket is passed to the sandboxed app.
   This should fix a regression that is triggered by compositors that both
   implement the security-context-v1 protocol, and sets the `WAYLAND_DISPLAY`
   environment variable when launching Flatpak apps. (#5863)

 * Fix the plural form of a translatable string.

Changes in 1.15.12
~~~~~~~~~~~~~~~~~~
Released: 2024-11-28

Bug fixes:

 * Return to using the process ID of the Flatpak app in the cgroup name.
   Using the instance ID in 1.15.11 caused crashes when installing apps,
   extensions or runtimes that use the "extra data" mechanism, which
   does not set up an instance ID. (#6009)

Changes in 1.15.11
~~~~~~~~~~~~~~~~~~
Released: 2024-11-26

Dependencies:

 * In distributions that compile Flatpak to use a separate bubblewrap
   executable, version 0.11.0 is recommended (but not required).
   The minimum bubblewrap continues to be 0.10.0.

 * In distributions that compile Flatpak to use a separate xdg-dbus-proxy
   executable, version 0.1.6 is recommended (but not required).
   The minimum xdg-dbus-proxy continues to be 0.1.0.

Enhancements:

 * Allow applications like WebKit to connect the AT-SPI accessibility tree
   of processes in a sub-sandbox with the tree in the main process (#5898)

     * New sandboxing parameter `flatpak run --a11y-own-name`, which is
       like `--own-name` but for the accessibility bus

     * flatpak-portal API v7: add new sandbox-a11y-own-names option, which
       accepts names matching `${FLATPAK_ID}.*`

     * Apps may call the `org.a11y.atspi.Socket.Embedded` method on names
       matching `${FLATPAK_ID}.Sandboxed.*` by default

 * `flatpak run -vv $app_id` shows all applicable sandboxing parameters
   and their source, including overrides, as debug messages (#5895)

 * Add --device=usb, a subset of --device=all

 * Introduce USB device listing

   * Apps can list which USB devices they want to access ahead of time by
     using the `--usb` parameter. Check the manpages for the more information
     about the accepted syntax.

   * Denying access to USB devices is also possible with the `--no-usb`
     parameter. The syntax is equal to `--usb`.

   * Both options merely store metadata, and aren't used by Flatpak itself.
     This metadata is intended to be used by the (as of now, still in
     progress) USB portal to decide which devices the app can enumerate and
     request access.

 * Add support for KDE search completion

 * Use the instance id of the Flatpak app as part of the cgroup name. This
   better matches the naming conventions for cgroup.

 * Preconfigured repositories can now be set up by OS vendors using
   `${datadir}/flatpak/remotes.d` (typically /usr/share/flatpak/remotes.d),
   in addition to `${sysconfdir}/flatpak/remotes.d` (typically
   /etc/flatpak/remotes.d) which is intended for local sysadmin use

Bug fixes:

 * Update libglnx to 2024-08-23 (#5918)

     * fix build in environments that use -Werror=return-type, such as
       openSUSE Tumbleweed (#5778)

     * add a fallback definition for G_PID_FORMAT with older GLib

     * avoid warnings for g_steal_fd() with newer GLib

     * improve compatibility of g_closefrom() backport with newer GLib

 * Update meson wrap file for bubblewrap to version 0.11.0:

     * drop Autotools build system

     * improve handling of EINTR

     * improve handling of socket control messages

     * improve compatibility with busybox

     * improve compatibility with older Meson

     * fix deprecation warnings

 * Update meson wrap file for xdg-dbus-proxy to version 0.1.6:

     * compatibility with D-Bus implementations that pipeline the
       authentication handshake, such as sd-bus and zbus

     * compatibility with D-Bus implementations that use non-consecutive
       serial numbers, such as godbus and zbus

     * broadcast signals can be allowed without having to add TALK permission
       (#5828)

     * fix memory leaks

 * Fix some memory leaks

 * Translation updates: cs, pl, zh_CN

Internal changes:

 * Better const-correctness (#5913)
 * Fix a shellcheck warning in the tests (#5914)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-02-24 21:31:38 -08:00
Wang Mingyu 0f981198c5 flatpak-xdg-utils: upgrade 1.0.5 -> 1.0.6
Changelog:
==========
- flatpak-spawn now supports --sandbox-a11y-own-name (if supported by portal)
- flatpak-spawn prints a useful error when --host isn't permitted
- fixed minor leak in flatpak-spawn

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-09-10 07:20:36 -07:00
Markus Volk 84d6e138cb cleanup after polkit fix
This commit removes the need to fix polkit permissions:
https://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=d5e90541f8e35916abc930b2da6de037b23d51a1

That allows to do some cleanup

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-09-01 15:54:30 -07:00
Markus Volk 0edc4266ac flatpak: update 1.15.9 -> 1.15.10
Dependencies:

    In distributions that compile Flatpak to use a separate bubblewrap (bwrap) executable, version 0.10.0 is required.
    This version adds a new feature which is required by the security fix in this release.

Security fixes:

    Don't follow symbolic links when mounting persistent directories (--persist option). This prevents a sandbox escape where a malicious or compromised app could edit the symlink to point to a directory that the app should not have been allowed to read or write. (CVE-2024-42472, GHSA-7hgv-f2j8-xw87)

Documentation:

    Mark the 1.12.x and 1.10.x branches as end-of-life (#5352)

Other bug fixes:

    Fix several memory leaks (#5883, #5884)

Internal changes:

    Record a log file when running build-time tests with AddressSanitizer (#5884)

    Add initial suppressions file for AddressSanitizer (#5884)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-08-21 08:45:47 -07:00
Markus Volk cfb7d3fdca flatpak: update 1.15.8 -> 1.15.9
- flatpak now uses wrap files instead of git submodules to fetch bwrap and xdg-dbus-proxy
  For reproducibility reasons, this cannot be done. Add external binaries and configure like
  recommended below:

Dependencies:

    bubblewrap and xdg-dbus-proxy are now provided by Meson wrap files instead of being directly vendored via git submodule. If downloading external software during build is not allowed in your environment, please install suitable versions of bubblewrap and xdg-dbus-proxy separately, then configure Flatpak with options similar to -Dsystem_bubblewrap=bwrap -Dsystem_dbus_proxy=xdg-dbus-proxy (most major distributions package it like this already).

Enhancements:

    If xdg-dbus-proxy is new enough (0.1.6 or later, not yet released), allow two broadcast signals from AT-SPI by default, allowing bus traffic to be reduced. If xdg-dbus-proxy is older, this change will have no practical effect but is harmless. (#5828)

    Install csh profile snippet (#5753)

Bug fixes:

    Expand the list of environment variables that Flatpak apps do not inherit from the host system (#5765, #5785)

    Take time zone information from $TZDIR if set (#5850)

    Fix a memory leak since 1.15.7 when reloading D-Bus configuration (#5856)

    Fix a memory leak when running flatpak permissions (#5844)

    Fix memory leaks in flatpak update (#5816)

    Fix memory leaks when installing packages (#5811)

    Use more similar translatable strings for some error messages (#5748)

    Document flatpak config --set languages '*all*' correctly: it is really *all* (or equivalently *), not just all (#5836)

    Fix a misleading comment in the test for CVE-2024-32462 (#5779)

    Fix a copy/paste error in the 1.15.7 release notes

    On systems where subdirectories of /sys have been made inaccessible, continue without them (#5138)

    Make tests more compatible with non-GNU shell utilities (#5812)

    Translation updates: ka (#5873), hi (#5838), pt_BR (#5877), zh_CN (#5843)

Internal changes:

    libglnx and variant-schema-compiler are now managed as git subtree instead of git submodule. Maintainers and contributors, please see subprojects/README.md for details of how to interact with these. In particular this means that submodules no longer need to be set up before working on a git clone. (#5800, #5845)

    Split library code into more, smaller translation units, reducing internal circular dependencies (#5409, #5801, #5803)

    Add some convenience macros in the test suite (#5693)

    Minor internal robustness improvement (#5833)

    Add configuration for Github Codespaces (#5767)

    Improve CI configuration (#5791)

    Work around infrastructure issues in third-party apt repositories used by default in Github Workflows (#5786)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-07-29 11:01:43 -07:00
Markus Volk cdd196388a flatpak: add PACKAGECONFIG for dconf
Disable by default to avoid a requirement for meta-gnome

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-07-08 08:40:19 -07:00
Markus Volk 4ce72171a0 flatpak: add PACKAGECONFIG knob for malcontent
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-05-21 14:15:11 -07:00
Markus Volk bf80941c3f flatpak;xdg-desktop-portal: add missing runtime dependency on fuse3-utils
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-05-19 08:27:52 -07:00
Markus Volk 10d2bd01b3 flatpak: update 1.15.6 -> 1.15.8
- remove included patches
- set path for fusermount3 to avoid requirement for fuse3-native. This is needed since:
  https://github.com/flatpak/flatpak/commit/2cb17b4eb82ecedaa98b5b7f954cf3e52fa95682

Changes in 1.15.8
~~~~~~~~~~~~~~~~~

Security fixes:

 * Don't allow an executable name to be misinterpreted as a command-line
   option for bwrap(1). This prevents a sandbox escape where a malicious
   or compromised app could ask xdg-desktop-portal to generate a .desktop
   file with access to files outside the sandbox. (CVE-2024-32462)

Other bug fixes:

 * Pass the -export-dynamic linker option as -Wl,-export-dynamic,
   fixing build failures with clang 18 and lld 18 (#5760)

 * Fix a double-free when installation is cancelled (#5763)

 * Fix installed-tests failure with "FUSERMOUNT: unbound variable"
   (#5751)

 * Translation updates: pt_BR (#5762), tr (#5761)

Changes in 1.15.7
~~~~~~~~~~~~~~~~~
Released: 2024-03-27

Dependencies:

 * The Meson build system is now required.
   Compiling with Autotools is no longer possible.

 * In distributions that compile Flatpak to use a separate bubblewrap (bwrap)
   executable, version 0.9.0 is recommended. Several of the bug fixes listed
   below will not be active if an older version is used.

 * In distributions that compile Flatpak to use a separate xdg-dbus-proxy
   executable, version 0.1.5 is recommended.

 * If libmalcontent (parental controls) is enabled, it must be version 0.5.0
   or later.

New features:

 * Automatically remove obsolete driver versions and other autopruned refs
   (#5632)

 * `--socket=inherit-wayland-socket` (#5614)

 * Automatically reload D-Bus session bus configuration after installing
   or upgrading apps, to pick up any exported D-Bus services (#3342)

Bug fixes:

 * Update included copy of bubblewrap to version 0.9.0:

     * `--symlink` is now idempotent, meaning it succeeds if the
       symlink already exists and already has the desired target
       (#2387, #3477, #5255)
     * Report a better error message if `mount(2)` fails with `ENOSPC`
     * Fix a double-close on error reading from `--args`, `--seccomp` or
       `--add-seccomp-fd` argument
     * Improve memory allocation behaviour
     * Silence various compiler warnings

 * Update included copy of bubblewrap to version 0.1.5:

     * Fix handling of long object paths

 * Don't parse `<developer><name/></developer>` as the application name
   (#5700)

 * Don't refuse to start apps when there is no D-Bus system bus available
   (#5076)

 * Don't try to repeat migration of apps whose data was migrated to a new
   name and then deleted (#5668)

 * Improve handling of mixed locales on systems with systemd-localed (#5497)

 * Improve display of ellipsized columns in wide terminals (#5722)

 * Make `flatpak info -e` look for extensions in all installations (#5670)

 * Fix warnings from newer GLib versions (#5660, #5737)

 * Always set the `container` environment variable (#5610)

 * Always let the app inherit redirected file descriptors (#5626)

 * In `flatpak ps`, add xdg-desktop-portal-gnome to the list of backends
   we'll use to learn which apps are running in the background (#5729)

 * Don't use `WAYLAND_SOCKET` unless given `--socket=inherit-wayland-socket`
   (#5614)

 * Use `fusermount3` if compiled with FUSE 3, overridable with
   `-Dsystem_fusermount` compile-time option (#5104)

 * Avoid leaking a temporary variable from /etc/profile.d/flatpak.sh into
   the shell environment (#5574)

 * Improve async-signal safety (#5687)

 * Fix various memory leaks (#5683, #5690, #5691)

 * Avoid undefined behaviour of signed left-shift when storing object IDs
   in a hash table (#5738)

 * Detect the correct gtk-doc when cross-compiling (#5650)

 * Detect the correct wayland-scanner when cross-compiling (#5596)

 * Documentation improvements (#5659, #5677, #5682, #5664, #5719)

 * Skip more tests when FUSE isn't available (#5611)

 * Translation updates (#5602, #5707)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-05-19 08:27:51 -07:00
Markus Volk 50054e7ab1 flatpak: remove unneeded RDEPENDS
The build has been modified to use internal copies of bubblewrap and xdg-dbus-proxy.
https://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=9c68079a26b64b836bc6a28e422a1099f48726d2

We can additionally remove the RDEPENDS for these tools, since flatpak now creates
its own copies of the files in /usr/libexec.

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-02-12 07:44:19 -08:00
Markus Volk f8492c7a28 flatpak: fix gtk-doc build
this fixes:
| Run-time dependency gtk-doc found: NO (tried pkgconfig)
|
| ../git/meson.build:206:13: ERROR: Dependency "gtk-doc" not found, tried pkgconfig

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-01-12 08:51:12 -08:00
Alexander Kanavin 9c68079a26 flatpak: do not rely on executables from the host
This is not how yocto builds work: any needed executables
should come from the build itself, with limited exceptions
listed in HOSTTOOLS. flatpak is entirely capable of building
without requiring them upfront.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-12-27 00:15:53 -08:00
Markus Volk b5ca85bbeb flatpak: Add packageconfigs for man and docbook docs
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-11-20 09:30:40 -08:00
Markus Volk de1d2cbbe4 flatpak: Upgrade 1.15.4 -> 1.15.6
- add a patch to fix build for the newly added wayland_security_context feature
- build wayland_security_context according to wayland distro_feature
- add GIR_MESON_OPTION
- add packageconfigs for selinux and http_backend

Dependencies:

    In distributions that compile Flatpak to use a separate bubblewrap (bwrap)
    executable, version 0.8.0 is now required.

    Enabling the optional Wayland security context feature requires
    libwayland-client, wayland-scanner >= 1.15 and wayland-protocols >= 1.32.

    Ubuntu 18.04 is no longer routinely tested. Support for dependency
    versions included in Ubuntu 18.04 should be considered "at risk".

Features:

    Add --device=input, for access to evdev devices in /dev/input (#5481)

    Update bundled copy of bubblewrap to version 0.8.0, and rely on its
    features:
        Improve error message if seccomp is disabled in kernel config
        Security hardening: set user namespace limit to 0, to prevent creation
        of nested user namespaces in a more robust way (#5084)

    For subsandboxes started by flatpak-portal, inherit environment
    variables from the flatpak run that started the original instance
    rather than from flatpak-portal, fixing behaviour of FLATPAK_GL_DRIVERS
    and similar features (#5278)

    Stop http transfers if a download in progress becomes very slow (#5519)

    Make it easier to configure extra languages, by picking them up from
    AccountsService if configured there (#5006)

    Add new flatpak_transaction_add_rebase_and_uninstall() API,
    allowing end-of-life apps to be replaced by their intended replacement
    more reliably (#3991)

    Create a private Wayland socket with the "security context" extension
    if available, allowing the compositor to identify connections from
    sandboxed apps as belonging to the sandbox (#4920, #5507, #5558)

    Update libglnx to 2023-08-29
        Use features of newer GLib versions if available
        Turn off system-level crash reporting infrastructure during
        some unit tests that involve intentional assertion failures

    Add anchors to link to sections of flatpak-metadata documentation (#5582)

    New translations: ka, nl.

Bug fixes:

    Avoid warnings processing symbolic links with GLib >= 2.77.0, and
    with GLib 2.76.0 (GLib 2.76.1 or later silences these warnings)

    Bypass page cache for backend requests in revokefs, fixing installation
    errors with libostree 2023.4 (#5452)

    Show AppStream metadata in flatpak remote-info as intended
    (#5523; regression in 1.9.1)

    Don't let Flatpak apps inherit VK_DRIVER_FILES or VK_ICD_FILENAMES
    from the host system, which would be wrong for the sandbox (#5553)

    Fix build failure with prereleases of libappstream 0.17.x (#5472)

    Forward-compatibility with libappstream 1.0 (#5563)

    Fix installation with Meson if configured with -Dauto_sideloading=true
    (#5495)

    Fix a memory leak (#5329)

    Fix compiler warnings (#5362, #5366)

    Make the tests fail more comprehensibly if a required tool is missing
    (#5020)

    Clean up /var/tmp/flatpak-cache-* directories on boot (#1119)

    Don't force GIO_USE_VFS=local for programs launched via flatpak-spawn
    (#5567)

    Clarify documentation for D-Bus name ownership (#5582)

    Translation updates: id, tr, zh_CN
    (#5332, #5565)

Internal changes:

    Split up large source files into smaller modules, reducing internal
    circular dependencies (#5410, #5411, #5415, #5419, #5416, #5414)

    Re-synchronize code backported from GLib with the version in GLib
    (#5410)

    Make the flags used to apply "extra data" clearer (#5466)

    Use glnx_opendirat() where possible (#5527)

    CI improvements (#5374, #5381)

(There was never a 1.15.5 release, I got our versioning convention mixed up and
thought we avoided releasing odd micro versions.)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-11-19 19:47:48 -08:00
Sourav Kumar Pramanik 3da59b8a8a meta-oe-components: Avoid usage of nobranch=1
The usage of nobranch=1 in SRC_URI allows using unprotected branches.

This change updates the real branch name in place of nobranch=1 for these components.

Signed-off-by: Sourav Kumar Pramanik <pramanik.souravkumar@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-09-07 08:22:43 -07:00
Markus Volk d0f8cfd93b flatpak: fix api-documentation build
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-08-26 17:32:45 -07:00
Markus Volk ed0c5261ad flatpak: update dependencies
- use system bubblewrap and xdg-dbus-proxy instead of building subprojects
- fix seccomp PACKAGECONFIG

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-07-10 11:01:40 -07:00
Martin Jansa be8c765c7c *.patch: add Upstream-Status to all patches
There is new patch-status QA check in oe-core:
https://git.openembedded.org/openembedded-core/commit/?id=76a685bfcf927593eac67157762a53259089ea8a

This is temporary work around just to hide _many_ warnings from
optional patch-status (if you add it to WARN_QA).

This just added
Upstream-Status: Pending
everywhere without actually investigating what's the proper status.

This is just to hide current QA warnings and to catch new .patch files being
added without Upstream-Status, but the number of Pending patches is now terrible:

5 (26%) 	meta-xfce
6 (50%) 	meta-perl
15 (42%)        meta-webserver
21 (36%)        meta-gnome
25 (57%)        meta-filesystems
26 (43%)        meta-initramfs
45 (45%)        meta-python
47 (55%)        meta-multimedia
312 (63%)       meta-networking
756 (61%)       meta-oe

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-21 09:15:20 -07:00
Markus Volk fb3430b8f3 flatpak: update 1.15.3 -> 1.15.4
Signed-off-by: Markus Volk <f_L_K@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-01 08:55:06 -07:00
Markus Volk 227fca5ef5 flatpak: update 1.15.1 -> 1.15.3
1.15.3
Released: 2023-02-21

Build system:

    Building this version of Flatpak with Meson is recommended. The source release flatpak-1.15.3.tar.xz no longer contains Autotools-generated files, although this version can still be built using Autotools after running ./autogen.sh. Future versions are likely to remove the Autotools build system.

Bug fixes:

    When splitting an upgrade into two steps (download without installing, and then upgrade without allowing further downloads) like GNOME Software does, if an app is marked EOL and superseded by a replacement, don't remove the superseded app in the first step, which would result in the replacement incorrectly not being installed (#5172)
    Fix a crash when --socket=gpg-agent is used (#5095)
    Fix a crash when listing apps if one of them is broken or misconfigured (#5293)
    If an app has invalid syntax in its overrides or metadata, mention the filename in the error message (#5293)
    Unset $GDK_BACKEND for apps, ensuring GTK apps with --socket=fallback-x11 can work (#5303)
    Fix a deprecation warning when compiled with curl >= 7.85 (#5284)
    Translation updates: es, ru (#5266, #5312, #5313)

Internal changes:

    Better diagnostic messages for why runtimes are or are not considered unused (#5237)

1.15.2
Released: 2023-02-06

Bug fixes:

    Never try to export a parent of reserved directories as a --filesystem,
    for example /run, which would prevent the app from starting (#5205, #5207)
    Never try to export a --filesystem below /run/flatpak or /run/host,
    which could similarly prevent the app from starting
    The above change also fixes apps not starting if a --filesystem is a
    symlink to the root directory (#1357)
    Show a warning when the --filesystem exists but cannot be shared with
    the sandbox (#1357, #5035, #5205, #5207)
    Display the intended messages for flatpak repair (#5204)
    Exporting an app to an existing repository on a CIFS filesystem
    now works as intended (#5257)
    Unset $GIO_EXTRA_MODULES for apps, avoiding misbehaviour in some GLib
    apps when set to a path on the host (#5206)
    Unset $XKB_CONFIG_ROOT for apps, avoiding crashes in GTK and Qt apps
    under Wayland when this variable is set to a path not available in the
    sandbox (#5194)
    When using the fish shell, avoid duplicate XDG_DATA_DIRS entries if the
    profile script is sourced more than once (#5198)
    Update included copy of bubblewrap to 0.7.0 for better error messages
    Install SELinux files correctly when building with Meson
    Translation updates: ru, tr (#5256, #5262)

Internal changes:

    Update included copy of libglnx
    flatpak -v now uses the INFO log level, and flatpak -vv uses the
    DEBUG log level in the flatpak log domain. Previously, the extra
    messages that were logged by flatpak -vv were in a separate "flatpak2"
    log domain. G_MESSAGES_DEBUG=flatpak previously had an effect similar to
    flatpak -v, and is now more similar to flatpak -vv.

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-22 01:07:43 -08:00
Markus Volk c011ae12dc flatpak: add runtime dependency on flatpak-xdg-utils
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-26 09:55:57 -08:00
Markus Volk 171116984e flatpak-xdg-utils: add recipe
Helper tools for sandboxed applications

Provides support for thumbnailing, email and xdg-open

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-26 09:55:57 -08:00
Markus Volk 841daa24d5 flatpak: add recipe
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-26 09:55:57 -08:00