Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951611 - sys-apps/xdg-desktop-portal-1.20.0: ERROR: Dependency "gstreamer-pbutils-1.0" not found
Summary: sys-apps/xdg-desktop-portal-1.20.0: ERROR: Dependency "gstreamer-pbutils-1.0"...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 951654 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-03-19 05:24 UTC by Puqns67
Modified: 2025-03-21 15:09 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,5.15 KB, text/x-log)
2025-03-19 05:24 UTC, Puqns67
Details
emerge --info (info.txt,6.76 KB, text/plain)
2025-03-19 05:25 UTC, Puqns67
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Puqns67 2025-03-19 05:24:15 UTC
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.
Comment 1 Puqns67 2025-03-19 05:25:41 UTC
Created attachment 921218 [details]
emerge --info
Comment 2 Alexander Petermann 2025-03-19 15:29:10 UTC
(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.
Comment 3 Karl Ernst Brunk 2025-03-19 18:11:01 UTC
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
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-19 19:31:23 UTC
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).
Comment 5 Larry the Git Cow gentoo-dev 2025-03-19 22:50:31 UTC
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(-)
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-19 23:05:58 UTC
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.
Comment 7 Leo Douglas 2025-03-20 02:51:53 UTC
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.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-20 02:57:20 UTC
(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
```
Comment 9 Leo Douglas 2025-03-20 03:05:24 UTC
(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.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-20 03:07:17 UTC
(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?
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-20 03:11:13 UTC
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.)
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-20 10:42:24 UTC
*** Bug 951654 has been marked as a duplicate of this bug. ***
Comment 13 Karl Ernst Brunk 2025-03-20 10:58:18 UTC
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.
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-20 11:15:24 UTC
We already disable tests unless you enable them. The gstreamer dep isn't a test only dependency at all.
Comment 15 Alex Xu (Hello71) 2025-03-20 12:51:08 UTC
(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.
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-20 12:53:02 UTC
(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.
Comment 17 O. William McClung 2025-03-20 20:05:09 UTC
Installing `media-libs/gst-plugins-base` first also worked for me.