After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 796833 - gl: Add configuration switches for turning on/off features with external dependencies
gl: Add configuration switches for turning on/off features with external depe...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal enhancement
: 1.15.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-07-19 09:35 UTC by Carlos Rafael Giani
Modified: 2018-08-01 04:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
enable-gbm switch patch (2.52 KB, patch)
2018-07-19 09:36 UTC, Carlos Rafael Giani
none Details | Review
enable-jpeg and enable-png switches patch (3.44 KB, patch)
2018-07-19 09:38 UTC, Carlos Rafael Giani
committed Details | Review
enable-gbm switch patch v2 (2.46 KB, patch)
2018-07-24 10:49 UTC, Carlos Rafael Giani
committed Details | Review

Description Carlos Rafael Giani 2018-07-19 09:35:04 UTC
Currently, support for GBM, libpng, libjpeg is enabled by autodetecting these packages. Build frameworks like OpenEmbedded however are tailored for customizing builds and allowing them to be as small as possible to fit in a small firmware image. To that end, these frameworks require that it must be possible to explicitely enable/disable such features to guarantee deterministic builds. 

Deterministic builds however won't be possible with uncontrolled autodetection. If for example libpng happens to be around in build #1 (because some other package required it for example), then suddenly gst-plugins-base supports libpng.

To fix that, add --enable switches for png, jpeg, gbm.
Comment 1 Carlos Rafael Giani 2018-07-19 09:36:54 UTC
Created attachment 373090 [details] [review]
enable-gbm switch patch
Comment 2 Carlos Rafael Giani 2018-07-19 09:38:11 UTC
Created attachment 373091 [details] [review]
enable-jpeg and enable-png switches patch
Comment 3 Matthew Waters (ystreet00) 2018-07-22 02:53:15 UTC
Review of attachment 373090 [details] [review]:

Not quite :)

::: m4/gst-gl.m4
@@ +182,3 @@
     fi
 
+    if test "x$HAVE_EGL" = "xyes" -a "x$NEED_GBM" != "xno"; then

This condition needs to be reversed and separated to ask if gbm was explicitly asked for and then error out if EGL wasn't found or was disabled.  i.e. --enable-gbm --disable-egl should error.
Comment 4 Matthew Waters (ystreet00) 2018-07-22 02:56:35 UTC
Review of attachment 373091 [details] [review]:

Looks good
Comment 5 Carlos Rafael Giani 2018-07-24 10:49:55 UTC
Created attachment 373138 [details] [review]
enable-gbm switch patch v2
Comment 6 Matthew Waters (ystreet00) 2018-08-01 04:52:17 UTC
commit 5576475e0fa8acefc6a17adb1214817abceed548
Author: Carlos Rafael Giani <dv@pseudoterminal.org>
Date:   Thu Jul 19 11:16:05 2018 +0200

    gl: Add switches for explicitely enabling/disabling PNG and JPEG support
    
    https://bugzilla.gnome.org/show_bug.cgi?id=796833

commit ad298cf5f57b1e5dacb3d15065bed30ae3f528e7
Author: Carlos Rafael Giani <dv@pseudoterminal.org>
Date:   Thu Jul 19 10:30:54 2018 +0200

    gl: Add switch for explicitely enabling/disabling GBM support
    
    https://bugzilla.gnome.org/show_bug.cgi?id=796833