Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/darkice/, media-sound/darkice/files/
Date: Sat, 05 Sep 2020 16:28:10
Message-Id: 1599323280.5e485c4563d46bd0f78da893349959983b0f8cc7.fordfrog@gentoo
1 commit: 5e485c4563d46bd0f78da893349959983b0f8cc7
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 5 16:27:46 2020 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 5 16:28:00 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e485c45
7
8 media-sound/darkice: fixed compilation
9
10 Closes: https://bugs.gentoo.org/681554
11 Package-Manager: Portage-3.0.5, Repoman-3.0.1
12 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
13
14 media-sound/darkice/darkice-1.3.ebuild | 4 ++++
15 media-sound/darkice/darkice-1.4.ebuild | 4 ++++
16 .../darkice/files/darkice-1.3-include.patch | 26 ++++++++++++++++++++++
17 3 files changed, 34 insertions(+)
18
19 diff --git a/media-sound/darkice/darkice-1.3.ebuild b/media-sound/darkice/darkice-1.3.ebuild
20 index 630f69949ed..20d7d39cbaf 100644
21 --- a/media-sound/darkice/darkice-1.3.ebuild
22 +++ b/media-sound/darkice/darkice-1.3.ebuild
23 @@ -27,6 +27,10 @@ DEPEND="${RDEPEND}"
24 REQUIRED_USE="|| ( aac aacplus mp3 opus twolame vorbis )
25 || ( alsa jack pulseaudio )"
26
27 +PATCHES=(
28 + "${FILESDIR}/${P}-include.patch"
29 +)
30 +
31 src_configure() {
32 local myeconfargs=(
33 $(use_enable debug)
34
35 diff --git a/media-sound/darkice/darkice-1.4.ebuild b/media-sound/darkice/darkice-1.4.ebuild
36 index 0c54f4f70ac..5a481e15719 100644
37 --- a/media-sound/darkice/darkice-1.4.ebuild
38 +++ b/media-sound/darkice/darkice-1.4.ebuild
39 @@ -29,6 +29,10 @@ REQUIRED_USE="|| ( aac aacplus mp3 opus twolame vorbis )
40
41 DOCS=( AUTHORS ChangeLog FAQ NEWS README TODO )
42
43 +PATCHES=(
44 + "${FILESDIR}/${PN}-1.3-include.patch"
45 +)
46 +
47 src_configure() {
48 local myeconfargs=(
49 $(use_enable debug)
50
51 diff --git a/media-sound/darkice/files/darkice-1.3-include.patch b/media-sound/darkice/files/darkice-1.3-include.patch
52 new file mode 100644
53 index 00000000000..dd2e135e878
54 --- /dev/null
55 +++ b/media-sound/darkice/files/darkice-1.3-include.patch
56 @@ -0,0 +1,26 @@
57 +diff --git a/src/FaacEncoder.cpp b/src/FaacEncoder.cpp
58 +index 873c560..3f7dc75 100644
59 +--- a/src/FaacEncoder.cpp
60 ++++ b/src/FaacEncoder.cpp
61 +@@ -36,7 +36,7 @@
62 + // compile the whole file only if faac support configured in
63 + #ifdef HAVE_FAAC_LIB
64 +
65 +-
66 ++#include <string.h>
67 +
68 + #include "Exception.h"
69 + #include "Util.h"
70 +diff --git a/src/aacPlusEncoder.cpp b/src/aacPlusEncoder.cpp
71 +index 70831b6..1f2ec20 100644
72 +--- a/src/aacPlusEncoder.cpp
73 ++++ b/src/aacPlusEncoder.cpp
74 +@@ -36,7 +36,7 @@
75 + // compile the whole file only if aacplus support configured in
76 + #ifdef HAVE_AACPLUS_LIB
77 +
78 +-
79 ++#include <string.h>
80 +
81 + #include "Exception.h"
82 + #include "Util.h"