From e2f11aac4a5aa00c742bbe9760184a5512f4b34d Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Thu, 13 Oct 2022 17:56:04 +0200 Subject: gstreamer: bump to 1.20.4 and add patch to use byacc instead of bison --- extra/gstreamer/patches/byacc.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 extra/gstreamer/patches/byacc.patch (limited to 'extra/gstreamer/patches') 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', -- cgit v1.2.3