#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-07-05 02:13: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