commit: 382751f8f2a3eca9691a976dc4f5e8a1558bd30c Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Thu Dec 2 04:17:31 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Dec 2 04:43:13 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=382751f8
media-sound/ttaenc: fix build on musl Closes: https://bugs.gentoo.org/646188 Thanks-to: Randy Palamar <palamar.randy <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> .../ttaenc/files/ttaenc-3.4.1-fix-musl.patch | 22 ++++++++++++++++++++++ media-sound/ttaenc/ttaenc-3.4.1-r1.ebuild | 3 ++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/media-sound/ttaenc/files/ttaenc-3.4.1-fix-musl.patch b/media-sound/ttaenc/files/ttaenc-3.4.1-fix-musl.patch new file mode 100644 index 000000000000..674782fec91f --- /dev/null +++ b/media-sound/ttaenc/files/ttaenc-3.4.1-fix-musl.patch @@ -0,0 +1,22 @@ +https://bugs.gentoo.org/646188 +--- a/ttaenc.h ++++ b/ttaenc.h +@@ -41,6 +41,7 @@ + #include <sys/types.h> + #include <sys/stat.h> + #include <unistd.h> ++#include <stdint.h> + #endif + + #ifdef _MSC +@@ -101,8 +102,8 @@ + typedef unsigned __int32 uint32; + typedef unsigned __int64 uint64; + #else +-typedef __uint32_t uint32; +-typedef __uint64_t uint64; ++typedef uint32_t uint32; ++typedef uint64_t uint64; + #endif + + #define PREDICTOR1(x, k) ((int)((((uint64)x << k) - x) >> k)) diff --git a/media-sound/ttaenc/ttaenc-3.4.1-r1.ebuild b/media-sound/ttaenc/ttaenc-3.4.1-r1.ebuild index 833e61d88d20..14a901304cbf 100644 --- a/media-sound/ttaenc/ttaenc-3.4.1-r1.ebuild +++ b/media-sound/ttaenc/ttaenc-3.4.1-r1.ebuild @@ -8,15 +8,16 @@ inherit toolchain-funcs DESCRIPTION="True Audio Compressor Software" HOMEPAGE="http://tta.sourceforge.net" SRC_URI="mirror://sourceforge/tta/${P}-src.tgz" +S="${WORKDIR}/${P}-src" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 x86" -S="${WORKDIR}/${P}-src" PATCHES=( "${FILESDIR}"/${P}-fix-build-system.patch "${FILESDIR}"/${P}-fix-hybrid-filter.patch + "${FILESDIR}"/${P}-fix-musl.patch ) src_configure() {
