Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package sunpinyin for openSUSE:Factory checked in at 2026-10-27 17:08:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/sunpinyin (Old) and /work/SRC/openSUSE:Factory/.sunpinyin.new.2252680 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "sunpinyin" Tue Oct 27 17:08:55 2026 rev:19 rq:1393115 version:2.0.99.2 Changes: -------- --- /work/SRC/openSUSE:Factory/sunpinyin/sunpinyin.changes 2025-09-08 09:59:05.466300652 +0200 +++ /work/SRC/openSUSE:Factory/.sunpinyin.new.2252680/sunpinyin.changes 2026-10-27 17:09:47.128805582 +0100 @@ -1,0 +2,5 @@ +Tue Oct 27 13:28:52 UTC 2026 - Hillwood Yang <[email protected]> + +- Add sunpinyin-shuangpin-pop-empty.patch, fix a crash issue on shuangpin + +------------------------------------------------------------------- New: ---- sunpinyin-shuangpin-pop-empty.patch ----------(New B)---------- New: - Add sunpinyin-shuangpin-pop-empty.patch, fix a crash issue on shuangpin ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ sunpinyin.spec ++++++ --- /var/tmp/diff_new_pack.XKRFFe/_old 2026-10-27 17:09:48.162848895 +0100 +++ /var/tmp/diff_new_pack.XKRFFe/_new 2026-10-27 17:09:48.163848937 +0100 @@ -1,7 +1,7 @@ # # spec file for package sunpinyin # -# Copyright (c) 2025 SUSE LLC and contributors +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,15 +25,14 @@ URL: https://github.com/sunpinyin/sunpinyin Source: https://github.com/sunpinyin/sunpinyin/archive/v3.0.0-rc2/%{name}-3.0.0-rc2.tar.gz # https://sourceforge.net/projects/open-gram -Source1: http://jaist.dl.sourceforge.net/project/open-gram/lm_sc.3gm.arpa-20140820.tar.bz2 -Source2: http://jaist.dl.sourceforge.net/project/open-gram/dict.utf8-20131214.tar.bz2 +Source1: https://cytranet-dal.dl.sourceforge.net/project/open-gram/lm_sc.3gm.arpa-20140820.tar.bz2 +Source2: https://cytranet-dal.dl.sourceforge.net/project/open-gram/dict.utf8-20131214.tar.bz2 Source3: sunpinyin-dictgen-local.mk.in # PATCH-FIX-OPENSUSE [email protected] do not download online Patch1: no-download.patch -# PATCH-FIX-UPSTREAM [email protected] make build reproducible -# Patch2: reproducible.patch -# PATCH-FIx-UPSTREAM sunpinyin-scons-on-py3.patch [email protected] -- Fix build with scons using python3 as interpreter -# Patch3: sunpinyin-scons-on-py3.patch +# PATCH-FIX-UPSTREAM sunpinyin-shuangpin-pop-empty.patch [email protected] +# FIX a crash issue on ShuangPin +Patch2: sunpinyin-shuangpin-pop-empty.patch BuildRequires: gcc-c++ BuildRequires: pkg-config BuildRequires: scons ++++++ sunpinyin-shuangpin-pop-empty.patch ++++++ --- a/src/pinyin/shuangpin_seg.cpp +++ b/src/pinyin/shuangpin_seg.cpp @@ -79,7 +79,7 @@ unsigned l = m_segs.back().m_len; m_segs.pop_back(); - if (size == 1 || m_segs.back().m_type != IPySegmentor::INVALID) { + if (m_segs.empty() || m_segs.back().m_type != IPySegmentor::INVALID) { m_hasInvalid = false; } if (l == 1)
