Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 834794

Summary: media-sound/pavucontrol-5.0 does not need dev-cpp/gtkmm[X]
Product: Gentoo Linux Reporter: Sorrow <lynx1534>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Status: RESOLVED FIXED    
Severity: normal CC: adrian.ratiu, arnaudv6, igor.v.kovalenko, jstein, sam
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=583272
https://github.com/gentoo/gentoo/pull/36300
Whiteboard:
Package list:
Runtime testing required: ---

Description Sorrow 2022-03-08 17:45:53 UTC
This is the exact reverse of https://bugs.gentoo.org/583272. Now pavucontrol builds and runs well without X support in gtkmm, but the ebuild still requires it as a dependency.

Reproducible: Always
Comment 1 Adrian Ratiu 2024-04-17 22:13:05 UTC
Hello, I am working on this because I am running a pure wayland system so obviously I can't build pavucontrol with X11 dependencies. :)

The only real hard X11 dependency is libcanberra for which I've opened an upstream merge request to make it optional:

https://gitlab.freedesktop.org/pulseaudio/pavucontrol/-/merge_requests/84

In the meantime we can land this ebuild patch I've been carrying for some time which does the same thing, though it's not an exact backport, because upstream moved from autotools to meson and from gtk 3 to gtk 4.

https://github.com/gentoo/gentoo/pull/36300
Comment 2 Larry the Git Cow gentoo-dev 2024-04-18 10:58:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61c44287d935124e91f90839c177afc5b4e5cb5e

commit 61c44287d935124e91f90839c177afc5b4e5cb5e
Author:     Adrian Ratiu <adrian.ratiu@collabora.com>
AuthorDate: 2024-03-29 21:59:36 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2024-04-18 10:57:08 +0000

    media-libs/pavucontrol: make X optional
    
    The only dependency requiring X is libcanberra,
    which I'm in the process of fixing upstream [1].
    
    In the meantime, since we can't do a clean backport
    from upstream because they moved to gtk 4 and meson
    after releasing 5.0, I'm adding an autotools patch
    and fixing the ebuild so it can work with USE=-X.
    
    I am upstreaming the patch, so by the time we
    upgrade to the next release we can drop it (and
    move to meson / gtk 4).
    
    [1] https://gitlab.freedesktop.org/pulseaudio/pavucontrol/-/merge_requests/84
    Closes: https://bugs.gentoo.org/834794
    Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
    Closes: https://github.com/gentoo/gentoo/pull/36300
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 ...pavucontrol-5.0-make-libcanberra-optional.patch | 125 +++++++++++++++++++++
 media-sound/pavucontrol/pavucontrol-5.0-r3.ebuild  |  52 +++++++++
 2 files changed, 177 insertions(+)