FS#75622 - [flatpak-builder] disable fuse2 optimization or switch/enable fuse3

Attached to Project: Arch Linux
Opened by tinywrkb (tinywrkb) - Tuesday, 16 August 2022, 19:56 GMT
Last edited by Jan Alexander Steffens (heftig) - Wednesday, 17 August 2022, 22:13 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The fuse2 optimizations break rofiles-fuse (ostree) when ostree is built with fuse3.

> Initializing build dir
> Committing stage init to cache
> Starting build of
> fuse: unknown option(s): `-o splice_write,splice_move'
> ========================================================================
> Building module bcal in /tmp/wrk/flatpak-builder/build/bcal-1
> ========================================================================
> error: Build directory /tmp/wrk/flatpak-builder/rofiles/rofiles-nmtbGu not initialized, use flatpak build-init
> Error: module bcal: Child process exited with code 1


I suggest disabling the optimizations by dropping the `--with-fuse=2` build config option.
An alternative would be switching to fuse3.
And it's also possible to enable both by setting `--with-fuse=2,3`
I confirmed that `ASSUME_FUSE_2` is not set in `config.h` when making any of the suggested changes.

I have only been testing flatpak-builder built with fuse2 against ostree built with fuse3, so I can only say that the first suggestion works perfectly for me. I can't comment about the others yet, but I'll very likely switch flatpak-builder to fuse3 soon.

See: flatpak-builder: context: Make FUSE 2 optimizations opt-in https://github.com/flatpak/flatpak-builder/commit/99b35552274150bd

Blocking  FS#75410 
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Wednesday, 17 August 2022, 22:13 GMT
Reason for closing:  Fixed
Additional comments about closing:  flatpak-builder 1.2.2-2

Loading...