1 |
commit: 66ffd5f887e627b27dad0536861f9229c74aef37 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 30 16:36:23 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 31 09:20:32 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66ffd5f8 |
7 |
|
8 |
media-libs/libcdr: Fix build with ICU-68 |
9 |
|
10 |
Thanks-to: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
Closes: https://bugs.gentoo.org/751934 |
12 |
Package-Manager: Portage-3.0.8, Repoman-3.0.2 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
media-libs/libcdr/files/libcdr-0.1.6-icu-68.patch | 27 +++++++++++++++++++++++ |
16 |
media-libs/libcdr/libcdr-0.1.6.ebuild | 2 ++ |
17 |
2 files changed, 29 insertions(+) |
18 |
|
19 |
diff --git a/media-libs/libcdr/files/libcdr-0.1.6-icu-68.patch b/media-libs/libcdr/files/libcdr-0.1.6-icu-68.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..b8e7ba919a9 |
22 |
--- /dev/null |
23 |
+++ b/media-libs/libcdr/files/libcdr-0.1.6-icu-68.patch |
24 |
@@ -0,0 +1,27 @@ |
25 |
+From 0dc41f8f6bd099813acb3972f75e4bbb2a5cdb2d Mon Sep 17 00:00:00 2001 |
26 |
+From: Lars Wendler <polynomial-c@g.o> |
27 |
+Date: Fri, 30 Oct 2020 14:28:08 +0100 |
28 |
+Subject: [PATCH] Fix build with icu-68.1 |
29 |
+ |
30 |
+icu-68.1 removed public macro definitions for TRUE and FALSE |
31 |
+ |
32 |
+Signed-off-by: Lars Wendler <polynomial-c@g.o> |
33 |
+--- |
34 |
+ src/lib/libcdr_utils.cpp | 2 +- |
35 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
36 |
+ |
37 |
+diff --git a/src/lib/libcdr_utils.cpp b/src/lib/libcdr_utils.cpp |
38 |
+index 09ab42e..250f0a0 100644 |
39 |
+--- a/src/lib/libcdr_utils.cpp |
40 |
++++ b/src/lib/libcdr_utils.cpp |
41 |
+@@ -108,7 +108,7 @@ static unsigned short getEncoding(const unsigned char *buffer, unsigned bufferLe |
42 |
+ csd = ucsdet_open(&status); |
43 |
+ if (U_FAILURE(status) || !csd) |
44 |
+ return 0; |
45 |
+- ucsdet_enableInputFilter(csd, TRUE); |
46 |
++ ucsdet_enableInputFilter(csd, true); |
47 |
+ ucsdet_setText(csd, (const char *)buffer, bufferLength, &status); |
48 |
+ if (U_FAILURE(status)) |
49 |
+ throw libcdr::EncodingException(); |
50 |
+-- |
51 |
+2.29.2 |
52 |
|
53 |
diff --git a/media-libs/libcdr/libcdr-0.1.6.ebuild b/media-libs/libcdr/libcdr-0.1.6.ebuild |
54 |
index 24045430a37..42908656ba4 100644 |
55 |
--- a/media-libs/libcdr/libcdr-0.1.6.ebuild |
56 |
+++ b/media-libs/libcdr/libcdr-0.1.6.ebuild |
57 |
@@ -36,6 +36,8 @@ BDEPEND=" |
58 |
test? ( dev-util/cppunit ) |
59 |
" |
60 |
|
61 |
+PATCHES=( "${FILESDIR}/${P}-icu-68.patch" ) # bug 751934 |
62 |
+ |
63 |
src_prepare() { |
64 |
default |
65 |
[[ -d m4 ]] || mkdir "m4" |