[SRU] libopencc2: missing files cause librime fail to work

Bug #1645522 reported by Aron Xu
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
opencc (Debian)
Fix Released
Unknown
opencc (Ubuntu)
Fix Released
High
Aron Xu
Yakkety
Fix Released
High
Aron Xu
Zesty
Fix Released
High
Aron Xu

Bug Description

[Impact]

A list of missing files from opencc package makes opencc and libopencc2 does not work correctly for its consumers (fcitx-rime, ibus-rime). For example, when using fcitx-rime, fcitx would print the
following error message onto stderr once the user tries to switch to
input Simplified Chinese in Rime (Selecting *月拼音:简化字):

[Test Case]

After installing the updated package, fcitx-rime would not print error messages when user tries to switch to input Simplified Chinese in Rime.

[Regression Potential]

This updated package would introduce an additional binary call librime-data, which is actually a backport of version 1.0.4-2 in Debian and Ubuntu Zesty, potential of regression is low.

== Description from Debian bug ==

In Debian unstable, when using fcitx-rime, fcitx would print the
following error message onto stderr once the user tries to switch to
input Simplified Chinese in rime (Selecting *月拼音:简化字):

E0902 23:45:44.494884 6107 simplifier.cc:126] Error initializing
opencc: t2s.json not found or not accessible.

The t2s.json is supposed to be in /usr/share/opencc. To be concrete,
the following missing files may be needed for opencc to work
correctly:

usr/share/
usr/share/opencc/
usr/share/opencc/HKVariants.ocd
usr/share/opencc/HKVariantsPhrases.ocd
usr/share/opencc/HKVariantsRev.ocd
usr/share/opencc/HKVariantsRevPhrases.ocd
usr/share/opencc/JPVariants.ocd
usr/share/opencc/STCharacters.ocd
usr/share/opencc/STPhrases.ocd
usr/share/opencc/TSCharacters.ocd
usr/share/opencc/TSPhrases.ocd
usr/share/opencc/TWPhrases.ocd
usr/share/opencc/TWPhrasesRev.ocd
usr/share/opencc/TWVariants.ocd
usr/share/opencc/TWVariantsRev.ocd
usr/share/opencc/TWVariantsRevPhrases.ocd
usr/share/opencc/hk2s.json
usr/share/opencc/s2hk.json
usr/share/opencc/s2t.json
usr/share/opencc/s2tw.json
usr/share/opencc/s2twp.json
usr/share/opencc/t2hk.json
usr/share/opencc/t2s.json
usr/share/opencc/t2tw.json
usr/share/opencc/tw2s.json
usr/share/opencc/tw2sp.json

However, they do not exist in any opencc-related packages
(libopencc-dev, libopencc-dbg (Oh, BTW, please migrate to -dbgsym
package), libopencc2 and opencc).

The solution may be either include those files in a library package,
or pack those files into another separate package.

Aron Xu (happyaron)
Changed in opencc (Ubuntu Yakkety):
status: New → Triaged
importance: Undecided → High
Changed in opencc (Ubuntu Zesty):
status: Triaged → Fix Released
Changed in opencc (Ubuntu Yakkety):
assignee: nobody → Aron Xu (happyaron)
summary: - libopencc2: missing files cause librime fail to work
+ [SRU] libopencc2: missing files cause librime fail to work
Aron Xu (happyaron)
description: updated
description: updated
Changed in opencc (Debian):
status: Unknown → Fix Released
Aron Xu (happyaron)
Changed in opencc (Ubuntu Yakkety):
status: Triaged → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Aron, or anyone else affected,

Accepted opencc into yakkety-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/opencc/1.0.4-1ubuntu0.16.10.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in opencc (Ubuntu Yakkety):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Aron Xu (happyaron) wrote :

Verified the update works, tagging verification-done.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Aron Xu (happyaron) wrote :

Needs another update for dependency, change to verfication-failed for the moment

tags: added: verification-failed
removed: verification-done
Revision history for this message
Aron Xu (happyaron) wrote :

Re-uploaded to pending queue, thanks.

tags: removed: verification-failed
Changed in opencc (Ubuntu Yakkety):
status: Fix Committed → In Progress
Revision history for this message
Aron Xu (happyaron) wrote :

Subscribing ~ubuntu-archive, as the package seems stuck in NEW because of introducing a new binary deb package.

Revision history for this message
Aron Xu (happyaron) wrote :

Accepted opencc into yakkety-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/opencc/1.0.4-1ubuntu0.16.10.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in opencc (Ubuntu Yakkety):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
xiaoyiwu (xiaoyiwu) wrote :

it's ok! thanks

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package opencc - 1.0.4-1ubuntu0.16.10.1

---------------
opencc (1.0.4-1ubuntu0.16.10.1) yakkety; urgency=medium

  [ Aron Xu ]
  * Install data files to libopencc2-data, drop -dbg package
    (LP: #1645522)

  [ Boyuan Yang ]
  * Add BSD-3-clause license in d/copyright

 -- Aron Xu <email address hidden> Tue, 29 Nov 2016 02:06:48 +0000

Changed in opencc (Ubuntu Yakkety):
status: Fix Committed → Fix Released
Revision history for this message
Chris Halse Rogers (raof) wrote : Update Released

The verification of the Stable Release Update for opencc has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.