Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package librime for openSUSE:Factory checked 
in at 2021-05-03 22:08:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/librime (Old)
 and      /work/SRC/openSUSE:Factory/.librime.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "librime"

Mon May  3 22:08:22 2021 rev:27 rq:890104 version:1.7.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/librime/librime.changes  2021-03-05 
13:49:34.655856789 +0100
+++ /work/SRC/openSUSE:Factory/.librime.new.2988/librime.changes        
2021-05-03 22:08:48.936325884 +0200
@@ -1,0 +2,9 @@
+Sat May  1 04:11:08 UTC 2021 - Fusion Future <[email protected]>
+
+- Update to version 1.7.2
+  Bug Fixes
+  * chord_composer: should clear raw input after committing text (79b34ab)
+- Fix compilation errors due to missing cmath header (boo#1185458)
+  * librime-1.7.2-add_cmath_header.patch
+
+-------------------------------------------------------------------

Old:
----
  librime-1.7.1.tar.gz

New:
----
  librime-1.7.2-add_cmath_header.patch
  librime-1.7.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ librime.spec ++++++
--- /var/tmp/diff_new_pack.ZF6UiO/_old  2021-05-03 22:08:49.500323477 +0200
+++ /var/tmp/diff_new_pack.ZF6UiO/_new  2021-05-03 22:08:49.500323477 +0200
@@ -17,13 +17,15 @@
 
 
 Name:           librime
-Version:        1.7.1
+Version:        1.7.2
 Release:        0
 Summary:        Rime Input Method Engine
 License:        BSD-3-Clause
 Group:          System/I18n/Chinese
 URL:            https://github.com/rime/librime
 Source:         
https://github.com/rime/librime/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+#PATCH-FIX-OPENSUSE fix compilation errors due to missing cmath header 
(boo#1185458)
+Patch1:         librime-1.7.2-add_cmath_header.patch
 BuildRequires:  capnproto >= 0.7.0
 BuildRequires:  cmake >= 3.1.0
 BuildRequires:  gcc-c++
@@ -93,6 +95,7 @@
 
 %prep
 %setup -q
+%patch1 -p1
 
 %build
 %cmake -DCMAKE_BUILD_TYPE=Release \

++++++ librime-1.7.2-add_cmath_header.patch ++++++
Index: librime-1.7.2/src/rime/gear/script_translator.cc
===================================================================
--- librime-1.7.2.orig/src/rime/gear/script_translator.cc
+++ librime-1.7.2/src/rime/gear/script_translator.cc
@@ -7,6 +7,7 @@
 // 2011-07-10 GONG Chen <[email protected]>
 //
 #include <algorithm>
+#include <cmath>
 #include <stack>
 #include <boost/algorithm/string/join.hpp>
 #include <boost/range/adaptor/reversed.hpp>
Index: librime-1.7.2/src/rime/gear/table_translator.cc
===================================================================
--- librime-1.7.2.orig/src/rime/gear/table_translator.cc
+++ librime-1.7.2/src/rime/gear/table_translator.cc
@@ -4,6 +4,7 @@
 //
 // 2011-07-10 GONG Chen <[email protected]>
 //
+#include <cmath>
 #include <boost/algorithm/string.hpp>
 #include <boost/range/adaptor/reversed.hpp>
 #include <utf8.h>
++++++ librime-1.7.1.tar.gz -> librime-1.7.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/librime-1.7.1/CHANGELOG.md 
new/librime-1.7.2/CHANGELOG.md
--- old/librime-1.7.1/CHANGELOG.md      2021-02-06 08:45:23.000000000 +0100
+++ new/librime-1.7.2/CHANGELOG.md      2021-02-07 13:37:26.000000000 +0100
@@ -1,3 +1,13 @@
+<a name="1.7.2"></a>
+## [1.7.2](https://github.com/rime/librime/compare/1.7.1...1.7.2) (2021-02-07)
+
+
+### Bug Fixes
+
+* **chord_composer:** should clear raw input after committing text 
([79b34ab](https://github.com/rime/librime/commit/79b34ab))
+
+
+
 <a name="1.7.1"></a>
 ## [1.7.1](https://github.com/rime/librime/compare/1.7.0...1.7.1) (2021-02-06)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/librime-1.7.1/CMakeLists.txt 
new/librime-1.7.2/CMakeLists.txt
--- old/librime-1.7.1/CMakeLists.txt    2021-02-06 08:45:23.000000000 +0100
+++ new/librime-1.7.2/CMakeLists.txt    2021-02-07 13:37:26.000000000 +0100
@@ -4,7 +4,7 @@
 project(rime)
 cmake_minimum_required(VERSION 3.10)
 
-set(rime_version 1.7.1)
+set(rime_version 1.7.2)
 set(rime_soversion 1)
 
 add_definitions(-DRIME_VERSION="${rime_version}")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/librime-1.7.1/package-lock.json 
new/librime-1.7.2/package-lock.json
--- old/librime-1.7.1/package-lock.json 2021-02-06 08:45:23.000000000 +0100
+++ new/librime-1.7.2/package-lock.json 2021-02-07 13:37:26.000000000 +0100
@@ -1,6 +1,6 @@
 {
   "name": "librime",
-  "version": "1.7.1",
+  "version": "1.7.2",
   "lockfileVersion": 1,
   "requires": true,
   "dependencies": {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/librime-1.7.1/package.json 
new/librime-1.7.2/package.json
--- old/librime-1.7.1/package.json      2021-02-06 08:45:23.000000000 +0100
+++ new/librime-1.7.2/package.json      2021-02-07 13:37:26.000000000 +0100
@@ -1,6 +1,6 @@
 {
   "name": "librime",
-  "version": "1.7.1",
+  "version": "1.7.2",
   "description": "Rime Input Method Engine",
   "main": "index.js",
   "directories": {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/librime-1.7.1/src/rime/gear/chord_composer.cc 
new/librime-1.7.2/src/rime/gear/chord_composer.cc
--- old/librime-1.7.1/src/rime/gear/chord_composer.cc   2021-02-06 
08:45:23.000000000 +0100
+++ new/librime-1.7.2/src/rime/gear/chord_composer.cc   2021-02-07 
13:37:26.000000000 +0100
@@ -102,6 +102,7 @@
     return kNoop;
   }
   // chording key
+  editing_chord_ = true;
   bool is_key_up = key_event.release();
   if (is_key_up) {
     if (pressed_.erase(ch) != 0 && pressed_.empty()) {
@@ -114,6 +115,7 @@
     if (updated)
       UpdateChord();
   }
+  editing_chord_ = false;
   return kAccepted;
 }
 
@@ -180,13 +182,13 @@
 void ChordComposer::FinishChord() {
   if (!engine_)
     return;
-  sending_chord_ = true;
   string code = SerializeChord();
   output_format_.Apply(&code);
   ClearChord();
 
   KeySequence key_sequence;
   if (key_sequence.Parse(code) && !key_sequence.empty()) {
+    sending_chord_ = true;
     for (const KeyEvent& key : key_sequence) {
       if (!engine_->ProcessKey(key)) {
         // direct commit
@@ -195,8 +197,8 @@
         raw_sequence_.clear();
       }
     }
+    sending_chord_ = false;
   }
-  sending_chord_ = false;
 }
 
 void ChordComposer::ClearChord() {
@@ -224,7 +226,7 @@
   }
   else if (composing_) {
     composing_ = false;
-    if (!sending_chord_) {
+    if (!editing_chord_ || sending_chord_) {
       raw_sequence_.clear();
       DLOG(INFO) << "clear raw sequence.";
     }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/librime-1.7.1/src/rime/gear/chord_composer.h 
new/librime-1.7.2/src/rime/gear/chord_composer.h
--- old/librime-1.7.1/src/rime/gear/chord_composer.h    2021-02-06 
08:45:23.000000000 +0100
+++ new/librime-1.7.2/src/rime/gear/chord_composer.h    2021-02-07 
13:37:26.000000000 +0100
@@ -44,6 +44,7 @@
 
   set<int> pressed_;
   set<int> chord_;
+  bool editing_chord_ = false;
   bool sending_chord_ = false;
   bool composing_ = false;
   string raw_sequence_;

Reply via email to