Skip to content

feat(pkg): opencv 0.0.3(统一 compat.opencv)+ 退役 compat.opencv5 过渡别名#82

Merged
Sunrisepeak merged 2 commits into
mainfrom
feat/opencv-0.0.3-retire-compat-opencv5
Jul 19, 2026
Merged

feat(pkg): opencv 0.0.3(统一 compat.opencv)+ 退役 compat.opencv5 过渡别名#82
Sunrisepeak merged 2 commits into
mainfrom
feat/opencv-0.0.3-retire-compat-opencv5

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

opencv-m v0.0.3 已把依赖从过渡别名 compat.opencv5 切到统一的 compat.opencv(源码直编 + FFmpeg videoio)。模块包切换后,别名再无消费者,本 PR 完成 #79 定下的过渡收尾。

改动

  • pkgs/o/opencv.lua:0.0.2 → 0.0.3(v0.0.3 tarball GLOBAL + CN 镜像,sha256 92ffae8b…,逐字节一致、mirror-cn 已验证)。Form A —— compat.opencv 依赖在 tarball 的 mcpp.toml 里。
  • 删除 pkgs/c/compat.opencv5.luatests/examples/opencv5 成员(与 opencv base 成员重复;opencv-module 现经 opencv 0.0.3 传递验证 compat.opencv)。
  • tests/examples/opencv-module:pin opencv 0.0.3,修注释。
  • README + opencv.lua 注释:compat.opencv5 → compat.opencv,标注别名已退役。

本地 mcpp 0.0.98 下 xpkg parse + lua load 通过。CI 选择性构建 opencv 系成员(base/unifont/dnn + module),不再有 opencv5 双重构建。

…v5 transition alias

opencv-m v0.0.3 switched its dependency from the transitional compat.opencv5
alias to the unified compat.opencv (source build + FFmpeg videoio). With the
module package now on compat.opencv, the alias has no remaining consumers, so
this bump completes the transition decided in #79:

- pkgs/o/opencv.lua: 0.0.2 -> 0.0.3 (v0.0.3 tarball GLOBAL + CN mirror,
  sha256 92ffae8b…; byte-identical, mirror-cn-reachable verified). Form A —
  the compat.opencv dep lives in the tarball's mcpp.toml.
- delete pkgs/c/compat.opencv5.lua and the tests/examples/opencv5 member
  (redundant with the opencv base member; opencv-module now exercises
  compat.opencv transitively via opencv 0.0.3).
- tests/examples/opencv-module: pin opencv 0.0.3, fix compat.opencv comments.
- README + opencv.lua comments: compat.opencv5 -> compat.opencv, note the
  alias is retired.

xpkg parse + lua load green locally on mcpp 0.0.98.
…r 0.0.99 store layout

The unifont build.mcpp located WenQuanYiMicroHei.ttf.gz via a fixed
`<data>/xpkgs/<pkg>/<ver> -> <data>/runtimedir` hop off MCPP_MANIFEST_DIR.
mcpp 0.0.99 (xlings 0.4.67) shifted the store layout, so that exact hop
missed and the opencv-unifont member failed ('font not found near ...').

Replace with a layout-agnostic locator: anchor on the authoritative per-dep
dir contract (mcpp#241 MCPP_DEP_<NAME>_DIR, tried under both the canonical
`compat.opencv-unifont` and short `opencv-unifont` names), walk up probing
runtimedir/ at every level, then fall back to the old verdir sweep and a
bounded recursive search from the store root. On failure, dump every
MCPP_DEP_*/MANIFEST/OUT dir so a CI log is self-diagnosing.

Applied to both the generated pkgs/c/compat.opencv.lua build.mcpp and its
tools/compat-opencv/build_mcpp_template.cpp source (syntax-checked w/ gcc16).
@Sunrisepeak
Sunrisepeak force-pushed the feat/opencv-0.0.3-retire-compat-opencv5 branch from 1569591 to a1c18e8 Compare July 19, 2026 02:34
@Sunrisepeak
Sunrisepeak merged commit b6640cc into main Jul 19, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant