aes: specify the required OpenSSL version
authorAntonio Ospite <antonio.ospite@collabora.com>
Wed, 6 Oct 2021 11:38:35 +0000 (13:38 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 18 Oct 2021 23:25:50 +0000 (23:25 +0000)
The code in the aes elements assumes OpenSSL >= 1.1.0:

  - implicit library initialization;
  - version retrieved with OpenSSL_version(OPENSSL_VERSION);

and it fails to build with older versions.

Specify the required OpenSSL version explicitly in meson.build so that
the elements are excluded on older systems (e.g. Ubuntu 16.04) and the
rest of GStreamer can still build.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1067>

subprojects/gst-plugins-bad/ext/aes/meson.build

index a200b8d..20b8a2c 100644 (file)
@@ -6,7 +6,7 @@ aes_sources = [
 ]
 
 aes_cargs = []
-aes_dep = dependency('openssl', required : get_option('aes'))
+aes_dep = dependency('openssl', version : '>= 1.1.0', required : get_option('aes'))
 if aes_dep.found()
   aes_cargs += ['-DHAVE_OPENSSL']
 else