commit: 8f57005559c5aa0c9596f9ded42186b7e82410f2
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 1 03:17:16 2016 +0000
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Thu Sep 1 03:17:16 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f570055
app-text/fbreader: make gcc6 happy
Bug: 592588
Package-Manager: portage-2.3.0
app-text/fbreader/fbreader-0.99.4-r2.ebuild | 2 ++
app-text/fbreader/files/fbreader-0.99.4-gcc6.patch | 11 +++++++++++
2 files changed, 13 insertions(+)
diff --git a/app-text/fbreader/fbreader-0.99.4-r2.ebuild
b/app-text/fbreader/fbreader-0.99.4-r2.ebuild
index 6d5c310..a05caff 100644
--- a/app-text/fbreader/fbreader-0.99.4-r2.ebuild
+++ b/app-text/fbreader/fbreader-0.99.4-r2.ebuild
@@ -74,6 +74,8 @@ src_prepare() {
epatch "${FILESDIR}"/${P}-mimetypes.patch
# bug #437262
epatch "${FILESDIR}"/${P}-ld-bfd.patch
+ # bug #592588
+ epatch "${FILESDIR}"/${P}-gcc6.patch
}
src_compile() {
diff --git a/app-text/fbreader/files/fbreader-0.99.4-gcc6.patch
b/app-text/fbreader/files/fbreader-0.99.4-gcc6.patch
new file mode 100644
index 00000000..c6f87a2
--- /dev/null
+++ b/app-text/fbreader/files/fbreader-0.99.4-gcc6.patch
@@ -0,0 +1,11 @@
+--- fbreader/src/formats/doc/OleStorage.cpp 2012-11-30 13:41:25.000000000
+0100
++++ fbreader/src/formats/doc/OleStorage.cpp-new 2016-08-31
17:23:18.232536401 +0200
+@@ -59,7 +59,7 @@
+ clear();
+ return false;
+ }
+- static const char OLE_SIGN[] = {0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1,
0x1A, 0xE1, 0};
++ static const char OLE_SIGN[] = {(char)0xD0, (char)0xCF, (char)0x11,
(char)0xE0, (char)0xA1, (char)0xB1, (char)0x1A, (char)0xE1, 0};
+ if (std::strncmp(oleBuf, OLE_SIGN, 8) != 0) {
+ clear();
+ return false;