pkgsrc-Changes archive

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

CVS commit: pkgsrc/inputmethod/librime



Module Name:    pkgsrc
Committed By:   wiz
Date:           Wed Mar  7 09:34:09 UTC 2018

Modified Files:
        pkgsrc/inputmethod/librime: Makefile distinfo
Added Files:
        pkgsrc/inputmethod/librime/patches: patch-src_dict_mapped__file.cc

Log Message:
librime: Fix compilation with gcc 6.

Return boolean where the function definition has boolean return type.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/inputmethod/librime/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/inputmethod/librime/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/inputmethod/librime/patches/patch-src_dict_mapped__file.cc

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

Modified files:

Index: pkgsrc/inputmethod/librime/Makefile
diff -u pkgsrc/inputmethod/librime/Makefile:1.11 pkgsrc/inputmethod/librime/Makefile:1.12
--- pkgsrc/inputmethod/librime/Makefile:1.11    Mon Jan  1 21:18:09 2018
+++ pkgsrc/inputmethod/librime/Makefile Wed Mar  7 09:34:09 2018
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.11 2018/01/01 21:18:09 adam Exp $
+# $NetBSD: Makefile,v 1.12 2018/03/07 09:34:09 wiz Exp $
 
 DISTNAME=      librime-1.0
-PKGREVISION=   7
+PKGREVISION=   8
 CATEGORIES=    inputmethod chinese
 MASTER_SITES=  http://rimeime.googlecode.com/files/
 #MASTER_SITES= http://dl.bintray.com/lotem/rime/
@@ -26,5 +26,5 @@ PKGCONFIG_OVERRIDE+=  rime.pc.in
 .include "../../devel/google-glog/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../textproc/yaml-cpp/buildlink3.mk"
-.include "../../x11/xproto/buildlink3.mk"
+.include "../../x11/xorgproto/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/inputmethod/librime/distinfo
diff -u pkgsrc/inputmethod/librime/distinfo:1.4 pkgsrc/inputmethod/librime/distinfo:1.5
--- pkgsrc/inputmethod/librime/distinfo:1.4     Tue Nov  3 22:13:37 2015
+++ pkgsrc/inputmethod/librime/distinfo Wed Mar  7 09:34:09 2018
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.4 2015/11/03 22:13:37 agc Exp $
+$NetBSD: distinfo,v 1.5 2018/03/07 09:34:09 wiz Exp $
 
 SHA1 (librime-1.0.tar.gz) = 5fd6db95b039e08dadfe547e3e63962aeaa97d8c
 RMD160 (librime-1.0.tar.gz) = 0e5972bfcf179d464a8e58f9ddce3bf55708865b
 SHA512 (librime-1.0.tar.gz) = 79f51174043e0ff524f8af090fd1d0a21301b4e5e530c772648ff59894d39135d15c53c0f4d197895c301defca2e084635eb222464dd20859ab3bdbc6ae8fb2c
 Size (librime-1.0.tar.gz) = 2576401 bytes
 SHA1 (patch-CMakeLists.txt) = 3e478dda0da10ecfc31f1cb7849a5fd0bd21a065
+SHA1 (patch-src_dict_mapped__file.cc) = b5b181ef102b47aad837d52703bba4c807bf6483
 SHA1 (patch-src_dict_table.cc) = d8c952bd5b897d8d05b86b6c515daa3d19b2ba6d

Added files:

Index: pkgsrc/inputmethod/librime/patches/patch-src_dict_mapped__file.cc
diff -u /dev/null pkgsrc/inputmethod/librime/patches/patch-src_dict_mapped__file.cc:1.1
--- /dev/null   Wed Mar  7 09:34:09 2018
+++ pkgsrc/inputmethod/librime/patches/patch-src_dict_mapped__file.cc   Wed Mar  7 09:34:09 2018
@@ -0,0 +1,42 @@
+$NetBSD: patch-src_dict_mapped__file.cc,v 1.1 2018/03/07 09:34:09 wiz Exp $
+
+Return bool where the return value type needs it.
+
+--- src/dict/mapped_file.cc.orig       2013-11-10 10:20:21.000000000 +0000
++++ src/dict/mapped_file.cc
+@@ -106,7 +106,7 @@ bool MappedFile::Create(size_t capacity)
+   LOG(INFO) << "opening file for read/write access.";
+   file_.reset(new MappedFileImpl(file_name_, MappedFileImpl::kOpenReadWrite));
+   size_ = 0;
+-  return file_;
++  return file_ != NULL;
+ }
+ 
+ bool MappedFile::OpenReadOnly() {
+@@ -116,7 +116,7 @@ bool MappedFile::OpenReadOnly() {
+   }
+   file_.reset(new MappedFileImpl(file_name_, MappedFileImpl::kOpenReadOnly));
+   size_ = file_->get_size();
+-  return file_;
++  return file_ != NULL;
+ }
+ 
+ bool MappedFile::OpenReadWrite() {
+@@ -126,7 +126,7 @@ bool MappedFile::OpenReadWrite() {
+   }
+   file_.reset(new MappedFileImpl(file_name_, MappedFileImpl::kOpenReadWrite));
+   size_ = 0;
+-  return file_;
++  return file_ != NULL;
+ }
+ 
+ void MappedFile::Close() {
+@@ -137,7 +137,7 @@ void MappedFile::Close() {
+ }
+ 
+ bool MappedFile::IsOpen() const {
+-  return file_;
++  return file_ != NULL;
+ }
+ 
+ bool MappedFile::Flush() {



Home | Main Index | Thread Index | Old Index