pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/inputmethod/mozc-server mozc-server: fix a build error...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f38d13d0f97e
branches:  trunk
changeset: 373315:f38d13d0f97e
user:      tsutsui <tsutsui%pkgsrc.org@localhost>
date:      Sat Dec 30 14:51:42 2017 +0000

description:
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

diffstat:

 inputmethod/mozc-server/distinfo                                             |   3 +-
 inputmethod/mozc-server/patches/patch-prediction_user__history__predictor.cc |  16 ++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 47ecbf3e2788 -r f38d13d0f97e inputmethod/mozc-server/distinfo
--- a/inputmethod/mozc-server/distinfo  Sat Dec 30 14:51:41 2017 +0000
+++ b/inputmethod/mozc-server/distinfo  Sat Dec 30 14:51:42 2017 +0000
@@ -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_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
diff -r 47ecbf3e2788 -r f38d13d0f97e inputmethod/mozc-server/patches/patch-prediction_user__history__predictor.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/mozc-server/patches/patch-prediction_user__history__predictor.cc      Sat Dec 30 14:51:42 2017 +0000
@@ -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