Created attachment 921217 [details] build.log Install `media-libs/gst-plugins-base` first, then `=sys-apps/xdg-desktop-portal-1.20.0` can pass emerge.
Created attachment 921218 [details] emerge --info
(In reply to Puqns67 from comment #0) > Created attachment 921217 [details] > build.log > > Install `media-libs/gst-plugins-base` first, then > `=sys-apps/xdg-desktop-portal-1.20.0` can pass emerge. This tip did not work for me.
Hi, same problem, but i tried also installing gst-plugin-base wich is pulling gstreamer. I minimized all use-flags possible to minimize the installed files and installed xdg-desktop-portal without problem. After i unmerged gstreamer and the plugins and started my environment : labwc . Everything seems fine and running smoothly. cheers Karl
They have an option for this (which we're disabling until we have gstreamer-rs packaged) but they don't respect the option entirely (https://github.com/flatpak/xdg-desktop-portal/issues/1650).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d2c7e21b776f68866e045407c10e6b1133b189f commit 9d2c7e21b776f68866e045407c10e6b1133b189f Author: Sam James <sam@gentoo.org> AuthorDate: 2025-03-19 22:49:00 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-03-19 22:50:11 +0000 sys-apps/xdg-desktop-portal: avoid gstreamer harder for now gstreamer is searched for unconditionally, but we don't have gstreamer-pbutils packaged yet, so that's a problem. Make it conditional for now (as it ought to be upstream either way if they're going to have an option for it). Noticed the upstream bug link and got the patch (tweaked style slightly after) from flint2's PR at https://github.com/gentoo/gentoo/pull/41133. Closes: https://bugs.gentoo.org/951609 Closes: https://bugs.gentoo.org/951611 Signed-off-by: Sam James <sam@gentoo.org> ...-desktop-portal-1.20.0-optional-gstreamer.patch | 104 +++++++++++++++++++++ ...rtal-1.20.0-sandbox-disable-failing-tests.patch | 7 +- .../xdg-desktop-portal-1.20.0.ebuild | 3 + 3 files changed, 111 insertions(+), 3 deletions(-)
To state it explicitly as someone asked on IRC: while I think it'd install fine if you either lacked devices for gst-inspect to probe and had gst installed to begin with, it still needs gst-plugins-rs (or whatever) for that pbutils tool to actually do something useful at runtime.
A reminder: If you first installed `media-libs/gst-plugins-base` and then successfully installed `=sys-apps/xdg-desktop-portal-1.20.0`, you will need to reinstall xdg-desktop-portal since the updated xdg-desktop-portal has not been upgraded to version -r1.
(In reply to Leo Douglas from comment #7) > A reminder: If you first installed `media-libs/gst-plugins-base` and then > successfully installed `=sys-apps/xdg-desktop-portal-1.20.0`, you will need > to reinstall xdg-desktop-portal since the updated xdg-desktop-portal has not > been upgraded to version -r1. I was going to say "I don't see a need", but it does control installation of xdg-desktop-portal-validate-sound, so I'll revbump it now: ``` >>> Merging sys-apps/xdg-desktop-portal-1.20.0 to / * CMP: =sys-apps/xdg-desktop-portal-1.20.0 with sys-apps/xdg-desktop-portal-1.20.0/image * FILES:-usr/libexec/xdg-desktop-portal-validate-sound ```
(In reply to Sam James from comment #8) > (In reply to Leo Douglas from comment #7) > > A reminder: If you first installed `media-libs/gst-plugins-base` and then > > successfully installed `=sys-apps/xdg-desktop-portal-1.20.0`, you will need > > to reinstall xdg-desktop-portal since the updated xdg-desktop-portal has not > > been upgraded to version -r1. > > I was going to say "I don't see a need", but it does control installation of > xdg-desktop-portal-validate-sound, so I'll revbump it now: > ``` > >>> Merging sys-apps/xdg-desktop-portal-1.20.0 to / > * CMP: =sys-apps/xdg-desktop-portal-1.20.0 with > sys-apps/xdg-desktop-portal-1.20.0/image > * FILES:-usr/libexec/xdg-desktop-portal-validate-sound > ``` This is very necessary, especially when executing sudo emerge -ac.
(In reply to Leo Douglas from comment #9) > This is very necessary, especially when executing sudo emerge -ac. It was needed because of the changed image, but I don't understand how it affects depcleaning at all. I didn't add a new dependency in that commit (nor did I remove any, either). Please elaborate?
I can see a scenario where it matters *because* of the image change (because of preserved-libs on that binary for gstreamer), but that has nothing to do with whether the user -1'd gstreamer or not. (It would've been useful to just explicitly mention the binary to begin with.)
*** Bug 951654 has been marked as a duplicate of this bug. ***
Hi, it's interesting to see how BLFS seems to avoid the problem. They dont mention gst-plugins as dependency. But it looks as they disable the tests at all with : meson setup --prefix=/usr --buildtype=release -D tests=disabled .. && So does our ebuild try to manage it similar? -Dinstalled-tests=false $(meson_feature test tests) Sorry for throwing this in without having tried myself. I will do later.
We already disable tests unless you enable them. The gstreamer dep isn't a test only dependency at all.
(In reply to Sam James from comment #4) > They have an option for this (which we're disabling until we have > gstreamer-rs packaged) but they don't respect the option entirely > (https://github.com/flatpak/xdg-desktop-portal/issues/1650). (In reply to Larry the Git Cow from comment #5) > gstreamer is searched for unconditionally, but we don't have > gstreamer-pbutils > packaged yet, so that's a problem. Make it conditional for now (as it > ought I don't understand what gstreamer-pbutils has to do with gstreamer-rs. as explained in the bug description, gstreamer-pbutils is part of gst-plugins-base, refer for example https://packages.debian.org/search?searchon=contents&keywords=gstreamer-pbutils-1.0.pc.
(In reply to Alex Xu (Hello71) from comment #15) I think the answer is "making a mistake". Not sure how I concluded that before. Thanks. I'll fix things up later.
Installing `media-libs/gst-plugins-base` first also worked for me.