python/stevedore: update to 5.4.0
[oi-userland.git] / components / multimedia / gst-plugins-base1 / patches / 01-meson.build-socket.patch
blobce9e8a736d1d931318a60f0ba17f46a2b839f8ec
1 --- gst-plugins-base-1.24.7/gst-libs/gst/rtsp/meson.build.orig
2 +++ gst-plugins-base-1.24.7/gst-libs/gst/rtsp/meson.build
3 @@ -48,7 +48,7 @@
4 soversion : soversion,
5 darwin_versions : osxversion,
6 install : true,
7 - dependencies : gstrtsp_deps,
8 + dependencies : gstrtsp_deps + network_deps,
11 library_def = {'lib': gst_rtsp}
12 --- gst-plugins-base-1.24.7/meson.build.orig
13 +++ gst-plugins-base-1.24.7/meson.build
14 @@ -313,6 +313,21 @@
16 core_conf.set('HAVE_LIBDRM', libdrm_dep.found())
19 +# Solaris and Illumos distros split a lot of networking-related code
20 +# into '-lsocket -lnsl'. Anything that calls socketpair(), getifaddr(),
21 +# etc. probably needs to include network_deps
23 +socket_lib = cc.find_library('socket', required: false)
24 +nsl_lib = cc.find_library('nsl', required: false)
25 +network_deps = []
26 +if socket_lib.found()
27 + network_deps += socket_lib
28 +endif
29 +if nsl_lib.found()
30 + network_deps += nsl_lib
31 +endif
33 # X11 checks are for sys/ and tests/
34 x11_dep = dependency('x11', required : get_option('x11'))
35 # GIO is used by the GIO plugin, and by the TCP, SDP, and RTSP plugins
36 --- gst-plugins-base-1.24.7/gst/tcp/meson.build.orig
37 +++ gst-plugins-base-1.24.7/gst/tcp/meson.build
38 @@ -19,7 +19,7 @@
39 tcp_sources,
40 c_args : gst_plugins_base_args,
41 include_directories: [configinc, libsinc],
42 - dependencies : [gst_base_dep, gst_net_dep, gio_dep],
43 + dependencies : [gst_base_dep, gst_net_dep, gio_dep, network_deps],
44 install : true,
45 install_dir : plugins_install_dir,
47 --- gst-plugins-base-1.24.7/tests/check/meson.build.orig
48 +++ gst-plugins-base-1.24.7/tests/check/meson.build
49 @@ -69,9 +69,9 @@
50 [ 'libs/rtspconnection.c' ],
51 [ 'elements/libvisual.c', not is_variable('libvisual_dep') or not libvisual_dep.found() ],
52 [ 'elements/encodebin.c', not theoraenc_dep.found() or not vorbisenc_dep.found() ],
53 - [ 'elements/multifdsink.c', not core_conf.has('HAVE_SYS_SOCKET_H') or not core_conf.has('HAVE_UNISTD_H') ],
54 + [ 'elements/multifdsink.c', not core_conf.has('HAVE_SYS_SOCKET_H') or not core_conf.has('HAVE_UNISTD_H'), [ network_deps ] ],
55 # FIXME: multisocketsink test on windows/msvc
56 - [ 'elements/multisocketsink.c', not core_conf.has('HAVE_SYS_SOCKET_H') or not core_conf.has('HAVE_UNISTD_H') ],
57 + [ 'elements/multisocketsink.c', not core_conf.has('HAVE_SYS_SOCKET_H') or not core_conf.has('HAVE_UNISTD_H'), [ network_deps ] ],
58 [ 'elements/playbin-complex.c', not ogg_dep.found() ],
59 [ 'elements/textoverlay.c', not pango_dep.found() ],
60 [ 'elements/theoradec.c', not ogg_dep.found() or not theoradec_dep.found() ],
61 @@ -79,7 +79,7 @@
62 [ 'elements/vorbistag.c', not vorbisenc_dep.found(), [ vorbis_dep, vorbisenc_dep ] ],
63 [ 'pipelines/oggmux.c', not ogg_dep.found(), [ ogg_dep, ] ],
64 # FIXME: tcp test on windows/msvc
65 - [ 'pipelines/tcp.c', not core_conf.has('HAVE_SYS_SOCKET_H') or not core_conf.has('HAVE_UNISTD_H'), [giounix_dep] ],
66 + [ 'pipelines/tcp.c', not core_conf.has('HAVE_SYS_SOCKET_H') or not core_conf.has('HAVE_UNISTD_H'), [ giounix_dep, network_deps ] ],
67 [ 'pipelines/theoraenc.c', not theoraenc_dep.found(), [ theoraenc_dep ] ],
68 [ 'pipelines/vorbisenc.c', not vorbisenc_dep.found() ],
69 [ 'pipelines/vorbisdec.c', not vorbisenc_dep.found() ],