Cerbero build: how to specify gst_plugins_bad source & locally patch?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Cerbero build: how to specify gst_plugins_bad source & locally patch?

GStreamer-devel mailing list
When building GStreamer using cerbero (cross compiling on Linux for Android or iOS) I can see how to control the version of e.g. libnice used - by modifying libnice.recipe

I can set:
stype = SourceType.GIT
remotes = {'origin': 'https://gitlab.com/libnice/libnice.git'}
commit = 'some_commit_hash'

If I want to locally patch the source I can do so, by adding a patch and referring to it in libnice.recipe. I am doing this now to force enable consent freshness for NiceAgent.

I'd prefer to apply a patch to gstwebrtcice.c to select consent freshness when creating the NiceAgent, but I can't work out what determines the webrtcbin source that is used.

gst_plugins_bad-1.0.recipe gives a tarball_checksum, but that seems to refer to the last packaged release rather than the code actually used when building. I must be missing something?



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Cerbero build: how to specify gst_plugins_bad source & locally patch?

GStreamer-devel mailing list
One option is to add to your gst-plugins-bad recipe the new remote such as

remotes = {'origin': '<a href="https://github.com/gstreamer//%(name)s.git'">https://github.com/gstreamer//%(name)s.git'}.

To see what it is doing you can check the log in
build/logs/linux_x86_64/gst-plugins-bad-1.0-fetch.log.
The custom recipe code for GStreamer recipes is in recipes/custom.py

I'm using cerbero/master.

Hope it will help.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Cerbero build: how to specify gst_plugins_bad source & locally patch?

GStreamer-devel mailing list
In reply to this post by GStreamer-devel mailing list
Here is an example for gstreamer-1.0.recipe:

 name = 'gstreamer-1.0'
 btype = BuildType.MESON
 tarball_checksum =
'0ff09245b06c0aeb5d9a156edcab088a7e8213a0bf9c84a1ff0318f9c00c7805'
 remotes = {'origin': '<a href="https://github.com/gstreamer/%(name)s.git'">https://github.com/gstreamer/%(name)s.git'}
 deps = ['glib']

Cheers



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Cerbero build: how to specify gst_plugins_bad source & locally patch?

GStreamer-devel mailing list
Thanks very much, that worked.

After examining gst-plugins-bad-1.0-fetch.log, I was able to add just a
commit line (=> fixed ext/webrtc/gstwebrtcice.c) & the patch to
gst-plugins-bad-1.0.recipe

(we already had: source retrieved from correct repo & odd number build =>
origin/master)

e.g.:
commit = '4b47b96ae16493b83e3995b436fb6cc737b56afa'
patches = ['gst-plugins-bad/0001-webrtc-consent-freshness.patch']




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel