Skip to content

Commit 9a8d6f0

Browse files
committed
fixup: opencv 0.0.7 → 0.0.8 (template stderr fix; sha256 re-pinned)
v0.0.7's --template opencv scaffold used std::println(stderr, …) under a bare `import std;` and did not compile (modules do not export the <cstdio> stderr macro). opencv-m v0.0.8 fixes the template and adds a CI lint for the class. No library-source or ABI change from 0.0.7. - pkgs/o/opencv.lua: version 0.0.7 → 0.0.8 (all three OS blocks), sha256 re-pinned to 0025f7a6…45cd8 (GLOBAL github archive == CN gitcode asset, both verified 11756053 bytes). Requires-mcpp note raised to >= 0.0.102 (windows scan-deps cmdline, mcpp#261). - tests/examples/opencv-module{,-dnn,-unifont}: consumer pins → 0.0.8.
1 parent 5a150a5 commit 9a8d6f0

4 files changed

Lines changed: 26 additions & 21 deletions

File tree

‎pkgs/o/opencv.lua‎

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@
2323
-- emit COFF from it); `unifont` embeds the CJK font behind FontFace("uni") —
2424
-- `opencv = { features = ["dnn"] }`.
2525
--
26-
-- Requires mcpp >= 0.0.101 (per-OS feature semantics, mcpp#253).
26+
-- Requires mcpp >= 0.0.102: per-OS feature semantics (mcpp#253, 0.0.101) plus
27+
-- the windows scan-deps command-line fix (mcpp#261, 0.0.102). As a consumed
28+
-- dependency the package's own TUs compile from under the ~124-char registry
29+
-- xpkgs path rather than a short checkout, which pushed the clang scan-deps
30+
-- command past cmd.exe's 8191-char ceiling under 0.0.101; 0.0.102 drops the
31+
-- `cmd /c` redirect wrapper (clang-scan-deps -o) and restores the 32767 limit.
2732
--
2833
package = {
2934
spec = "1",
@@ -36,30 +41,30 @@ package = {
3641

3742
xpm = {
3843
linux = {
39-
["0.0.7"] = {
44+
["0.0.8"] = {
4045
url = {
41-
GLOBAL = "https://github.com/Sunrisepeak/opencv-m/archive/refs/tags/v0.0.7.tar.gz",
42-
CN = "https://gitcode.com/mcpp-res/opencv/releases/download/v0.0.7/opencv-m-0.0.7.tar.gz",
46+
GLOBAL = "https://github.com/Sunrisepeak/opencv-m/archive/refs/tags/v0.0.8.tar.gz",
47+
CN = "https://gitcode.com/mcpp-res/opencv/releases/download/v0.0.8/opencv-m-0.0.8.tar.gz",
4348
},
44-
sha256 = "a896d08d16810b20d749199ebfad8c89268896eb0c6a3ac8cbbb863aebe3c17d",
49+
sha256 = "0025f7a686c52f15d0b4349499180ba528a07cf4f114b1d5424608711c145cd8",
4550
},
4651
},
4752
macosx = {
48-
["0.0.7"] = {
53+
["0.0.8"] = {
4954
url = {
50-
GLOBAL = "https://github.com/Sunrisepeak/opencv-m/archive/refs/tags/v0.0.7.tar.gz",
51-
CN = "https://gitcode.com/mcpp-res/opencv/releases/download/v0.0.7/opencv-m-0.0.7.tar.gz",
55+
GLOBAL = "https://github.com/Sunrisepeak/opencv-m/archive/refs/tags/v0.0.8.tar.gz",
56+
CN = "https://gitcode.com/mcpp-res/opencv/releases/download/v0.0.8/opencv-m-0.0.8.tar.gz",
5257
},
53-
sha256 = "a896d08d16810b20d749199ebfad8c89268896eb0c6a3ac8cbbb863aebe3c17d",
58+
sha256 = "0025f7a686c52f15d0b4349499180ba528a07cf4f114b1d5424608711c145cd8",
5459
},
5560
},
5661
windows = {
57-
["0.0.7"] = {
62+
["0.0.8"] = {
5863
url = {
59-
GLOBAL = "https://github.com/Sunrisepeak/opencv-m/archive/refs/tags/v0.0.7.tar.gz",
60-
CN = "https://gitcode.com/mcpp-res/opencv/releases/download/v0.0.7/opencv-m-0.0.7.tar.gz",
64+
GLOBAL = "https://github.com/Sunrisepeak/opencv-m/archive/refs/tags/v0.0.8.tar.gz",
65+
CN = "https://gitcode.com/mcpp-res/opencv/releases/download/v0.0.8/opencv-m-0.0.8.tar.gz",
6166
},
62-
sha256 = "a896d08d16810b20d749199ebfad8c89268896eb0c6a3ac8cbbb863aebe3c17d",
67+
sha256 = "0025f7a686c52f15d0b4349499180ba528a07cf4f114b1d5424608711c145cd8",
6368
},
6469
},
6570
},

‎tests/examples/opencv-module-dnn/mcpp.toml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ version = "0.1.0"
1010
default = { path = "../../.." }
1111

1212
[target.'cfg(linux)'.dependencies]
13-
opencv = { version = "0.0.7", features = ["dnn"] }
13+
opencv = { version = "0.0.8", features = ["dnn"] }
1414

1515
# macOS: `import opencv.dnn;` on macOS-arm64 (per-OS NEON dnn payload).
1616
[target.'cfg(macos)'.dependencies]
17-
opencv = { version = "0.0.7", features = ["dnn"] }
17+
opencv = { version = "0.0.8", features = ["dnn"] }
1818

1919
# windows: `import opencv.dnn;` on windows-x86_64 (fast_gemm backend).
2020
[target.'cfg(windows)'.dependencies]
21-
opencv = { version = "0.0.7", features = ["dnn"] }
21+
opencv = { version = "0.0.8", features = ["dnn"] }
2222

2323

‎tests/examples/opencv-module-unifont/mcpp.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ version = "0.1.0"
99
default = { path = "../../.." }
1010

1111
[target.'cfg(linux)'.dependencies]
12-
opencv = { version = "0.0.7", features = ["unifont"] }
12+
opencv = { version = "0.0.8", features = ["unifont"] }
1313

1414
[target.'cfg(macos)'.dependencies]
15-
opencv = { version = "0.0.7", features = ["unifont"] }
15+
opencv = { version = "0.0.8", features = ["unifont"] }

‎tests/examples/opencv-module/mcpp.toml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ version = "0.1.0"
1616
default = { path = "../../.." }
1717

1818
[target.'cfg(linux)'.dependencies]
19-
opencv = "0.0.7"
19+
opencv = "0.0.8"
2020

2121
[target.'cfg(macos)'.dependencies]
22-
opencv = "0.0.7"
22+
opencv = "0.0.8"
2323

2424
# windows: import opencv.cv on windows-x86_64 (clang-cl; module tarball OS-neutral).
2525
[target.'cfg(windows)'.dependencies]
26-
opencv = "0.0.7"
26+
opencv = "0.0.8"

0 commit comments

Comments
 (0)