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 797346 - Meson: curl feature option not used
Meson: curl feature option not used
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 1.15.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-10-28 11:30 UTC by Xavier Claessens
Modified: 2018-10-28 11:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Meson: Use the 'curl' feature option (828 bytes, patch)
2018-10-28 11:30 UTC, Xavier Claessens
committed Details | Review

Description Xavier Claessens 2018-10-28 11:30:30 UTC
.
Comment 1 Xavier Claessens 2018-10-28 11:30:51 UTC
Created attachment 374075 [details] [review]
Meson: Use the 'curl' feature option
Comment 2 Tim-Philipp Müller 2018-10-28 11:35:26 UTC
Comment on attachment 374075 [details] [review]
Meson: Use the 'curl' feature option

>-curl_dep = dependency('libcurl', version : '>= 7.35.0', required : false)
>+curl_dep = dependency('libcurl', version : '>= 7.35.0', required : get_option('curl'))
> 
> if curl_dep.found()
>   ssh_dep = dependency('libssh2', version : '>= 1.4.3', required : false)

Wonder if we should also use it for the libssh2 check then? Or add a new 'curl-ssh' option for that?
Comment 3 Xavier Claessens 2018-10-28 11:46:40 UTC
we could have an extra 'ssh2' option, but I don't think we should use get_option('curl') for the libssh2 case, otherwise if we have curl=enabled that would mean that libssh2 is required too, but we should be able to build gstcurl without libssh2.
Comment 4 Xavier Claessens 2018-10-28 11:47:44 UTC
That can be done in a saparate patch too, I made this one because 'curl' was already in meson_options.txt but not used. (and because it fails to build and I wanted to disable curl as workaround)
Comment 5 Tim-Philipp Müller 2018-10-28 11:52:40 UTC
Fair enough :)

commit 8dfe0dd9cef9c84b611dc93fdb7785b2746a168f (HEAD -> master)
Author: Xavier Claessens <xavier.claessens@collabora.com>
Date:   Sun Oct 28 06:47:38 2018 -0400

    meson: Use the 'curl' feature option
    
    https://bugzilla.gnome.org/show_bug.cgi?id=797346
Comment 6 Tim-Philipp Müller 2018-10-28 11:55:01 UTC
commit a4cfb1fa1475cedd296062c6077d21152d36dc04
Author: Tim-Philipp Müller <tim@centricular.com>
Date:   Sun Oct 28 11:53:42 2018 +0000

    meson: add 'curl-ssh2' option for curl libssh2 support
    
    https://bugzilla.gnome.org/show_bug.cgi?id=797346