pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/misc/fbreader



Module Name:    pkgsrc
Committed By:   maya
Date:           Mon Sep  9 13:31:53 UTC 2019

Modified Files:
        pkgsrc/misc/fbreader: distinfo
Added Files:
        pkgsrc/misc/fbreader/patches:
            patch-fbreader_src_formats_doc_OleStorage.cpp

Log Message:
fbreader: avoid narrowing conversion warning. Taken from gentoo.

Fixes PR pkg/54107: pkgsrc-2019Q1/misc/fbreader doesn't build with
newer compiler(s)


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/misc/fbreader/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/misc/fbreader/patches/patch-fbreader_src_formats_doc_OleStorage.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/misc/fbreader/distinfo
diff -u pkgsrc/misc/fbreader/distinfo:1.12 pkgsrc/misc/fbreader/distinfo:1.13
--- pkgsrc/misc/fbreader/distinfo:1.12  Sat Dec  3 09:06:37 2016
+++ pkgsrc/misc/fbreader/distinfo       Mon Sep  9 13:31:53 2019
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2016/12/03 09:06:37 maya Exp $
+$NetBSD: distinfo,v 1.13 2019/09/09 13:31:53 maya Exp $
 
 SHA1 (fbreader-sources-0.99.4.tgz) = 7e6f0acbac5d8111fcda14a576ae4fdc93eef292
 RMD160 (fbreader-sources-0.99.4.tgz) = 90825fcb6b026785dd3a7329899b54a02b08e4ed
@@ -10,6 +10,7 @@ SHA1 (patch-ai) = a8f5a4e181fd34840d18d3
 SHA1 (patch-fbreader_Makefile) = b34214a6a725527f312969c12f3c79fcda193233
 SHA1 (patch-fbreader_src_fbreader_FBReaderActions.cpp) = ac2d5937d3628abd6db2e4b2fe869d95262d2689
 SHA1 (patch-fbreader_src_fbreader_FBView.cpp) = f9018b813b92d31c67e13eb68d6e50c8a7637a5c
+SHA1 (patch-fbreader_src_formats_doc_OleStorage.cpp) = 643efdc81d73c71a679294bd5b5c01051ad63350
 SHA1 (patch-fbreader_src_formats_html_HtmlReader.cpp) = fe0ebe4dff97a11581a6d7b079f8f19f4e3be019
 SHA1 (patch-makefiles_qsubdir.mk) = a139410def61e793b193cb54716b9ffb339b5692
 SHA1 (patch-makefiles_subdir.mk) = b9c7d0339e86b9cd6010d4156f35233320a14436

Added files:

Index: pkgsrc/misc/fbreader/patches/patch-fbreader_src_formats_doc_OleStorage.cpp
diff -u /dev/null pkgsrc/misc/fbreader/patches/patch-fbreader_src_formats_doc_OleStorage.cpp:1.1
--- /dev/null   Mon Sep  9 13:31:53 2019
+++ pkgsrc/misc/fbreader/patches/patch-fbreader_src_formats_doc_OleStorage.cpp  Mon Sep  9 13:31:53 2019
@@ -0,0 +1,16 @@
+$NetBSD: patch-fbreader_src_formats_doc_OleStorage.cpp,v 1.1 2019/09/09 13:31:53 maya Exp $
+
+Fix narrowing conversion error
+
+--- fbreader/src/formats/doc/OleStorage.cpp.orig       2012-11-30 12:41:25.000000000 +0000
++++ fbreader/src/formats/doc/OleStorage.cpp
+@@ -59,7 +59,8 @@ bool OleStorage::init(shared_ptr<ZLInput
+               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;



Home | Main Index | Thread Index | Old Index