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

Bug 923305

Summary: media-video/obs-studio-30.0.2: wayland marked as dependency for browser source but it works without wayland
Product: Gentoo Linux Reporter: tacokoneko
Component: Current packagesAssignee: Chiitoo <chiitoo>
Status: CONFIRMED ---    
Severity: trivial CC: chiitoo, tacokoneko
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
emerge -pqv obs-studio
emerge obs-studio
remove dependency on wayland
emerge obs-studio after patch

Description tacokoneko 2024-01-30 08:19:25 UTC
I have been using OBS Studio's Browser Source without installing dev-libs/wayland for several months by editing the ebuild to remove dev-libs/wayland from the dependencies at line 86. I came here to find out whether there is a specific reason that wayland is marked as a dependency for the browser source, or it's not necessary.

Reproducible: Always

Steps to Reproduce:
1. put dev-libs/wayland in /etc/portage/package.mask and browser in USE
2. emerge obs-studio
Actual Results:  
All ebuilds that could satisfy "dev-libs/wayland" have been masked (dependency required by "media-video/obs-studio-30.0.2::gentoo[browser,-wayland]" [ebuild])

Expected Results:  
Emerging (1 of 1) media-video/obs-studio-30.0.2::gentoo

I am using Xorg
Comment 1 tacokoneko 2024-01-30 08:20:48 UTC
Created attachment 883678 [details]
emerge --info
Comment 2 tacokoneko 2024-01-30 08:23:13 UTC
Created attachment 883679 [details]
emerge -pqv obs-studio
Comment 3 tacokoneko 2024-01-30 08:29:42 UTC
Created attachment 883680 [details]
emerge obs-studio
Comment 4 tacokoneko 2024-01-30 08:31:30 UTC
Created attachment 883684 [details, diff]
remove dependency on wayland
Comment 5 tacokoneko 2024-01-30 08:34:22 UTC
Created attachment 883685 [details]
emerge obs-studio after patch
Comment 6 Chiitoo gentoo-dev 2024-01-30 10:07:36 UTC
That is a good question.

I can not remember why I added it back in November 2022 [1], and I also do not see it being required now.

Will look into changing that dependency.

Thank you!

1. https://gitweb.gentoo.org/repo/gentoo.git/commit/media-video/obs-studio?id=3193b29379d
Comment 7 Chiitoo gentoo-dev 2024-04-02 21:23:20 UTC
Looking into this again, it seems there is some automagic going, where the pre-built

/usr/lib64/obs-plugins/libGLESv2.so

is installed when building with USE="browser", and it will link to

/usr/lib64/libwayland-client.so.0

so it's not entirely safe to simply yank out from everyone.

Will need to look into it a bit more.
Comment 8 tacokoneko 2024-04-10 01:16:20 UTC
OK good to hear, thank you for checking for me. It's not that big of a problem since I can make a local script just for myself to automatically remove the wayland dependency lines after every sync - games-util/heroic-bin has the same situation (depends on wayland but still works when the dependency is removed)