summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2022-09-22 09:35:37 -0500
committerBen Kohler <bkohler@gentoo.org>2022-09-22 10:04:39 -0500
commit89279f0e1818dadb84e8e40beae90359898c10c2 (patch)
tree396e8a8b2bcb0cebcc9558aac7f7f908661bb5b8 /media-libs
parentdev-python/mapbox_earcut: enable py3.11 (diff)
downloadgentoo-89279f0e1818dadb84e8e40beae90359898c10c2.tar.gz
gentoo-89279f0e1818dadb84e8e40beae90359898c10c2.tar.bz2
gentoo-89279f0e1818dadb84e8e40beae90359898c10c2.zip
media-libs/libcdaudio: patch for m4 test program to fix clang-16 failure
Reverse deps of libcdaudio may fail the check for libcdaudio under clang-16 (or gcc with -Werror=implicit-function-declaration) due to a missing include in the m4 test program. Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/libcdaudio/files/libcdaudio-0.99.12-m4-testprogram-fix.patch10
-rw-r--r--media-libs/libcdaudio/libcdaudio-0.99.12-r4.ebuild29
2 files changed, 39 insertions, 0 deletions
diff --git a/media-libs/libcdaudio/files/libcdaudio-0.99.12-m4-testprogram-fix.patch b/media-libs/libcdaudio/files/libcdaudio-0.99.12-m4-testprogram-fix.patch
new file mode 100644
index 000000000000..491b330d196a
--- /dev/null
+++ b/media-libs/libcdaudio/files/libcdaudio-0.99.12-m4-testprogram-fix.patch
@@ -0,0 +1,10 @@
+--- a/libcdaudio.m4
++++ b/libcdaudio.m4
+@@ -68,6 +68,7 @@
+ #include <cdaudio.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+
+ char* my_strdup (char *str)
+ {
diff --git a/media-libs/libcdaudio/libcdaudio-0.99.12-r4.ebuild b/media-libs/libcdaudio/libcdaudio-0.99.12-r4.ebuild
new file mode 100644
index 000000000000..4f8d95f04e0d
--- /dev/null
+++ b/media-libs/libcdaudio/libcdaudio-0.99.12-r4.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Library of cd audio related routines"
+HOMEPAGE="http://libcdaudio.sourceforge.net/"
+SRC_URI="mirror://sourceforge/libcdaudio/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.99-CAN-2005-0706.patch
+ "${FILESDIR}"/${P}-bug245649.patch
+ "${FILESDIR}"/${P}-libdir-fix.patch
+ "${FILESDIR}"/${P}-m4-testprogram-fix.patch
+)
+
+src_configure() {
+ econf --enable-threads --disable-static
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -delete || die
+}