commit:     feda2a75f9c5e60c6be66ec04a69e9949d6db1ed
Author:     Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
AuthorDate: Mon Oct 11 14:55:13 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon Oct 11 14:55:13 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=feda2a75

media-sound/ttaenc: fix build

Closes: https://github.com/gentoo/gentoo/pull/22445
Closes: https://bugs.gentoo.org/721988
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../ttaenc/files/ttaenc-3.4.1-fix-hybrid-filter.patch       | 13 +++++++++++++
 media-sound/ttaenc/ttaenc-3.4.1-r1.ebuild                   |  7 +++++--
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/media-sound/ttaenc/files/ttaenc-3.4.1-fix-hybrid-filter.patch 
b/media-sound/ttaenc/files/ttaenc-3.4.1-fix-hybrid-filter.patch
new file mode 100644
index 00000000000..e6243dfae77
--- /dev/null
+++ b/media-sound/ttaenc/files/ttaenc-3.4.1-fix-hybrid-filter.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/721988
+
+--- a/ttaenc.c
++++ b/ttaenc.c
+@@ -525,7 +525,7 @@ __inline void memshl (register int *pA, register int *pB) {
+       *pA   = *pB;
+ }
+ 
+-__inline void hybrid_filter (fltst *fs, int *in, int mode) {
++static void hybrid_filter (fltst *fs, int *in, int mode) {
+       register int *pA = fs->dl;
+       register int *pB = fs->qm;
+       register int *pM = fs->dx;

diff --git a/media-sound/ttaenc/ttaenc-3.4.1-r1.ebuild 
b/media-sound/ttaenc/ttaenc-3.4.1-r1.ebuild
index 34f01191dd6..833e61d88d2 100644
--- a/media-sound/ttaenc/ttaenc-3.4.1-r1.ebuild
+++ b/media-sound/ttaenc/ttaenc-3.4.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -14,7 +14,10 @@ SLOT="0"
 KEYWORDS="amd64 x86"
 
 S="${WORKDIR}/${P}-src"
-PATCHES=( "${FILESDIR}"/${P}-fix-build-system.patch )
+PATCHES=(
+       "${FILESDIR}"/${P}-fix-build-system.patch
+       "${FILESDIR}"/${P}-fix-hybrid-filter.patch
+)
 
 src_configure() {
        tc-export CC

Reply via email to