[arch-commits] Commit in xdg-desktop-portal/repos/extra-x86_64 (3 files)
Jan Steffens
heftig at archlinux.org
Tue Oct 29 22:16:27 UTC 2019
Date: Tuesday, October 29, 2019 @ 22:16:26
Author: heftig
Revision: 366083
archrelease: copy trunk to extra-x86_64
Added:
xdg-desktop-portal/repos/extra-x86_64/PKGBUILD
(from rev 366082, xdg-desktop-portal/trunk/PKGBUILD)
xdg-desktop-portal/repos/extra-x86_64/hack.diff
(from rev 366082, xdg-desktop-portal/trunk/hack.diff)
Deleted:
xdg-desktop-portal/repos/extra-x86_64/PKGBUILD
-----------+
PKGBUILD | 92 +++++++++++++++++--------------
hack.diff | 173 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 223 insertions(+), 42 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-29 22:16:16 UTC (rev 366082)
+++ PKGBUILD 2019-10-29 22:16:26 UTC (rev 366083)
@@ -1,42 +0,0 @@
-# Maintainer: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
-# Contributor: Patrick Griffis <tingping at tingping.se>
-
-pkgname=xdg-desktop-portal
-pkgver=1.5.1
-pkgrel=1
-pkgdesc="Desktop integration portals for sandboxed apps"
-url="https://github.com/flatpak/xdg-desktop-portal"
-arch=(x86_64)
-license=(LGPL2.1)
-depends=(glib2 pipewire fuse2 geoclue2)
-makedepends=(python xmlto docbook-xsl git flatpak libportal)
-_commit=c9f727e26ce1ce7c504a92bf59d0fe88e824918f # tags/1.5.1^0
-source=("git+https://github.com/flatpak/xdg-desktop-portal#commit=$_commit")
-sha256sums=('SKIP')
-
-pkgver() {
- cd $pkgname
- git describe --tags | sed 's/-/+/g'
-}
-
-prepare() {
- cd $pkgname
- NOCONFIGURE=1 ./autogen.sh
-}
-
-build() {
- cd $pkgname
- ./configure --prefix=/usr --libexecdir=/usr/lib --enable-pipewire
- make
-}
-
-check() {
- cd $pkgname
- make check
-}
-
-package() {
- depends+=(xdg-desktop-portal-impl)
- cd $pkgname
- make DESTDIR="$pkgdir" install
-}
Copied: xdg-desktop-portal/repos/extra-x86_64/PKGBUILD (from rev 366082, xdg-desktop-portal/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-10-29 22:16:26 UTC (rev 366083)
@@ -0,0 +1,50 @@
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Patrick Griffis <tingping at tingping.se>
+
+pkgname=xdg-desktop-portal
+pkgver=1.5.2
+pkgrel=1
+pkgdesc="Desktop integration portals for sandboxed apps"
+url="https://github.com/flatpak/xdg-desktop-portal"
+arch=(x86_64)
+license=(LGPL2.1)
+depends=(glib2 pipewire fuse2 geoclue2)
+makedepends=(python xmlto docbook-xsl git flatpak)
+checkdepends=(libportal epiphany gedit)
+_commit=5a4e6ed3b4c9322a6e3e79dd10cb881f25e84335 # tags/1.5.2^0
+source=("git+https://github.com/flatpak/xdg-desktop-portal#commit=$_commit"
+ hack.diff)
+sha256sums=('SKIP'
+ 'dfa41dea8882db18b2e9671118f09626a2cc1d17bafcffa578165cab9d58826c')
+
+pkgver() {
+ cd $pkgname
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ cd $pkgname
+
+ # Make tests pass
+ # https://github.com/flatpak/xdg-desktop-portal/issues/394
+ git apply -3 ../hack.diff
+
+ NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+ cd $pkgname
+ ./configure --prefix=/usr --libexecdir=/usr/lib
+ make
+}
+
+check() {
+ cd $pkgname
+ make check
+}
+
+package() {
+ depends+=(xdg-desktop-portal-impl)
+ cd $pkgname
+ make DESTDIR="$pkgdir" install
+}
Copied: xdg-desktop-portal/repos/extra-x86_64/hack.diff (from rev 366082, xdg-desktop-portal/trunk/hack.diff)
===================================================================
--- hack.diff (rev 0)
+++ hack.diff 2019-10-29 22:16:26 UTC (rev 366083)
@@ -0,0 +1,173 @@
+diff --git i/tests/camera.c w/tests/camera.c
+index 4ef0176..197e77d 100644
+--- i/tests/camera.c
++++ w/tests/camera.c
+@@ -239,29 +239,31 @@ test_camera_lockdown (void)
+ require_pipewire ();
+ reset_camera_permissions ();
+ xdp_impl_lockdown_set_disable_camera (lockdown, TRUE);
++ sleep (1);
+
+ keyfile = g_key_file_new ();
+
+ g_key_file_set_integer (keyfile, "backend", "delay", 200);
+ g_key_file_set_integer (keyfile, "result", "marker", 4);
+ g_key_file_set_integer (keyfile, "backend", "response", 0);
+ g_key_file_set_integer (keyfile, "result", "response", 2);
+ g_key_file_set_integer (keyfile, "result", "error_domain", XDG_DESKTOP_PORTAL_ERROR);
+ g_key_file_set_integer (keyfile, "result", "error_code", XDG_DESKTOP_PORTAL_ERROR_NOT_ALLOWED);
+
+ path = g_build_filename (outdir, "access", NULL);
+ g_key_file_save_to_file (keyfile, path, &error);
+ g_assert_no_error (error);
+
+ portal = xdp_portal_new ();
+
+ got_info = 0;
+ xdp_portal_access_camera (portal, NULL, NULL, camera_cb, keyfile);
+
+ while (!got_info)
+ g_main_context_iteration (NULL, TRUE);
+
+ xdp_impl_lockdown_set_disable_camera (lockdown, FALSE);
++ sleep (1);
+ }
+
+ /* Test the effect of the user denying the access dialog */
+diff --git i/tests/filechooser.c w/tests/filechooser.c
+index 0cb4f41..a60f736 100644
+--- i/tests/filechooser.c
++++ w/tests/filechooser.c
+@@ -871,29 +871,31 @@ test_save_file_lockdown (void)
+ };
+
+ xdp_impl_lockdown_set_disable_save_to_disk (lockdown, TRUE);
++ sleep (1);
+
+ keyfile = g_key_file_new ();
+
+ g_key_file_set_integer (keyfile, "backend", "delay", 200);
+ g_key_file_set_integer (keyfile, "backend", "response", 0);
+ g_key_file_set_integer (keyfile, "result", "response", 2);
+ g_key_file_set_integer (keyfile, "result", "error_domain", XDG_DESKTOP_PORTAL_ERROR);
+ g_key_file_set_integer (keyfile, "result", "error_code", XDG_DESKTOP_PORTAL_ERROR_NOT_ALLOWED);
+ g_key_file_set_string_list (keyfile, "result", "uris", uris, g_strv_length ((char **)uris));
+
+ path = g_build_filename (outdir, "filechooser", NULL);
+ g_key_file_save_to_file (keyfile, path, &error);
+ g_assert_no_error (error);
+
+ portal = xdp_portal_new ();
+
+ got_info = 0;
+ xdp_portal_save_file (portal, NULL, "test", FALSE, "test_file.txt", NULL, NULL, NULL, NULL, NULL, NULL, save_file_cb, keyfile);
+
+ while (!got_info)
+ g_main_context_iteration (NULL, TRUE);
+
+ xdp_impl_lockdown_set_disable_save_to_disk (lockdown, FALSE);
++ sleep (1);
+ }
+
+ void
+diff --git i/tests/openuri.c w/tests/openuri.c
+index f55e064..3477dfa 100644
+--- i/tests/openuri.c
++++ w/tests/openuri.c
+@@ -247,28 +247,30 @@ test_open_uri_lockdown (void)
+ g_autofree char *path = NULL;
+
+ xdp_impl_lockdown_set_disable_application_handlers (lockdown, TRUE);
++ sleep (1);
+
+ keyfile = g_key_file_new ();
+
+ g_key_file_set_integer (keyfile, "backend", "delay", 200);
+ g_key_file_set_integer (keyfile, "backend", "response", 0);
+ g_key_file_set_integer (keyfile, "result", "response", 2);
+ g_key_file_set_integer (keyfile, "result", "error_domain", XDG_DESKTOP_PORTAL_ERROR);
+ g_key_file_set_integer (keyfile, "result", "error_code", XDG_DESKTOP_PORTAL_ERROR_NOT_ALLOWED);
+
+ path = g_build_filename (outdir, "appchooser", NULL);
+ g_key_file_save_to_file (keyfile, path, &error);
+ g_assert_no_error (error);
+
+ portal = xdp_portal_new ();
+
+ got_info = 0;
+ xdp_portal_open_uri (portal, NULL, "http://www.flatpak.org", FALSE, NULL, open_uri_cb, keyfile);
+
+ while (!got_info)
+ g_main_context_iteration (NULL, TRUE);
+
+ xdp_impl_lockdown_set_disable_application_handlers (lockdown, FALSE);
++ sleep (1);
+ }
+
+ static void
+diff --git i/tests/print.c w/tests/print.c
+index 3effde8..4a77359 100644
+--- i/tests/print.c
++++ w/tests/print.c
+@@ -187,28 +187,30 @@ test_prepare_print_lockdown (void)
+ g_autofree char *path = NULL;
+
+ xdp_impl_lockdown_set_disable_printing (lockdown, TRUE);
++ sleep (1);
+
+ keyfile = g_key_file_new ();
+
+ g_key_file_set_integer (keyfile, "backend", "delay", 200);
+ g_key_file_set_integer (keyfile, "backend", "response", 0);
+ g_key_file_set_integer (keyfile, "result", "response", 2);
+ g_key_file_set_integer (keyfile, "result", "error_domain", XDG_DESKTOP_PORTAL_ERROR);
+ g_key_file_set_integer (keyfile, "result", "error_code", XDG_DESKTOP_PORTAL_ERROR_NOT_ALLOWED);
+
+ path = g_build_filename (outdir, "print", NULL);
+ g_key_file_save_to_file (keyfile, path, &error);
+ g_assert_no_error (error);
+
+ portal = xdp_portal_new ();
+
+ got_info = 0;
+ xdp_portal_prepare_print (portal, NULL, "test", FALSE, NULL, NULL, NULL, prepare_cb, keyfile);
+
+ while (!got_info)
+ g_main_context_iteration (NULL, TRUE);
+
+ xdp_impl_lockdown_set_disable_printing (lockdown, FALSE);
++ sleep (1);
+ }
+
+ void
+@@ -427,28 +429,30 @@ test_print_lockdown (void)
+ g_autoptr(GDBusConnection) session_bus = NULL;
+
+ xdp_impl_lockdown_set_disable_printing (lockdown, TRUE);
++ sleep (1);
+
+ keyfile = g_key_file_new ();
+
+ g_key_file_set_integer (keyfile, "backend", "delay", 200);
+ g_key_file_set_integer (keyfile, "backend", "response", 0);
+ g_key_file_set_integer (keyfile, "result", "response", 2);
+ g_key_file_set_integer (keyfile, "result", "error_domain", XDG_DESKTOP_PORTAL_ERROR);
+ g_key_file_set_integer (keyfile, "result", "error_code", XDG_DESKTOP_PORTAL_ERROR_NOT_ALLOWED);
+
+ path = g_build_filename (outdir, "print", NULL);
+ g_key_file_save_to_file (keyfile, path, &error);
+ g_assert_no_error (error);
+
+ portal = xdp_portal_new ();
+
+ got_info = 0;
+ xdp_portal_print_file (portal, NULL, "test", FALSE, 0, path, NULL, print_cb, keyfile);
+
+ while (!got_info)
+ g_main_context_iteration (NULL, TRUE);
+
+ xdp_impl_lockdown_set_disable_printing (lockdown, FALSE);
++ sleep (1);
+ }
+
+ void
More information about the arch-commits
mailing list