aboutsummaryrefslogtreecommitdiff
path: root/extra/gstreamer/patches
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2022-10-13 17:56:04 +0200
committerCem Keylan <cem@ckyln.com>2022-10-13 17:56:04 +0200
commite2f11aac4a5aa00c742bbe9760184a5512f4b34d (patch)
tree58f16179f4add4b2f15390cdc1c5c785c1537020 /extra/gstreamer/patches
parent3731c0e2cbb7d572bace373e27f1c86defefc551 (diff)
downloadrepository-e2f11aac4a5aa00c742bbe9760184a5512f4b34d.tar.gz
gstreamer: bump to 1.20.4 and add patch to use byacc instead of bison
Diffstat (limited to 'extra/gstreamer/patches')
-rw-r--r--extra/gstreamer/patches/byacc.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/extra/gstreamer/patches/byacc.patch b/extra/gstreamer/patches/byacc.patch
new file mode 100644
index 00000000..c4851c87
--- /dev/null
+++ b/extra/gstreamer/patches/byacc.patch
@@ -0,0 +1,26 @@
+--- a/gst/parse/meson.build Wed Oct 12 17:39:51 2022
++++ b/gst/parse/meson.build Thu Oct 13 14:49:30 2022
+@@ -31,21 +31,9 @@
+ bison_cdata = configuration_data()
+
+ bison_min_version='2.4'
+-bison = find_program('bison', 'win_bison')
++bison = find_program('bison', 'win_bison', 'yacc')
+
+-bversion_res = run_command([bison, '--version'], check: true)
+-bversion = bversion_res.stdout().split('\n')[0].split(' ')[-1].strip()
+-if bversion.version_compare('<' + bison_min_version)
+- error('bison version @0@ >= @1@: NO'.format(bversion, bison_min_version))
+-else
+- message('bison version @0@ >= @1@: YES'.format(bversion, bison_min_version))
+-endif
+-
+-if bversion.version_compare('>' + '2.5')
+- bison_parser_cdata.set('BISON_PURE_PARSER', '%define api.pure full')
+-else
+- bison_parser_cdata.set('BISON_PURE_PARSER', '%pure-parser')
+-endif
++bison_parser_cdata.set('BISON_PURE_PARSER', '%pure-parser')
+
+ gen_grammar_file = configure_file(input : 'grammar.y.in',
+ output : 'grammar.y',