From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C641F158089 for ; Fri, 22 Sep 2023 06:41:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 18C312BC014; Fri, 22 Sep 2023 06:41:01 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EDD032BC014 for ; Fri, 22 Sep 2023 06:41:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CCA4F33BE42 for ; Fri, 22 Sep 2023 06:40:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 463D211D4 for ; Fri, 22 Sep 2023 06:40:58 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1695364671.de9365facce0ed2d37216f8cd73c64d7ef2b2a64.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/xdg-desktop-portal/, sys-apps/xdg-desktop-portal/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/xdg-desktop-portal/Manifest sys-apps/xdg-desktop-portal/files/xdg-desktop-portal-1.18.0-sandbox-disable-failing-tests.patch sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.0.ebuild X-VCS-Directories: sys-apps/xdg-desktop-portal/ sys-apps/xdg-desktop-portal/files/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: de9365facce0ed2d37216f8cd73c64d7ef2b2a64 X-VCS-Branch: master Date: Fri, 22 Sep 2023 06:40:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 06d8e98e-c541-416f-9785-d54db93890a9 X-Archives-Hash: 1ea2b4054d5ddc3bc644b5d3f1240484 commit: de9365facce0ed2d37216f8cd73c64d7ef2b2a64 Author: Guillermo Joandet gmail com> AuthorDate: Sat Aug 5 05:29:08 2023 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Fri Sep 22 06:37:51 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de9365fa sys-apps/xdg-desktop-portal: Version bump to 1.18.0 Signed-off-by: Guillermo Joandet gmail.com> Signed-off-by: Andrew Ammerlaan gentoo.org> sys-apps/xdg-desktop-portal/Manifest | 1 + ...rtal-1.18.0-sandbox-disable-failing-tests.patch | 69 +++++++++++++++++ .../xdg-desktop-portal-1.18.0.ebuild | 89 ++++++++++++++++++++++ 3 files changed, 159 insertions(+) diff --git a/sys-apps/xdg-desktop-portal/Manifest b/sys-apps/xdg-desktop-portal/Manifest index 1a7ceb2245bd..3518f9b5a90e 100644 --- a/sys-apps/xdg-desktop-portal/Manifest +++ b/sys-apps/xdg-desktop-portal/Manifest @@ -1 +1,2 @@ DIST xdg-desktop-portal-1.16.0.tar.xz 250524 BLAKE2B 9d5bd760621b114a19c1cc8895f91c43fcfed0dd067ba9678de0f11dc7835ec29c4a2c452274adbd36ee1318359caa8d7ca0c585558eb73a2a4e53528e6b02da SHA512 f7e7e96d3a6757901fbc4c0310aac0afbf37882c279a2859e06f63528049cd9b50dd2d55445d1386f03f62557c1a2ec81d4ee081200367d6269d2dffc75f0912 +DIST xdg-desktop-portal-1.18.0.tar.xz 260788 BLAKE2B 3a7575af17a5b21d6f313a098a9144df9d6f24768c6e16e4fb45382fac3c64aab3b361b29226769c8cc979c278ec61469f32841792bb0f4e7d9e83fc1fab40fc SHA512 416c0736342b2909c10db025da72edca6d106b46224341bdf45ab41152c01b97f4a4eb78df924a6fbc771475bf103c1aea3005d8ff683f1eca935dbd1afe4a51 diff --git a/sys-apps/xdg-desktop-portal/files/xdg-desktop-portal-1.18.0-sandbox-disable-failing-tests.patch b/sys-apps/xdg-desktop-portal/files/xdg-desktop-portal-1.18.0-sandbox-disable-failing-tests.patch new file mode 100644 index 000000000000..148888f43b6f --- /dev/null +++ b/sys-apps/xdg-desktop-portal/files/xdg-desktop-portal-1.18.0-sandbox-disable-failing-tests.patch @@ -0,0 +1,69 @@ +diff --git a/tests/meson.build b/tests/meson.build +index a2dafee..ec2b628 100644 +--- a/tests/meson.build ++++ b/tests/meson.build +@@ -163,20 +163,15 @@ limited_portals = executable( + portal_tests = [ + 'account', + 'background', +- 'camera', + 'color', + 'email', +- 'inhibit', +- 'location', + 'notification', + 'openfile', +- 'openuri', + 'prepareprint', + 'print', + 'savefile', + 'screenshot', + 'trash', +- 'wallpaper', + ] + + test_env = env_tests +diff --git a/tests/test_globalshortcuts.py b/tests/test_globalshortcuts.py +index 56349cb..da0656d 100644 +--- a/tests/test_globalshortcuts.py ++++ b/tests/test_globalshortcuts.py +@@ -20,7 +20,7 @@ class TestGlobalShortcuts: + def test_version(self, portal_mock): + portal_mock.check_version(1) + +- def test_global_shortcuts_create_close_session(self, portal_mock): ++ def _test_global_shortcuts_create_close_session(self, portal_mock): + request = portal_mock.create_request() + options = { + "session_handle_token": "session_token0", +@@ -49,7 +49,7 @@ class TestGlobalShortcuts: + assert session.closed + + @pytest.mark.parametrize("params", ({"force-close": 500},)) +- def test_global_shortcuts_create_session_signal_closed(self, portal_mock): ++ def _test_global_shortcuts_create_session_signal_closed(self, portal_mock): + request = portal_mock.create_request() + options = { + "session_handle_token": "session_token0", +diff --git a/tests/test_remotedesktop.py b/tests/test_remotedesktop.py +index 49b6b18..77648bc 100644 +--- a/tests/test_remotedesktop.py ++++ b/tests/test_remotedesktop.py +@@ -20,7 +20,7 @@ class TestRemoteDesktop: + def test_version(self, portal_mock): + portal_mock.check_version(2) + +- def test_remote_desktop_create_close_session(self, portal_mock): ++ def _test_remote_desktop_create_close_session(self, portal_mock): + request = portal_mock.create_request() + options = { + "session_handle_token": "session_token0", +@@ -49,7 +49,7 @@ class TestRemoteDesktop: + assert session.closed + + @pytest.mark.parametrize("params", ({"force-close": 500},)) +- def test_remote_desktop_create_session_signal_closed(self, portal_mock): ++ def _test_remote_desktop_create_session_signal_closed(self, portal_mock): + request = portal_mock.create_request() + options = { + "session_handle_token": "session_token0", diff --git a/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.0.ebuild b/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.0.ebuild new file mode 100644 index 000000000000..c06c7f539604 --- /dev/null +++ b/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.0.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +inherit meson python-any-r1 systemd + +DESCRIPTION="Desktop integration portal" +HOMEPAGE="https://flatpak.org/ https://github.com/flatpak/xdg-desktop-portal" +SRC_URI="https://github.com/flatpak/${PN}/releases/download/${PV}/${P}.tar.xz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +IUSE="geolocation man systemd test" +RESTRICT="!test? ( test )" + +DEPEND=" + >=dev-libs/glib-2.66:2 + dev-libs/json-glib + >=sys-fs/fuse-3.10.0:3[suid] + x11-libs/gdk-pixbuf + geolocation? ( >=app-misc/geoclue-2.5.3:2.0 ) + >=media-video/pipewire-0.3:= + systemd? ( sys-apps/systemd ) + test? ( + dev-libs/libportal + ) + man? ( dev-python/docutils ) +" +RDEPEND="${DEPEND} + sys-apps/dbus +" +BDEPEND=" + dev-util/gdbus-codegen + sys-devel/gettext + virtual/pkgconfig + test? ( + ${PYTHON_DEPS} + $(python_gen_any_dep ' + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/python-dbusmock[${PYTHON_USEDEP}] + ') + ) +" + +PATCHES=( + # These tests require connections to pipewire, internet, /dev/fuse + "${FILESDIR}/${P}-sandbox-disable-failing-tests.patch" +) + +python_check_deps() { + python_has_version "dev-python/pytest[${PYTHON_USEDEP}]" && + python_has_version "dev-python/python-dbusmock[${PYTHON_USEDEP}]" +} + +src_configure() { + local emesonargs=( + -Ddbus-service-dir="${EPREFIX}/usr/share/dbus-1/services" + -Dflatpak-interfaces-dir="${EPREFIX}/usr/share/dbus-1/interfaces" + -Dsystemd-user-unit-dir="$(systemd_get_userunitdir)" + $(meson_feature test libportal) # Only used for tests + $(meson_feature geolocation geoclue) + $(meson_feature systemd) + -Ddocbook-docs=disabled # requires flatpak + # -Dxmlto-flags= + -Ddatarootdir="${EPREFIX}/usr/share" + -Dinstalled-tests=false + $(meson_feature test pytest) + $(meson_feature man man-pages) + ) + meson_src_configure +} + +pkg_postinst() { + if ! has_version gui-libs/xdg-desktop-portal-lxqt && ! has_version gui-libs/xdg-desktop-portal-wlr && \ + ! has_version kde-plasma/xdg-desktop-portal-kde && ! has_version sys-apps/xdg-desktop-portal-gnome && \ + ! has_version sys-apps/xdg-desktop-portal-gtk; then + elog "${PN} is not usable without any of the following XDP" + elog "implementations installed:" + elog " gui-libs/xdg-desktop-portal-lxqt" + elog " gui-libs/xdg-desktop-portal-wlr" + elog " kde-plasma/xdg-desktop-portal-kde" + elog " sys-apps/xdg-desktop-portal-gnome" + elog " sys-apps/xdg-desktop-portal-gtk" + fi +}