diff options
| author | Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> | 2020-02-27 13:27:37 +0000 |
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2020-03-03 18:26:17 -0300 |
| commit | ca1533819c3c5a6cd055e5719a5030daa896262a (patch) | |
| tree | a6008852988e7df0cd6f150e29fc85f1c777cd39 /recipes-multimedia/gstreamer/gstreamer1.0 | |
| parent | cb3f6b356b4b0d4a36e57a280b582cc2cacea326 (diff) | |
| download | meta-freescale-ca1533819c3c5a6cd055e5719a5030daa896262a.tar.gz | |
gstreamer1.0: Transition to meson based builds
Update gstreamer to meson build system.
This update follows the strategy and description provided in commit
[3e71919b865433ca007bf23f9b4f9015e25ac04e] from upstream.
Autotools patches are completely dropped from the layer, and
meson-relevant patches are introduced instead.
Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Diffstat (limited to 'recipes-multimedia/gstreamer/gstreamer1.0')
5 files changed, 439 insertions, 0 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch new file mode 100644 index 000000000..67a872cdd --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0/0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | From a1d7c582392c8bc87fa9411af77b20e011944357 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 3 | Date: Thu, 25 Jan 2018 17:55:02 +0200 | ||
| 4 | Subject: [PATCH] gst/gstpluginloader.c: when env var is set do not fall | ||
| 5 | through to system plugin scanner | ||
| 6 | |||
| 7 | If we set a custom GST_PLUGIN_SCANNER env var, then we probably want to use that and only that. | ||
| 8 | |||
| 9 | Falling through to the one installed on the system is problamatic in cross-compilation | ||
| 10 | environemnts, regardless of whether one pointed to by the env var succeeded or failed. | ||
| 11 | |||
| 12 | Upstream-Status: Pending | ||
| 13 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 14 | --- | ||
| 15 | gst/gstpluginloader.c | 4 +--- | ||
| 16 | 1 file changed, 1 insertion(+), 3 deletions(-) | ||
| 17 | |||
| 18 | diff --git a/gst/gstpluginloader.c b/gst/gstpluginloader.c | ||
| 19 | index 430829d..3a75731 100644 | ||
| 20 | --- a/gst/gstpluginloader.c | ||
| 21 | +++ b/gst/gstpluginloader.c | ||
| 22 | @@ -471,9 +471,7 @@ gst_plugin_loader_spawn (GstPluginLoader * loader) | ||
| 23 | helper_bin = g_strdup (env); | ||
| 24 | res = gst_plugin_loader_try_helper (loader, helper_bin); | ||
| 25 | g_free (helper_bin); | ||
| 26 | - } | ||
| 27 | - | ||
| 28 | - if (!res) { | ||
| 29 | + } else { | ||
| 30 | GST_LOG ("Trying installed plugin scanner"); | ||
| 31 | |||
| 32 | #ifdef G_OS_WIN32 | ||
| 33 | -- | ||
| 34 | 2.15.1 | ||
| 35 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0002-meson-build-gir-even-when-cross-compiling-if-introsp.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0002-meson-build-gir-even-when-cross-compiling-if-introsp.patch new file mode 100644 index 000000000..1ed7198a5 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0/0002-meson-build-gir-even-when-cross-compiling-if-introsp.patch | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | From 35db4a2433fbdf8612cf98b5aab5b14aeb5372f8 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= <tim@centricular.com> | ||
| 3 | Date: Thu, 17 Oct 2019 12:13:35 +0100 | ||
| 4 | Subject: [PATCH] meson: build gir even when cross-compiling if introspection | ||
| 5 | was enabled explicitly | ||
| 6 | |||
| 7 | This can be made to work in certain circumstances when | ||
| 8 | cross-compiling, so default to not building g-i stuff | ||
| 9 | when cross-compiling, but allow it if introspection was | ||
| 10 | enabled explicitly via -Dintrospection=enabled. | ||
| 11 | |||
| 12 | Fixes #454 and #381. | ||
| 13 | |||
| 14 | Upstream-Status: Backport [35db4a2433fbdf8612cf98b5aab5b14aeb5372f8] | ||
| 15 | |||
| 16 | Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org> | ||
| 17 | --- | ||
| 18 | meson.build | 2 +- | ||
| 19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 20 | |||
| 21 | diff --git a/meson.build b/meson.build | ||
| 22 | index 90d98d8eb..a47e7f34e 100644 | ||
| 23 | --- a/meson.build | ||
| 24 | +++ b/meson.build | ||
| 25 | @@ -466,7 +466,7 @@ rt_lib = cc.find_library('rt', required : false) | ||
| 26 | gir = find_program('g-ir-scanner', required : get_option('introspection')) | ||
| 27 | gnome = import('gnome') | ||
| 28 | |||
| 29 | -build_gir = gir.found() and not meson.is_cross_build() | ||
| 30 | +build_gir = gir.found() and (not meson.is_cross_build() or get_option('introspection').enabled()) | ||
| 31 | |||
| 32 | gir_init_section = [ '--add-init-section=extern void gst_init(gint*,gchar**);' + \ | ||
| 33 | 'g_setenv("GST_REGISTRY_DISABLE", "yes", TRUE);' + \ | ||
| 34 | -- | ||
| 35 | 2.17.1 | ||
| 36 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0003-meson-Add-valgrind-feature.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0003-meson-Add-valgrind-feature.patch new file mode 100644 index 000000000..f553340f4 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0/0003-meson-Add-valgrind-feature.patch | |||
| @@ -0,0 +1,74 @@ | |||
| 1 | From f6c7973c03d9ba7dab60c496e768c5e6c4ee824c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Carlos Rafael Giani <crg7475@mailbox.org> | ||
| 3 | Date: Sun, 20 Oct 2019 10:36:44 +0200 | ||
| 4 | Subject: [PATCH] meson: Add valgrind feature | ||
| 5 | |||
| 6 | This allows for enabling/disabling Valgrind support. Since Valgrind is | ||
| 7 | an external dependency, such a feature is needed by build environemnts | ||
| 8 | such as Yocto to make sure builds are deterministic. These changes also | ||
| 9 | add more Valgrind specific configure log output. | ||
| 10 | |||
| 11 | Upstream-Status: Pending | ||
| 12 | |||
| 13 | Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org> | ||
| 14 | --- | ||
| 15 | meson.build | 23 ++++++++++++++++++++++- | ||
| 16 | meson_options.txt | 1 + | ||
| 17 | 2 files changed, 23 insertions(+), 1 deletion(-) | ||
| 18 | |||
| 19 | diff --git a/meson.build b/meson.build | ||
| 20 | index b55ecc5..4751761 100644 | ||
| 21 | --- a/meson.build | ||
| 22 | +++ b/meson.build | ||
| 23 | @@ -199,7 +199,6 @@ check_headers = [ | ||
| 24 | 'sys/wait.h', | ||
| 25 | 'ucontext.h', | ||
| 26 | 'unistd.h', | ||
| 27 | - 'valgrind/valgrind.h', | ||
| 28 | 'sys/resource.h', | ||
| 29 | ] | ||
| 30 | |||
| 31 | @@ -214,6 +213,28 @@ foreach h : check_headers | ||
| 32 | endif | ||
| 33 | endforeach | ||
| 34 | |||
| 35 | +valgrind_option = get_option('valgrind') | ||
| 36 | +if valgrind_option.disabled() | ||
| 37 | + message('Valgrind support not requested; disabled.') | ||
| 38 | +else | ||
| 39 | + valgrind_header = 'valgrind/valgrind.h' | ||
| 40 | + has_valgrind_header = cc.has_header(valgrind_header) | ||
| 41 | + if has_valgrind_header | ||
| 42 | + message('Valgrind support requested, and header ' + valgrind_header + \ | ||
| 43 | + ' found. Enabled Valgrind support.') | ||
| 44 | + define = 'HAVE_' + valgrind_header.underscorify().to_upper() | ||
| 45 | + cdata.set(define, 1) | ||
| 46 | + else | ||
| 47 | + if valgrind_option.enabled() | ||
| 48 | + error('Valgrind support requested and set as required, but header ' + \ | ||
| 49 | + valgrind_header + ' not found.') | ||
| 50 | + else | ||
| 51 | + message('Valgrind support requested, but header ' + valgrind_header + \ | ||
| 52 | + ' not found. Disabling Valgrind support.') | ||
| 53 | + endif | ||
| 54 | + endif | ||
| 55 | +endif | ||
| 56 | + | ||
| 57 | if cc.has_member('struct tm', 'tm_gmtoff', prefix : '#include <time.h>') | ||
| 58 | cdata.set('HAVE_TM_GMTOFF', 1) | ||
| 59 | endif | ||
| 60 | diff --git a/meson_options.txt b/meson_options.txt | ||
| 61 | index e7ff7ba..8afde39 100644 | ||
| 62 | --- a/meson_options.txt | ||
| 63 | +++ b/meson_options.txt | ||
| 64 | @@ -19,6 +19,7 @@ option('memory-alignment', type: 'combo', | ||
| 65 | |||
| 66 | # Feature options | ||
| 67 | option('check', type : 'feature', value : 'auto', description : 'Build unit test libraries') | ||
| 68 | +option('valgrind', type : 'feature', value : 'auto', description : 'Enable Valgrind support') | ||
| 69 | option('libunwind', type : 'feature', value : 'auto', description : 'Use libunwind to generate backtraces') | ||
| 70 | option('libdw', type : 'feature', value : 'auto', description : 'Use libdw to generate better backtraces from libunwind') | ||
| 71 | option('dbghelp', type : 'feature', value : 'auto', description : 'Use dbghelp to generate backtraces') | ||
| 72 | -- | ||
| 73 | 2.17.1 | ||
| 74 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0004-meson-Add-option-for-installed-tests.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0004-meson-Add-option-for-installed-tests.patch new file mode 100644 index 000000000..0e6c44ea3 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0/0004-meson-Add-option-for-installed-tests.patch | |||
| @@ -0,0 +1,257 @@ | |||
| 1 | From b843400284751968862751dfe93853f151551c64 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Carlos Rafael Giani <crg7475@mailbox.org> | ||
| 3 | Date: Fri, 25 Oct 2019 00:06:26 +0200 | ||
| 4 | Subject: [PATCH] meson: Add option for installed tests | ||
| 5 | |||
| 6 | This adds an option for producing installed versions of the unit tests. | ||
| 7 | These versions don't need meson to run (only a small shell script). This | ||
| 8 | makes it easier to run cross compiled tests on a target machine. | ||
| 9 | |||
| 10 | Upstream-Status: Pending | ||
| 11 | |||
| 12 | Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org> | ||
| 13 | --- | ||
| 14 | build-aux/gen-installed-test-desc.py | 18 ++++++ | ||
| 15 | build-aux/gen-installed-test-shscript.py | 25 ++++++++ | ||
| 16 | meson_options.txt | 2 + | ||
| 17 | tests/check/meson.build | 46 +++++++++++++- | ||
| 18 | tests/files/testfile | 80 ++++++++++++++++++++++++ | ||
| 19 | 5 files changed, 170 insertions(+), 1 deletion(-) | ||
| 20 | create mode 100644 build-aux/gen-installed-test-desc.py | ||
| 21 | create mode 100644 build-aux/gen-installed-test-shscript.py | ||
| 22 | create mode 100644 tests/files/testfile | ||
| 23 | |||
| 24 | diff --git a/build-aux/gen-installed-test-desc.py b/build-aux/gen-installed-test-desc.py | ||
| 25 | new file mode 100644 | ||
| 26 | index 0000000..69e8a0f | ||
| 27 | --- /dev/null | ||
| 28 | +++ b/build-aux/gen-installed-test-desc.py | ||
| 29 | @@ -0,0 +1,18 @@ | ||
| 30 | +import sys | ||
| 31 | +import os | ||
| 32 | +import argparse | ||
| 33 | + | ||
| 34 | +def write_template(filename, data): | ||
| 35 | + with open(filename, 'w') as f: | ||
| 36 | + f.write(data) | ||
| 37 | + | ||
| 38 | +def build_template(testdir, testname): | ||
| 39 | + return "[Test]\nType=session\nExec={}\n".format(os.path.join(testdir, testname)) | ||
| 40 | + | ||
| 41 | +argparser = argparse.ArgumentParser(description='Generate installed-test data.') | ||
| 42 | +argparser.add_argument('--test-execdir', metavar='dir', required=True, help='Installed test directory') | ||
| 43 | +argparser.add_argument('--testname', metavar='name', required=True, help='Installed test name') | ||
| 44 | +argparser.add_argument('--output', metavar='file', required=True, help='Output file') | ||
| 45 | +args = argparser.parse_args() | ||
| 46 | + | ||
| 47 | +write_template(args.output, build_template(args.test_execdir, args.testname)) | ||
| 48 | diff --git a/build-aux/gen-installed-test-shscript.py b/build-aux/gen-installed-test-shscript.py | ||
| 49 | new file mode 100644 | ||
| 50 | index 0000000..5da86fb | ||
| 51 | --- /dev/null | ||
| 52 | +++ b/build-aux/gen-installed-test-shscript.py | ||
| 53 | @@ -0,0 +1,25 @@ | ||
| 54 | +import sys | ||
| 55 | +import os | ||
| 56 | +import argparse | ||
| 57 | + | ||
| 58 | +def write_template(filename, data): | ||
| 59 | + with open(filename, 'w') as f: | ||
| 60 | + f.write(data) | ||
| 61 | + | ||
| 62 | +def build_template(testdir, testname): | ||
| 63 | + return ''.join([ | ||
| 64 | + "#!/usr/bin/env sh\n", | ||
| 65 | + "export GST_STATE_IGNORE_ELEMENTS=''\n", | ||
| 66 | + "export CK_DEFAULT_TIMEOUT=20\n", | ||
| 67 | + "export GST_PLUGIN_LOADING_WHITELIST='gstreamer'\n", | ||
| 68 | + "{}\n".format(os.path.join(testdir, testname)), | ||
| 69 | + ]) | ||
| 70 | + | ||
| 71 | +argparser = argparse.ArgumentParser(description='Generate installed-test data.') | ||
| 72 | +argparser.add_argument('--test-execdir', metavar='dir', required=True, help='Installed test directory') | ||
| 73 | +argparser.add_argument('--testname', metavar='name', required=True, help='Installed test name') | ||
| 74 | +argparser.add_argument('--output', metavar='file', required=True, help='Output file') | ||
| 75 | +args = argparser.parse_args() | ||
| 76 | + | ||
| 77 | +write_template(args.output, build_template(args.test_execdir, args.testname)) | ||
| 78 | +os.chmod(args.output, 0o755) | ||
| 79 | diff --git a/meson_options.txt b/meson_options.txt | ||
| 80 | index 8afde39..8884dcc 100644 | ||
| 81 | --- a/meson_options.txt | ||
| 82 | +++ b/meson_options.txt | ||
| 83 | @@ -16,6 +16,8 @@ option('poisoning', type : 'boolean', value : false, description : 'Enable poiso | ||
| 84 | option('memory-alignment', type: 'combo', | ||
| 85 | choices : ['1', '2', '4', '8', '16', '32', '64', '128', '256', '512', '1024', '2048', '4096', '8192', 'malloc', 'pagesize'], | ||
| 86 | value: 'malloc') | ||
| 87 | +option('installed-tests', type : 'boolean', value : false, description : 'enable installed tests') | ||
| 88 | +option('test-files-path', type : 'string', description : 'Path where to find test files') | ||
| 89 | |||
| 90 | # Feature options | ||
| 91 | option('check', type : 'feature', value : 'auto', description : 'Build unit test libraries') | ||
| 92 | diff --git a/tests/check/meson.build b/tests/check/meson.build | ||
| 93 | index 04da83f..2db7f76 100644 | ||
| 94 | --- a/tests/check/meson.build | ||
| 95 | +++ b/tests/check/meson.build | ||
| 96 | @@ -118,11 +118,17 @@ if add_languages('cpp', required : false) | ||
| 97 | ] | ||
| 98 | endif | ||
| 99 | |||
| 100 | +test_files_path = get_option('test-files-path') | ||
| 101 | +if test_files_path == '' | ||
| 102 | + test_files_path = meson.current_source_dir() + '/../files' | ||
| 103 | +endif | ||
| 104 | +message('Using path "@0@" as the path to read test files from'.format(test_files_path)) | ||
| 105 | + | ||
| 106 | test_defines = [ | ||
| 107 | '-UG_DISABLE_ASSERT', | ||
| 108 | '-UG_DISABLE_CAST_CHECKS', | ||
| 109 | '-DGST_CHECK_TEST_ENVIRONMENT_BEACON="GST_STATE_IGNORE_ELEMENTS"', | ||
| 110 | - '-DTESTFILE="' + meson.current_source_dir() + '/meson.build"', | ||
| 111 | + '-DTESTFILE="@0@"'.format(test_files_path + '/testfile'), | ||
| 112 | '-DGST_USE_UNSTABLE_API', | ||
| 113 | '-DGST_DISABLE_DEPRECATED', | ||
| 114 | ] | ||
| 115 | @@ -137,6 +143,14 @@ endif | ||
| 116 | glib_deps = [gio_dep, gobject_dep, gmodule_dep, glib_dep] | ||
| 117 | gst_deps = [gst_dep, gst_base_dep, gst_check_dep, gst_net_dep, gst_controller_dep] | ||
| 118 | |||
| 119 | +installed_tests_datadir = join_paths(prefix, get_option('datadir'), 'installed-tests', 'gstreamer-1.0') | ||
| 120 | +installed_tests_execdir = join_paths(prefix, libexecdir, 'installed-tests', 'gstreamer-1.0') | ||
| 121 | +installed_tests_enabled = get_option('installed-tests') | ||
| 122 | + | ||
| 123 | +python = import('python').find_installation() | ||
| 124 | +gen_installed_test_desc = files('../../build-aux/gen-installed-test-desc.py') | ||
| 125 | +gen_installed_test_shscript = files('../../build-aux/gen-installed-test-shscript.py') | ||
| 126 | + | ||
| 127 | foreach t : core_tests | ||
| 128 | fname = t[0] | ||
| 129 | test_name = fname.split('.')[0].underscorify() | ||
| 130 | @@ -150,8 +164,38 @@ foreach t : core_tests | ||
| 131 | include_directories : [configinc], | ||
| 132 | link_with : link_with_libs, | ||
| 133 | dependencies : test_deps + glib_deps + gst_deps, | ||
| 134 | + install_dir: installed_tests_execdir, | ||
| 135 | + install: installed_tests_enabled | ||
| 136 | ) | ||
| 137 | |||
| 138 | + if installed_tests_enabled | ||
| 139 | + installed_test_shscript = test_name + '.sh' | ||
| 140 | + shscript = custom_target (test_name + '_shscript', | ||
| 141 | + output: installed_test_shscript, | ||
| 142 | + command: [ | ||
| 143 | + python, | ||
| 144 | + gen_installed_test_shscript, | ||
| 145 | + '--test-execdir=@0@'.format(installed_tests_execdir), | ||
| 146 | + '--testname=@0@'.format(test_name), | ||
| 147 | + '--output=@0@'.format(join_paths('@OUTDIR@', installed_test_shscript)), | ||
| 148 | + ], | ||
| 149 | + install: true, | ||
| 150 | + install_dir: installed_tests_execdir) | ||
| 151 | + | ||
| 152 | + installed_test_desc = test_name + '.test' | ||
| 153 | + data = custom_target(test_name + '_desc', | ||
| 154 | + output: installed_test_desc, | ||
| 155 | + command: [ | ||
| 156 | + python, | ||
| 157 | + gen_installed_test_desc, | ||
| 158 | + '--test-execdir=@0@'.format(installed_tests_execdir), | ||
| 159 | + '--testname=@0@'.format(installed_test_shscript), | ||
| 160 | + '--output=@0@'.format(join_paths('@OUTDIR@', installed_test_desc)), | ||
| 161 | + ], | ||
| 162 | + install: true, | ||
| 163 | + install_dir: installed_tests_datadir) | ||
| 164 | + endif | ||
| 165 | + | ||
| 166 | env = environment() | ||
| 167 | env.set('GST_PLUGIN_PATH_1_0', meson.build_root()) | ||
| 168 | env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '') | ||
| 169 | diff --git a/tests/files/testfile b/tests/files/testfile | ||
| 170 | new file mode 100644 | ||
| 171 | index 0000000..89954e0 | ||
| 172 | --- /dev/null | ||
| 173 | +++ b/tests/files/testfile | ||
| 174 | @@ -0,0 +1,80 @@ | ||
| 175 | +................................................................................ | ||
| 176 | +................................................................................ | ||
| 177 | +................................................................................ | ||
| 178 | +................................................................................ | ||
| 179 | +................................................................................ | ||
| 180 | +................................................................................ | ||
| 181 | +................................................................................ | ||
| 182 | +................................................................................ | ||
| 183 | +................................................................................ | ||
| 184 | +................................................................................ | ||
| 185 | +................................................................................ | ||
| 186 | +................................................................................ | ||
| 187 | +................................................................................ | ||
| 188 | +................................................................................ | ||
| 189 | +................................................................................ | ||
| 190 | +................................................................................ | ||
| 191 | +................................................................................ | ||
| 192 | +................................................................................ | ||
| 193 | +................................................................................ | ||
| 194 | +................................................................................ | ||
| 195 | +................................................................................ | ||
| 196 | +................................................................................ | ||
| 197 | +................................................................................ | ||
| 198 | +................................................................................ | ||
| 199 | +................................................................................ | ||
| 200 | +................................................................................ | ||
| 201 | +................................................................................ | ||
| 202 | +................................................................................ | ||
| 203 | +................................................................................ | ||
| 204 | +................................................................................ | ||
| 205 | +................................................................................ | ||
| 206 | +................................................................................ | ||
| 207 | +................................................................................ | ||
| 208 | +................................................................................ | ||
| 209 | +................................................................................ | ||
| 210 | +................................................................................ | ||
| 211 | +................................................................................ | ||
| 212 | +................................................................................ | ||
| 213 | +................................................................................ | ||
| 214 | +................................................................................ | ||
| 215 | +................................................................................ | ||
| 216 | +................................................................................ | ||
| 217 | +................................................................................ | ||
| 218 | +................................................................................ | ||
| 219 | +................................................................................ | ||
| 220 | +................................................................................ | ||
| 221 | +................................................................................ | ||
| 222 | +................................................................................ | ||
| 223 | +................................................................................ | ||
| 224 | +................................................................................ | ||
| 225 | +................................................................................ | ||
| 226 | +................................................................................ | ||
| 227 | +................................................................................ | ||
| 228 | +................................................................................ | ||
| 229 | +................................................................................ | ||
| 230 | +................................................................................ | ||
| 231 | +................................................................................ | ||
| 232 | +................................................................................ | ||
| 233 | +................................................................................ | ||
| 234 | +................................................................................ | ||
| 235 | +................................................................................ | ||
| 236 | +................................................................................ | ||
| 237 | +................................................................................ | ||
| 238 | +................................................................................ | ||
| 239 | +................................................................................ | ||
| 240 | +................................................................................ | ||
| 241 | +................................................................................ | ||
| 242 | +................................................................................ | ||
| 243 | +................................................................................ | ||
| 244 | +................................................................................ | ||
| 245 | +................................................................................ | ||
| 246 | +................................................................................ | ||
| 247 | +................................................................................ | ||
| 248 | +................................................................................ | ||
| 249 | +................................................................................ | ||
| 250 | +................................................................................ | ||
| 251 | +................................................................................ | ||
| 252 | +................................................................................ | ||
| 253 | +................................................................................ | ||
| 254 | +................................................................................ | ||
| 255 | -- | ||
| 256 | 2.17.1 | ||
| 257 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/capfix.patch b/recipes-multimedia/gstreamer/gstreamer1.0/capfix.patch new file mode 100644 index 000000000..7ca3d5ad4 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0/capfix.patch | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | Currently gstreamer configuration depends on whether setcap is found on the host | ||
| 2 | system. Turn this into a configure option to make builds deterinistic. | ||
| 3 | |||
| 4 | RP 2020/2/19 | ||
| 5 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
| 6 | Upstream-Status: Pending | ||
| 7 | |||
| 8 | Index: gstreamer-1.16.1/libs/gst/helpers/meson.build | ||
| 9 | =================================================================== | ||
| 10 | --- gstreamer-1.16.1.orig/libs/gst/helpers/meson.build | ||
| 11 | +++ gstreamer-1.16.1/libs/gst/helpers/meson.build | ||
| 12 | @@ -73,7 +73,12 @@ if have_ptp | ||
| 13 | endif | ||
| 14 | endif | ||
| 15 | |||
| 16 | - setcap = find_program('setcap', '/usr/sbin/setcap', '/sbin/setcap', required : false) | ||
| 17 | + setcap_feature = get_option('setcap') | ||
| 18 | + if setcap_feature.disabled() | ||
| 19 | + setcap = find_program('dontexist', required : false) | ||
| 20 | + else | ||
| 21 | + setcap = find_program('setcap', '/usr/sbin/setcap', '/sbin/setcap', required : false) | ||
| 22 | + endif | ||
| 23 | |||
| 24 | # user/group to change to in gst-ptp-helper | ||
| 25 | ptp_helper_setuid_user = get_option('ptp-helper-setuid-user') | ||
| 26 | Index: gstreamer-1.16.1/meson_options.txt | ||
| 27 | =================================================================== | ||
| 28 | --- gstreamer-1.16.1.orig/meson_options.txt | ||
| 29 | +++ gstreamer-1.16.1/meson_options.txt | ||
| 30 | @@ -26,6 +26,7 @@ option('libunwind', type : 'feature', va | ||
| 31 | option('libdw', type : 'feature', value : 'auto', description : 'Use libdw to generate better backtraces from libunwind') | ||
| 32 | option('dbghelp', type : 'feature', value : 'auto', description : 'Use dbghelp to generate backtraces') | ||
| 33 | option('bash-completion', type : 'feature', value : 'auto', description : 'Install bash completion files') | ||
| 34 | +option('setcap', type : 'feature', value : 'auto', description : 'Use setcap') | ||
| 35 | |||
| 36 | # Common feature options | ||
| 37 | option('examples', type : 'feature', value : 'auto', yield : true) | ||
