#1141451 opencc: OpenCC 1.4.0 packaging improvements and new opencc-jieba binary package

Package:
opencc
Source:
opencc
Description:
simplified-traditional Chinese conversion tool
Submitter:
Frank Lin
Date:
2026-08-12 18:03:02 UTC
Severity:
normal
#1141451#5
Date:
2026-07-05 01:46:06 UTC
From:
To:
Dear Maintainer,

I am one of the upstream maintainers of OpenCC.

This report proposes packaging improvements for OpenCC 1.4.0 and provides a Debian packaging mirror for review.

## Summary

A complete Debian packaging proposal for OpenCC 1.4.0 has been prepared and can be reviewed here:

https://github.com/BYVoid/OpenCC/tree/master/packaging/debian

This includes:
- updated Debian packaging for OpenCC 1.4.0
- reworked patch set (4 patches total: 0003, 0004, 0005, 0009)
- adjusted install layout
- support for a proposed multi-binary package split (including opencc-jieba)

The packaging has been tested locally and successfully builds 6 binary packages.

## Debian packaging mirror

A patch mirror is maintained for upstream review:

https://github.com/BYVoid/OpenCC/tree/master/packaging/debian

This mirror:

- tracks Debian-specific packaging deltas against OpenCC 1.4.0
- is rebased from Debian source package opencc 1.3.1+ds1-3
- is aligned with Debian Salsa packaging repository:
https://salsa.debian.org/debian/opencc
- reflects the current quilt patch set (0003, 0004, 0005, 0009)

All patches have been re-based against upstream 1.4.0 and verified to apply cleanly.

## Proposed changes

### 1. OpenCC 1.4.0 packaging update
- update packaging to match upstream 1.4.0 structure
- adjust CMake and install layout for current upstream configuration

### 2. Data package separation
Move all *.ocd2 dictionary files from libopencc runtime package into libopencc-data.

Rationale:
- *.ocd2 files are not meaningful without corresponding configuration files
- configuration and dictionary data are always used as a coupled pair
- separating data improves packaging clarity and update flexibility

This change enables independent updates of dictionary data without affecting ABI-stable runtime library components.

### 3. New binary package: opencc-jieba
Introduce a new optional binary package:

- opencc-jieba

This package contains jieba-related integration resources and plugin data,
allowing users to install OpenCC core without jieba components.

## Testing status

- built successfully on Ubuntu system
- all 6 binary packages generated correctly
- runtime conversion functionality verified

## Request

If this packaging structure is acceptable, it can be adopted or adapted for Debian packaging.

Patches and full packaging diff can be provided in patch series form if preferred.


Frank

