pkgsrc-Changes archive

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

CVS commit: pkgsrc/inputmethod/mozc-server



Module Name:    pkgsrc
Committed By:   tsutsui
Date:           Sat Dec 30 14:51:42 UTC 2017

Modified Files:
        pkgsrc/inputmethod/mozc-server: distinfo
Added Files:
        pkgsrc/inputmethod/mozc-server/patches:
            patch-prediction_user__history__predictor.cc

Log Message:
mozc-server: fix a build error on NetBSD/amd64 7.1.1 + pkgsrc-2017Q4.

Apply a patch from the upstream pull request #424:
https://github.com/google/mozc/pull/424/files
> Fix reference to std::swap #424


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 pkgsrc/inputmethod/mozc-server/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/inputmethod/mozc-server/patches/patch-prediction_user__history__predictor.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/mozc-server/distinfo
diff -u pkgsrc/inputmethod/mozc-server/distinfo:1.20 pkgsrc/inputmethod/mozc-server/distinfo:1.21
--- pkgsrc/inputmethod/mozc-server/distinfo:1.20        Sun Dec 17 14:15:43 2017
+++ pkgsrc/inputmethod/mozc-server/distinfo     Sat Dec 30 14:51:42 2017
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.20 2017/12/17 14:15:43 tsutsui Exp $
+$NetBSD: distinfo,v 1.21 2017/12/30 14:51:42 tsutsui Exp $
 
 SHA1 (mozc-2.20.2673.102.tar.xz) = 9cedf4d392593e04755fa44afd79cd40bb80b9d1
 RMD160 (mozc-2.20.2673.102.tar.xz) = 723fef550d88c5a4dc33f2ec9c8d7ee694e60d64
@@ -42,6 +42,7 @@ SHA1 (patch-ipc_ipc__path__manager__test
 SHA1 (patch-ipc_named__event.cc) = 92283261e7580569587e43156f13567b593c9a32
 SHA1 (patch-ipc_unix__ipc.cc) = 25107c2e84844ecaa3445efb48cc3f2795579dec
 SHA1 (patch-net_net.gyp) = 61353724533f9239f4c58fa37f0a8fb2eb5552c3
+SHA1 (patch-prediction_user__history__predictor.cc) = 14e7a899c1c27108169de6571746d5fe4841630a
 SHA1 (patch-session_session.cc) = 773017ac54e79239f6734a124f457b0b81bb1ced
 SHA1 (patch-session_session__test.cc) = 99165b29555844a40d30cf5554cc5c66773b70ed
 SHA1 (patch-third__party_protobuf_post__process__dist.sh) = 8adc79d5d7eed3cbf406ebcfbd5832b7a050ced6

Added files:

Index: pkgsrc/inputmethod/mozc-server/patches/patch-prediction_user__history__predictor.cc
diff -u /dev/null pkgsrc/inputmethod/mozc-server/patches/patch-prediction_user__history__predictor.cc:1.1
--- /dev/null   Sat Dec 30 14:51:42 2017
+++ pkgsrc/inputmethod/mozc-server/patches/patch-prediction_user__history__predictor.cc Sat Dec 30 14:51:42 2017
@@ -0,0 +1,16 @@
+$NetBSD: patch-prediction_user__history__predictor.cc,v 1.1 2017/12/30 14:51:42 tsutsui Exp $
+
+- Apply a patch from the upstream pull request #424:
+  https://github.com/google/mozc/pull/424/files
+
+--- prediction/user_history_predictor.cc.orig  2017-11-02 13:32:47.000000000 +0000
++++ prediction/user_history_predictor.cc
+@@ -841,7 +841,7 @@ bool UserHistoryPredictor::RomanFuzzyPre
+       // swap.
+       if (i + 1 < prefix.size()) {
+         string swapped_prefix = prefix;
+-        swap(swapped_prefix[i], swapped_prefix[i + 1]);
++        std::swap(swapped_prefix[i], swapped_prefix[i + 1]);
+         if (Util::StartsWith(str, swapped_prefix)) {
+           return true;
+         }



Home | Main Index | Thread Index | Old Index