Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923305 - media-video/obs-studio-30.0.2: wayland marked as dependency for browser source but it works without wayland
Summary: media-video/obs-studio-30.0.2: wayland marked as dependency for browser sourc...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Chiitoo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-30 08:19 UTC by tacokoneko
Modified: 2024-04-10 01:16 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge.log,9.71 KB, text/x-log)
2024-01-30 08:20 UTC, tacokoneko
Details
emerge -pqv obs-studio (emerge.log,276 bytes, text/x-log)
2024-01-30 08:23 UTC, tacokoneko
Details
emerge obs-studio (emerge.log,630 bytes, text/x-log)
2024-01-30 08:29 UTC, tacokoneko
Details
remove dependency on wayland (patch,425 bytes, patch)
2024-01-30 08:31 UTC, tacokoneko
Details | Diff
emerge obs-studio after patch (emerge.log,847.61 KB, text/x-log)
2024-01-30 08:34 UTC, tacokoneko
Details

Note You need to log in before you can comment on or make changes to this bug.
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)