#1141451#10
Date:
2026-08-12 18:00:19 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
opencc, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1141451@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Boyuan Yang <byang@debian.org> (supplier of updated opencc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 12 Aug 2026 12:01:45 -0400
Source: opencc
Binary: libopencc-data libopencc-dev libopencc-doc libopencc1.4 libopencc1.4-dbgsym opencc opencc-dbgsym opencc-jieba opencc-jieba-data opencc-jieba-dbgsym python3-opencc python3-opencc-dbgsym
Architecture: source all amd64
Version: 1.4.1+ds1-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Input Method Team <debian-input-method@lists.debian.org>
Changed-By: Boyuan Yang <byang@debian.org>
Description:
 libopencc-data - simplified-traditional Chinese conversion library - data files
 libopencc-dev - simplified-traditional Chinese conversion library - development
 libopencc-doc - simplified-traditional Chinese conversion library - document
 libopencc1.4 - simplified-traditional Chinese conversion library - runtime
 opencc     - simplified-traditional Chinese conversion tool
 opencc-jieba - simplified-traditional Chinese conversion library - Jieba segment
 opencc-jieba-data - simplified-traditional Chinese conversion library - Jieba plugin
 python3-opencc - simplified-traditional Chinese conversion library - Python 3.x
Closes: 1141451
Changes:
 opencc (1.4.1+ds1-5) unstable; urgency=medium
 .
   * debian/rules: Build with -DBUILD_OPENCC_JIEBA_PLUGIN=ON to enable the
     Jieba word segmentation plugin, as proposed by upstream.
     (Closes: #1141451)
   * debian/control: Add new binary packages opencc-jieba (arch:any, the
     plugin itself) and opencc-jieba-data (arch:all, the merged Jieba
     dictionary and the *_jieba.json configurations). Upstream proposed a
     single arch:any package, but the dictionary data is architecture-
     independent and is split out for the same reason as the .ocd2 files
     in 1.4.1+ds1-4.
   * debian/opencc-jieba.install, debian/opencc-jieba-data.install:
     New files.
   * debian/libopencc-data.install: List the non-Jieba configurations
     explicitly instead of globbing usr/share/opencc/*.json, which would
     otherwise also match the *_jieba.json files.
   * debian/README.source: New file, documenting why the embedded copy of
     cppjieba cannot currently be replaced with a system library.
   * debian/patches/0012-fix-legacy-dict-detection-on-big-endian.patch:
     Add Applied-Upstream metatdata.
Checksums-Sha1:
 2bbd7817b355e42e926b8416aafb5a174374c38a 3073 opencc_1.4.1+ds1-5.dsc
 4c1ec17f7985c656d45fe2bba58b1c4f1a8544b2 7185608 opencc_1.4.1+ds1.orig.tar.xz
 e15e078802f899805f9a9b5744b83f72db9ee775 22496 opencc_1.4.1+ds1-5.debian.tar.xz
 866f1f0be271b21f74302398921b3b08ab04609e 523444 libopencc-data_1.4.1+ds1-5_all.deb
 5c1ca5cb6fe3cfc71e67f65db283900742b087e3 48064 libopencc-dev_1.4.1+ds1-5_amd64.deb
 f4baf41feffc80929999a54482e17ba58558377a 250184 libopencc-doc_1.4.1+ds1-5_all.deb
 33ec537bdae1674753bc0766fb4efa0e628f12e9 2832584 libopencc1.4-dbgsym_1.4.1+ds1-5_amd64.deb
 dc33445d98d553ec90f2c4de0f4306c36d616ac7 226668 libopencc1.4_1.4.1+ds1-5_amd64.deb
 7bbf039ebee1e31dddffb80466d9d30950ad583c 1471076 opencc-dbgsym_1.4.1+ds1-5_amd64.deb
 4ae26305eb34bdc4ce8e445a81c85815884214cb 4852276 opencc-jieba-data_1.4.1+ds1-5_all.deb
 7a5ce4f286dc40e9882adb1e9ecd450aaeaab172 853156 opencc-jieba-dbgsym_1.4.1+ds1-5_amd64.deb
 86efb2be9d96eb3c706b64d84c1e6fd4f0f69c43 84632 opencc-jieba_1.4.1+ds1-5_amd64.deb
 3c6a361bb069b9755fddaa1610a142e95313b5c1 11944 opencc_1.4.1+ds1-5_amd64.buildinfo
 42868e8af0dea91fe95504584b78e0c3606e19b4 130640 opencc_1.4.1+ds1-5_amd64.deb
 8ac1e4bcdd83ad3ab2a959e9bd837141caa34834 1984336 python3-opencc-dbgsym_1.4.1+ds1-5_amd64.deb
 74a73c8c3ea8367b4f9e465b9c2252694aafd3da 126112 python3-opencc_1.4.1+ds1-5_amd64.deb
Checksums-Sha256:
 48bea219fb8e52b25a76b72e9a43bea05f353e651931610d0bf724946778918c 3073 opencc_1.4.1+ds1-5.dsc
 0aefdbd7c52739f0af0ca8f0b4294072e38505427098eaf60767ce9cb3e56b4c 7185608 opencc_1.4.1+ds1.orig.tar.xz
 a813a5c3f2559d9982a7c6d9f837a36933180c0af502b09363c21c0202635f59 22496 opencc_1.4.1+ds1-5.debian.tar.xz
 e7db942df284d48c10cb478c0ccaf94e5391ce67120acbbca647d2e1d68427a4 523444 libopencc-data_1.4.1+ds1-5_all.deb
 eb1b69cf82ba4bf3e8d7342df9c0df241402faacaad965544ba5c2f915d747b3 48064 libopencc-dev_1.4.1+ds1-5_amd64.deb
 0bc62ad21fa60173420bac0dfd32a627d50ec85d7916652cb264273a92de4e1f 250184 libopencc-doc_1.4.1+ds1-5_all.deb
 e72330ebbe352ac621baddc982444bf6655ffab9bd15283ef349e7bba6be3f75 2832584 libopencc1.4-dbgsym_1.4.1+ds1-5_amd64.deb
 8bbfc3b3b81ec673484234c2c86d198b5ab2919c057a6fd96dec798bc94cf0fd 226668 libopencc1.4_1.4.1+ds1-5_amd64.deb
 2d6d3d5110c8c0d96c921b40ccc77120ef4bc7ef9013d31be686c56c73fc8002 1471076 opencc-dbgsym_1.4.1+ds1-5_amd64.deb
 1e839af1183355c7eeab627e619dd83d3299a103ba229dd633bbabc07d91c3e4 4852276 opencc-jieba-data_1.4.1+ds1-5_all.deb
 29b6ea5371e07c1a5fb6489cc617d8f09d8ad164b67042a0e57c5f1cc1a8043c 853156 opencc-jieba-dbgsym_1.4.1+ds1-5_amd64.deb
 392a30743afee7a2c72141e54dc1383096e9e2ca2f38129ac302f71a35b09ccd 84632 opencc-jieba_1.4.1+ds1-5_amd64.deb
 ce422e48acac5c3b064ba45cd22660bf612c491d60bdb16d50d9153d4585b5f5 11944 opencc_1.4.1+ds1-5_amd64.buildinfo
 62653c0dfb5ca3a7e7365bf6987b935e326db017a840f0e29c8688c98ac6130c 130640 opencc_1.4.1+ds1-5_amd64.deb
 84c97bfdbea0d6c6d3498d78c5b011bbcb05d15813bfe7784df735a8a151cd3e 1984336 python3-opencc-dbgsym_1.4.1+ds1-5_amd64.deb
 ec181e8ecbe797e6a9bb8a198820f7348ac0f944bfa64795c2dee4726291bf54 126112 python3-opencc_1.4.1+ds1-5_amd64.deb
Files:
 cc1c1a13746c23fcefd1cd83738df02c 3073 libs optional opencc_1.4.1+ds1-5.dsc
 3e882b5d06a9e5224d80c9ec56f95146 7185608 libs optional opencc_1.4.1+ds1.orig.tar.xz
 db886d713985891f7166c4720cc74384 22496 libs optional opencc_1.4.1+ds1-5.debian.tar.xz
 484f4d7faf05f914bc6380610da79086 523444 libs optional libopencc-data_1.4.1+ds1-5_all.deb
 3a7806619e4a0a8c9b74193f17c0eead 48064 libdevel optional libopencc-dev_1.4.1+ds1-5_amd64.deb
 51a3d0a11fbbcf6ee64dad2b6c20ba91 250184 doc optional libopencc-doc_1.4.1+ds1-5_all.deb
 c0fb3a165abb2ba17a5cf008ce1141d4 2832584 debug optional libopencc1.4-dbgsym_1.4.1+ds1-5_amd64.deb
 96cd791567111625658d783141873998 226668 libs optional libopencc1.4_1.4.1+ds1-5_amd64.deb
 82cc594d2cae5dcdd67323604b949f65 1471076 debug optional opencc-dbgsym_1.4.1+ds1-5_amd64.deb
 0baa2ca34e9b4bf8df4acb8954f02260 4852276 utils optional opencc-jieba-data_1.4.1+ds1-5_all.deb
 3780f55efe1c19ab57b6165c3845f54f 853156 debug optional opencc-jieba-dbgsym_1.4.1+ds1-5_amd64.deb
 4a176798fd22c71abbcd89208236dbff 84632 utils optional opencc-jieba_1.4.1+ds1-5_amd64.deb
 e6a88123da5f30ce7e870b413d291cd8 11944 libs optional opencc_1.4.1+ds1-5_amd64.buildinfo
 d95e61dae86e6a782dc66dd816423b9e 130640 utils optional opencc_1.4.1+ds1-5_amd64.deb
 7486e9bc2214d6962c04465f0c314c7a 1984336 debug optional python3-opencc-dbgsym_1.4.1+ds1-5_amd64.deb
 5f8236e2ec11e4d12d9d4fc2c1f3a5f5 126112 python optional python3-opencc_1.4.1+ds1-5_amd64.deb
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEfncpR22H1vEdkazLwpPntGGCWs4FAmp8mpkACgkQwpPntGGC
Ws5MURAAnrvWxH1cln7V1oz0SrEMiG9daN+/hatcQ7hvGGb8y4N6Q1zVzujHk1yI
m0y3wq4u9DAm2tiC/dLmGaPpZp4BWF+N7f/rafOn/HtyIolEG87F508WP9ElUN1y
PomejyXbjW4H1zi3pwx4ISMxIT+kB0lScjSFR+9BMlWuB25sd5VYUKckFb8ZBYom
wjpcSvk3AgH/uVu+4EUYCjtwFT9+M/Nrcr5VWIwMEtKl8VNeTdHtcGKQSrsqOPF4
SQkNr35HChMj4lRmgFum2avdeWW5IfYe3wsQn3KGSGpJVllmMaFN9vIpIiWQ7+AX
SXAlnLtKQt3O16OZZsW0hl6tAxNXfMx0chSwBBEaQw/wdwToUf/6tOnjVci3zUNr
4SR8qzO9ABuQESU8YNvRZLuHomdBgV7Gj7zINH11dT9MjCREmpyVstFlNk56B0MZ
n9w5j80Jow3mLTb/WlSwMErSmgMxzP6EEb02rozEc91FxrFmUXi2P6rq8swqvWw8
gG+Gszvo2j++L3hH//LkEkcu9NIdrSEoz4RF2laa1oKJ1QSut64hSKqSPf7QShRt
ePheRyYYSq92PkFGYhXfdkyRjA7qjOyyGQAkOgblyavhFPAjwjivBjOWWqQoPL6g
mFqNPEIgiBfwMHYPMKHO7H7FEKHlfQGdU1TsTSfN1ajC+Ub0678=
=mZoh
-----END PGP SIGNATURE-----