flatpak-1.14.4-fuse-3-slotted.patch 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. https://bugs.gentoo.org/906653
  2. --- a/common/flatpak-dir.c
  3. +++ b/common/flatpak-dir.c
  4. @@ -2109,7 +2109,7 @@ flatpak_dir_revokefs_fuse_unmount (OstreeRepo **repo,
  5. fusermount = g_subprocess_new (G_SUBPROCESS_FLAGS_NONE,
  6. error,
  7. - "fusermount", "-u", "-z", mnt_dir,
  8. + "fusermount3", "-u", "-z", mnt_dir,
  9. NULL);
  10. if (g_subprocess_wait_check (fusermount, NULL, error))
  11. {
  12. --- a/tests/can-use-fuse.c
  13. +++ b/tests/can-use-fuse.c
  14. @@ -53,11 +53,11 @@ check_fuse (void)
  15. return FALSE;
  16. }
  17. - fusermount = g_find_program_in_path ("fusermount");
  18. + fusermount = g_find_program_in_path ("fusermount3");
  19. if (fusermount == NULL)
  20. {
  21. - cannot_use_fuse = g_strdup ("fusermount not found in PATH");
  22. + cannot_use_fuse = g_strdup ("fusermount3 not found in PATH");
  23. return FALSE;
  24. }
  25. @@ -69,7 +69,7 @@ check_fuse (void)
  26. if (!g_file_test ("/etc/mtab", G_FILE_TEST_EXISTS))
  27. {
  28. - cannot_use_fuse = g_strdup ("fusermount won't work without /etc/mtab");
  29. + cannot_use_fuse = g_strdup ("fusermount3 won't work without /etc/mtab");
  30. return FALSE;
  31. }
  32. --- a/tests/libtest.sh
  33. +++ b/tests/libtest.sh
  34. @@ -542,7 +542,7 @@ skip_one_without_bwrap () {
  35. }
  36. skip_without_fuse () {
  37. - fusermount --version >/dev/null 2>&1 || skip "no fusermount"
  38. + fusermount3 --version >/dev/null 2>&1 || skip "no fusermount3"
  39. capsh --print | grep -q 'Bounding set.*[^a-z]cap_sys_admin' || \
  40. skip "No cap_sys_admin in bounding set, can't use FUSE"
  41. @@ -608,7 +608,7 @@ commit_to_path () {
  42. cleanup () {
  43. /bin/kill -9 $DBUS_SESSION_BUS_PID
  44. gpg-connect-agent --homedir "${FL_GPG_HOMEDIR}" killagent /bye >&2 || true
  45. - fusermount -u $XDG_RUNTIME_DIR/doc >&2 || :
  46. + fusermount3 -u $XDG_RUNTIME_DIR/doc >&2 || :
  47. kill $(jobs -p) &> /dev/null || true
  48. if test -n "${TEST_SKIP_CLEANUP:-}"; then
  49. echo "# Skipping cleanup of ${TEST_DATA_DIR}"