media-libs/libcuefile: fix build w/ clang 16

Closes: https://bugs.gentoo.org/871588
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-04-28 07:04:13 +01:00
parent af6bf56875
commit 32fa31740c
2 changed files with 19 additions and 2 deletions
@@ -0,0 +1,14 @@
https://src.fedoraproject.org/rpms/libcuefile/blob/7dd8752f5aa2dccbaccb4c28a23f659df3bc0d19/f/libcuefile-fedora-c99.patch
https://bugs.gentoo.org/871588
--- a/src/cue_parse.c
+++ b/src/cue_parse.c
@@ -1513,6 +1513,8 @@ void yyerror (char *s)
fprintf(stderr, "%d: %s\n", cue_lineno, s);
}
+void cue_delete_buffer(void);
+
Cd *cue_parse (FILE *fp)
{
cue_yyin = fp;
@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -16,7 +16,10 @@ LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
PATCHES=( "${FILESDIR}"/${PN}-static-libs.patch )
PATCHES=(
"${FILESDIR}"/${PN}-static-libs.patch
"${FILESDIR}"/${PN}-477-clang16.patch
)
src_install() {
cmake_src_install