Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 876971 - media-video/obs-studio: add 'virtualcam' use-flag for optional dependency
Summary: media-video/obs-studio: add 'virtualcam' use-flag for optional dependency
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chiitoo
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-10-13 11:46 UTC by Christian Strahl
Modified: 2023-05-06 11:10 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Strahl 2022-10-13 11:46:41 UTC
please add a 'virtualcam' use-flag, that adds 'media-video/v4l2loopback' as dependency[1].

Or at least print a post installation message, that installing 'media-video/v4l2loopback' is required [1] to use the virtual cam feature in obs studio.

[1] https://obsproject.com/eu/kb/virtual-camera-troubleshooting

Reproducible: Always
Comment 1 Chiitoo gentoo-dev 2022-10-14 05:29:33 UTC
Thinking about this now, I thought I did already do something about it, but I guess I forgot.

I did think of a USE-flag or even unconditional dependency on it, but being a kernel module it's a bit more complicated, so it will likely be a message of sorts.

Thanks for the reminder!
Comment 2 Christian Strahl 2022-10-14 16:25:19 UTC
I would strongly prefer a use-falg, since this way portage knows the dependencies between the packages.

If you later uninstall obs-studio, portage would remove the no longer needed dependencies with an 'emerge -c'.

If I manually install dependencies based on a post installation message, they are added to the world file and remain on my system even if obs-studio is uninstalled or the package is no longer required in a later version of obs-studio.
Comment 3 Joonas Niilola gentoo-dev 2022-10-15 06:40:07 UTC
(In reply to Christian Strahl from comment #2)
> I would strongly prefer a use-falg, since this way portage knows the
> dependencies between the packages.
> 
> If you later uninstall obs-studio, portage would remove the no longer needed
> dependencies with an 'emerge -c'.
> 
> If I manually install dependencies based on a post installation message,
> they are added to the world file and remain on my system even if obs-studio
> is uninstalled or the package is no longer required in a later version of
> obs-studio.

We have a policy against that though, 
https://projects.gentoo.org/qa/policy-guide/dependencies.html#pg0001

You can use portage sets where you can comment stuff. Like
/etc/portage/sets/optfeature
 # obs-studio, virtual cam support
 media-video/v4l2loopback
Comment 4 Larry the Git Cow gentoo-dev 2022-11-08 16:20:31 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3193b29379dcfa2a889a9ad600059df73e749e0d

commit 3193b29379dcfa2a889a9ad600059df73e749e0d
Author:     Jimi Huotari <chiitoo@gentoo.org>
AuthorDate: 2022-11-02 05:19:03 +0000
Commit:     Jimi Huotari <chiitoo@gentoo.org>
CommitDate: 2022-11-08 16:16:54 +0000

    media-video/obs-studio: add USE="qt6 websocket" and python 3.11 + more
    
    - Add support for qt6, websocket plugin, and python 3.11.
    - Update browser related hashes.
    - Adjust dependencies.
    - Remove dependency on 'qtx11extras' which was removed upstream a good
      while ago (thanks-to: マリウス <marius@xn--gckvb8fzb.com>).
    
    Also add an 'optfeature' and an elog message regarding the
    virtual camera feature, and enable 'VST' by default since it's no
    longer a submodule, and doesn't seem to increase the size of things
    much at all.
    
    Lastly, adjust some of the existing elog message wording.
    
    Bug: https://bugs.gentoo.org/876971
    Thanks-to: Ionen Wolkens <ionen@gentoo.org>
    Signed-off-by: Jimi Huotari <chiitoo@gentoo.org>

 media-video/obs-studio/Manifest               |   1 +
 media-video/obs-studio/metadata.xml           |   1 +
 media-video/obs-studio/obs-studio-9999.ebuild | 111 +++++++++++++++++++-------
 3 files changed, 84 insertions(+), 29 deletions(-)
Comment 5 Chiitoo gentoo-dev 2023-05-06 11:10:30 UTC
Considering the policy, and sets mentioned in comment 3, I'll be closing this off for now.

There is at least that post-install message now, though I admit they probably go unnoticed for many users...

In any case, thank you for the report!