commit:     46f52034bad88ca6a60e3fe69466e91189172faa
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 10 07:12:35 2020 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Wed Jun 10 07:12:35 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46f52034

media-sound/linuxsampler: fixed yyterror not declared in 2.1.1

Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 .../linuxsampler-2.1.1-fix-yyterror-not-declared.patch   | 16 ++++++++++++++++
 media-sound/linuxsampler/linuxsampler-2.1.1.ebuild       |  3 ++-
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git 
a/media-sound/linuxsampler/files/linuxsampler-2.1.1-fix-yyterror-not-declared.patch
 
b/media-sound/linuxsampler/files/linuxsampler-2.1.1-fix-yyterror-not-declared.patch
new file mode 100644
index 00000000000..4eb56fddef1
--- /dev/null
+++ 
b/media-sound/linuxsampler/files/linuxsampler-2.1.1-fix-yyterror-not-declared.patch
@@ -0,0 +1,16 @@
+--- linuxsampler-2.1.1/src/network/lscp.y      2020/06/07 15:39:31     3786
++++ linuxsampler-2.1.1/src/network/lscp.y      2020/06/08 11:55:18     3787
+@@ -1479,6 +1479,13 @@
+  */
+ typedef std::set< std::vector<YYTYPE_INT16> > YYStackHistory;
+ 
++/*
++ * YYTERROR macro was removed in Bison 3.6.0, we need it in function below.
++ */
++#ifndef YYTERROR
++# define YYTERROR YYSYMBOL_YYerror
++#endif
++
+ #define DEBUG_BISON_SYNTAX_ERROR_WALKER 0
+ 
+ /**

diff --git a/media-sound/linuxsampler/linuxsampler-2.1.1.ebuild 
b/media-sound/linuxsampler/linuxsampler-2.1.1.ebuild
index 3361f366169..d12a254629b 100644
--- a/media-sound/linuxsampler/linuxsampler-2.1.1.ebuild
+++ b/media-sound/linuxsampler/linuxsampler-2.1.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -35,6 +35,7 @@ BDEPEND="
 PATCHES=(
        "${FILESDIR}/${PN}-2.0.0-nptl-hardened.patch"
        "${FILESDIR}/${PN}-2.0.0-lv2-automagic.patch"
+       "${FILESDIR}/${P}-fix-yyterror-not-declared.patch"
 )
 
 DOCS=( AUTHORS ChangeLog NEWS README )

Reply via email to