Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673282 - media-libs/gst-plugins-bad: add webrtc library/plugin from 1.14
Summary: media-libs/gst-plugins-bad: add webrtc library/plugin from 1.14
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: GStreamer package maintainers
URL:
Whiteboard:
Keywords:
Depends on: 673280
Blocks:
  Show dependency tree
 
Reported: 2018-12-16 20:30 UTC by cJ
Modified: 2019-01-06 12:41 UTC (History)
1 user (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 cJ 2018-12-16 20:30:19 UTC
Gstreamer 1.14 has WebRTC components.

The current gst-plugins-bad installs the base library, but not the plugins, which is inconsistent.
Following is a workaround under the form of media-plugins/gst-plugins-webrtc-1.14.3:

# Copyright 2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
GST_ORG_MODULE=gst-plugins-bad

inherit gstreamer

DESCRIPTION="WebRTC plugins for GStreamer"
KEYWORDS="~amd64"
IUSE=""

RDEPEND=">=net-libs/libnice-0.1.14[${MULTILIB_USEDEP}]"
DEPEND="${RDEPEND}"

multilib_src_compile() {
	emake -C gst-libs/gst/webrtc
	gstreamer_multilib_src_compile
}

multilib_src_install() {
	# commented-out because gst-plugins-bad installs the files already
	#emake -C gst-libs/gst/webrtc DESTDIR="${D}" install
	gstreamer_multilib_src_install
}

I'd rather see a webrtc USE flag in gst-plugins-bad :)


Note: this bugs depends on https://bugs.gentoo.org/673280 (libnice version bump)
Comment 1 Mart Raudsepp gentoo-dev 2018-12-16 22:32:26 UTC
That's no workaround - that's how it must be done.
Though if gst-libs part is only used by webrtc plugin, then might want to move that into gst-plugins-webrtc package too.
Comment 2 Joakim Tjernlund 2019-01-06 12:41:10 UTC
(In reply to Mart Raudsepp from comment #1)
> That's no workaround - that's how it must be done.
> Though if gst-libs part is only used by webrtc plugin, then might want to
> move that into gst-plugins-webrtc package too.

farstream creates libgstnice.so (using gst-plugins-libnice)
but this is only for runtime.
I am a bit surprised over the hard version req. on gst-plugins-libnice though.
gst-plugins-libnice-0.1.13 maps to libnice-0.1.13 so one
have to bump gst-plugins-libnice at the same time as net-libs/libnice