1 |
commit: 89279f0e1818dadb84e8e40beae90359898c10c2 |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 22 14:35:37 2022 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 22 15:04:39 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89279f0e |
7 |
|
8 |
media-libs/libcdaudio: patch for m4 test program to fix clang-16 failure |
9 |
|
10 |
Reverse deps of libcdaudio may fail the check for libcdaudio under |
11 |
clang-16 (or gcc with -Werror=implicit-function-declaration) due to a |
12 |
missing include in the m4 test program. |
13 |
|
14 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
15 |
|
16 |
.../libcdaudio-0.99.12-m4-testprogram-fix.patch | 10 ++++++++ |
17 |
media-libs/libcdaudio/libcdaudio-0.99.12-r4.ebuild | 29 ++++++++++++++++++++++ |
18 |
2 files changed, 39 insertions(+) |
19 |
|
20 |
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 |
21 |
new file mode 100644 |
22 |
index 000000000000..491b330d196a |
23 |
--- /dev/null |
24 |
+++ b/media-libs/libcdaudio/files/libcdaudio-0.99.12-m4-testprogram-fix.patch |
25 |
@@ -0,0 +1,10 @@ |
26 |
+--- a/libcdaudio.m4 |
27 |
++++ b/libcdaudio.m4 |
28 |
+@@ -68,6 +68,7 @@ |
29 |
+ #include <cdaudio.h> |
30 |
+ #include <stdio.h> |
31 |
+ #include <stdlib.h> |
32 |
++#include <string.h> |
33 |
+ |
34 |
+ char* my_strdup (char *str) |
35 |
+ { |
36 |
|
37 |
diff --git a/media-libs/libcdaudio/libcdaudio-0.99.12-r4.ebuild b/media-libs/libcdaudio/libcdaudio-0.99.12-r4.ebuild |
38 |
new file mode 100644 |
39 |
index 000000000000..4f8d95f04e0d |
40 |
--- /dev/null |
41 |
+++ b/media-libs/libcdaudio/libcdaudio-0.99.12-r4.ebuild |
42 |
@@ -0,0 +1,29 @@ |
43 |
+# Copyright 1999-2022 Gentoo Authors |
44 |
+# Distributed under the terms of the GNU General Public License v2 |
45 |
+ |
46 |
+EAPI=7 |
47 |
+ |
48 |
+DESCRIPTION="Library of cd audio related routines" |
49 |
+HOMEPAGE="http://libcdaudio.sourceforge.net/" |
50 |
+SRC_URI="mirror://sourceforge/libcdaudio/${P}.tar.gz" |
51 |
+ |
52 |
+LICENSE="GPL-2" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
55 |
+IUSE="" |
56 |
+ |
57 |
+PATCHES=( |
58 |
+ "${FILESDIR}"/${PN}-0.99-CAN-2005-0706.patch |
59 |
+ "${FILESDIR}"/${P}-bug245649.patch |
60 |
+ "${FILESDIR}"/${P}-libdir-fix.patch |
61 |
+ "${FILESDIR}"/${P}-m4-testprogram-fix.patch |
62 |
+) |
63 |
+ |
64 |
+src_configure() { |
65 |
+ econf --enable-threads --disable-static |
66 |
+} |
67 |
+ |
68 |
+src_install() { |
69 |
+ default |
70 |
+ find "${ED}" -name '*.la' -delete || die |
71 |
+} |