Skip to content

Commit 4edd6c9

Browse files
authored
mtest 0.11.2 and compat.slint's dlopen libraries (#867)
* mtest 0.11.2 and compat.slint's dlopen libraries: a scope case's events name no case; libslint_cpp's windowing and GL sonames are run-time requirements; the fourth segment's two meanings * a program whose packages state host capabilities is packed vendored: the installed template's deploy check takes the form mcpp's refusal of self-contained names * the installed template's deploy check runs a vendored bundle by its program: the launcher and the loader travel only with a self-contained one
1 parent 904d3c6 commit 4edd6c9

11 files changed

Lines changed: 154 additions & 3 deletions

‎CHANGELOG.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99

1010
### Added
1111

12+
- **compat.slint 声明它以 `dlopen` 加载的库。** libslint_cpp 的 winit 与 femtovg 后端加载的 X11、xcb、Xcursor、Xi、Xrender、
13+
xkbcommon、Wayland、EGL 与 GL 的 soname 记为运行期的必需(`runtime.dlopen_libs`),能力为 `display` 与 `opengl.egl.driver`;
14+
mcpp 按发起加载的对象判定它们可达。声明宿主能力的程序不能以 `--mode self-contained` 打包;已安装模板的部署检查在 mcpp
15+
按此拒绝时改用 `--mode vendored`(tests/mwrap/check_installed_template.py)。
16+
- **第四段的两种含义写入封装说明**(docs/mwrap.md):上游的四段版本与封装修订;命令行的 `@<版本>` 按书写的前缀选择,`@=` 指名一个键。
17+
- **mtest 0.11.2(mcpplibs.mtest、.manifest、.gtest、.capi、.doctest)。** 只作为选中用例的作用域运行的用例,其函数体中的
18+
`step`、`exercise`、`artifact`、`metric` 与 `fixture` 事件不指名用例;运行器不再把它记为没有结束的用例。成员
19+
tests/examples/mtest-doctest 移到 0.11.2。
1220
- **mtest 0.11.1(mcpplibs.mtest、.manifest、.gtest、.capi、.doctest)。** `time_left()` 给出用例余下的时间(其自身与外层作用域的
1321
`timeout` 中最早结束者);`e2e::run` 让一条命令在此之内结束,扣除结束命令所需与留给用例报告的时间。成员 tests/examples/mtest-doctest
1422
移到 0.11.1。

‎docs/mwrap.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ pins. A wrapper revision does not excuse undocumented breaking interface changes
8080
Non-numeric/prerelease upstream schemes need an explicit mapping preserving
8181
their meaning. Build metadata (`+...`) is not a sortable wrapper revision.
8282

83+
A fourth segment has two meanings in this index: an upstream version of four
84+
parts (the Vulkan SDK's `1.4.321.0`) and a wrapper revision (`1.19.0.2`). The
85+
command line reads both by the written prefix (mcpp 2026.11.21.1 and later):
86+
`--template mcpplibs.mwrap.slint@1.19.0` selects the newest `1.19.0.x`, and
87+
`@=1.19.0.1` selects that one key. A revision only increases and is never
88+
reused for other bytes.
89+
8390
## Public interfaces and macros
8491

8592
Prefer exporting the upstream entities with `export using`. Each entity has one

‎docs/zh/mwrap.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ openkal-musl、mingw-w64)。`mcpplibs.mwrap.libc` 不链接任何实现;版
5353
metadata 与上游锁文件仍明确记录来源。破坏性模块/API 变化必须附迁移说明。
5454
非数字或预发布上游版本需要明确映射规则,保持原版本含义。
5555

56+
第四段在本索引中有两种含义:上游本身的四段版本(Vulkan SDK 的 `1.4.321.0`)与封装修订(`1.19.0.2`)。命令行按书写的前缀读二者
57+
(mcpp 2026.11.21.1 起):`--template mcpplibs.mwrap.slint@1.19.0` 选最新的 `1.19.0.x`,`@=1.19.0.1` 选这一个键。修订只递增,不为另一份字节复用。
58+
5659
新 mwrap 身份首发直接使用上游版本,不追加封装修订尾号;旧身份与历史发布保持原字节。
5760
仓库 tag 统一采用独立 `mwrap-${version}` 序列,例如 `mwrap-8.1.2`,包版本仍为 `8.1.2`。
5861
不移动旧 tag;updater 精确选择新序列,不依赖 GitHub latest。

‎pkgs/c/compat.slint.lua‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,20 @@ int mcpp_compat_slint_anchor() { return 0; }
9494
},
9595
sources = { "mcpp_generated/slint_sdk.cpp" },
9696

97+
-- libslint_cpp dlopen()s its windowing and GL libraries (the sonames
98+
-- its winit and femtovg backends name, read from the library itself);
99+
-- they are required at run time, and xim:slint declares the packages
100+
-- that provide them, so its DT_RUNPATH reaches them.
97101
linux = { runtime = {
98102
libraries = { "slint_cpp" },
99103
link_library_dirs = { "mcpp_generated/slint/lib" },
100104
runtime_search_dirs = { "mcpp_generated/slint/lib" },
105+
dlopen_libs = {
106+
"libX11.so.6", "libX11-xcb.so.1", "libxcb.so.1", "libXcursor.so.1", "libXi.so.6",
107+
"libXrender.so.1", "libxkbcommon.so.0", "libxkbcommon-x11.so.0",
108+
"libwayland-client.so.0", "libwayland-egl.so.1", "libEGL.so.1", "libGL.so.1",
109+
},
110+
capabilities = { "display", "opengl.egl.driver" },
101111
} },
102112
macosx = { ldflags = { "-Wl,-rpath,@loader_path" }, runtime = {
103113
libraries = { "slint_cpp" },

‎pkgs/m/mcpplibs.mtest.capi.lua‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ package = {
2121

2222
xpm = {
2323
linux = {
24+
["0.11.2"] = {
25+
url = {
26+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.2.tar.gz",
27+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.2/mtest-v0.11.2.tar.gz",
28+
},
29+
sha256 = "1236da4c4529faaf1c4524611e653f89c7fa43868d279357ade85cf7e3fcbc4c",
30+
},
2431
["0.11.1"] = {
2532
url = {
2633
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
@@ -170,6 +177,13 @@ package = {
170177
},
171178
},
172179
macosx = {
180+
["0.11.2"] = {
181+
url = {
182+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.2.tar.gz",
183+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.2/mtest-v0.11.2.tar.gz",
184+
},
185+
sha256 = "1236da4c4529faaf1c4524611e653f89c7fa43868d279357ade85cf7e3fcbc4c",
186+
},
173187
["0.11.1"] = {
174188
url = {
175189
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
@@ -319,6 +333,13 @@ package = {
319333
},
320334
},
321335
windows = {
336+
["0.11.2"] = {
337+
url = {
338+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.2.tar.gz",
339+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.2/mtest-v0.11.2.tar.gz",
340+
},
341+
sha256 = "1236da4c4529faaf1c4524611e653f89c7fa43868d279357ade85cf7e3fcbc4c",
342+
},
322343
["0.11.1"] = {
323344
url = {
324345
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",

‎pkgs/m/mcpplibs.mtest.doctest.lua‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ package = {
2121

2222
xpm = {
2323
linux = {
24+
["0.11.2"] = {
25+
url = {
26+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.2.tar.gz",
27+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.2/mtest-v0.11.2.tar.gz",
28+
},
29+
sha256 = "1236da4c4529faaf1c4524611e653f89c7fa43868d279357ade85cf7e3fcbc4c",
30+
},
2431
["0.11.1"] = {
2532
url = {
2633
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
@@ -37,6 +44,13 @@ package = {
3744
},
3845
},
3946
macosx = {
47+
["0.11.2"] = {
48+
url = {
49+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.2.tar.gz",
50+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.2/mtest-v0.11.2.tar.gz",
51+
},
52+
sha256 = "1236da4c4529faaf1c4524611e653f89c7fa43868d279357ade85cf7e3fcbc4c",
53+
},
4054
["0.11.1"] = {
4155
url = {
4256
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
@@ -53,6 +67,13 @@ package = {
5367
},
5468
},
5569
windows = {
70+
["0.11.2"] = {
71+
url = {
72+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.2.tar.gz",
73+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.2/mtest-v0.11.2.tar.gz",
74+
},
75+
sha256 = "1236da4c4529faaf1c4524611e653f89c7fa43868d279357ade85cf7e3fcbc4c",
76+
},
5677
["0.11.1"] = {
5778
url = {
5879
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",

‎pkgs/m/mcpplibs.mtest.gtest.lua‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ package = {
2020

2121
xpm = {
2222
linux = {
23+
["0.11.2"] = {
24+
url = {
25+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.2.tar.gz",
26+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.2/mtest-v0.11.2.tar.gz",
27+
},
28+
sha256 = "1236da4c4529faaf1c4524611e653f89c7fa43868d279357ade85cf7e3fcbc4c",
29+
},
2330
["0.11.1"] = {
2431
url = {
2532
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
@@ -169,6 +176,13 @@ package = {
169176
},
170177
},
171178
macosx = {
179+
["0.11.2"] = {
180+
url = {
181+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.2.tar.gz",
182+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.2/mtest-v0.11.2.tar.gz",
183+
},
184+
sha256 = "1236da4c4529faaf1c4524611e653f89c7fa43868d279357ade85cf7e3fcbc4c",
185+
},
172186
["0.11.1"] = {
173187
url = {
174188
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
@@ -318,6 +332,13 @@ package = {
318332
},
319333
},
320334
windows = {
335+
["0.11.2"] = {
336+
url = {
337+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.2.tar.gz",
338+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.2/mtest-v0.11.2.tar.gz",
339+
},
340+
sha256 = "1236da4c4529faaf1c4524611e653f89c7fa43868d279357ade85cf7e3fcbc4c",
341+
},
321342
["0.11.1"] = {
322343
url = {
323344
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",

‎pkgs/m/mcpplibs.mtest.manifest.lua‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ package = {
2222

2323
xpm = {
2424
linux = {
25+
["0.11.2"] = {
26+
url = {
27+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.2.tar.gz",
28+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.2/mtest-v0.11.2.tar.gz",
29+
},
30+
sha256 = "1236da4c4529faaf1c4524611e653f89c7fa43868d279357ade85cf7e3fcbc4c",
31+
},
2532
["0.11.1"] = {
2633
url = {
2734
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
@@ -157,6 +164,13 @@ package = {
157164
},
158165
},
159166
macosx = {
167+
["0.11.2"] = {
168+
url = {
169+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.2.tar.gz",
170+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.2/mtest-v0.11.2.tar.gz",
171+
},
172+
sha256 = "1236da4c4529faaf1c4524611e653f89c7fa43868d279357ade85cf7e3fcbc4c",
173+
},
160174
["0.11.1"] = {
161175
url = {
162176
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
@@ -292,6 +306,13 @@ package = {
292306
},
293307
},
294308
windows = {
309+
["0.11.2"] = {
310+
url = {
311+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.2.tar.gz",
312+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.2/mtest-v0.11.2.tar.gz",
313+
},
314+
sha256 = "1236da4c4529faaf1c4524611e653f89c7fa43868d279357ade85cf7e3fcbc4c",
315+
},
295316
["0.11.1"] = {
296317
url = {
297318
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",

‎pkgs/m/mtest.lua‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060
--
6161
-- 0.11.1 holds a command an end-to-end case runs to what its case has left of its time
6262
-- (`time_left()`).
63+
--
64+
-- 0.11.2: what a case that runs only as the scope of a selected case does (a step, an
65+
-- exercise, an artifact, a metric, a fixture) names no case.
6366
package = {
6467
spec = "1",
6568
namespace = "mcpplibs",
@@ -78,6 +81,13 @@ package = {
7881

7982
xpm = {
8083
linux = {
84+
["0.11.2"] = {
85+
url = {
86+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.2.tar.gz",
87+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.2/mtest-v0.11.2.tar.gz",
88+
},
89+
sha256 = "1236da4c4529faaf1c4524611e653f89c7fa43868d279357ade85cf7e3fcbc4c",
90+
},
8191
["0.11.1"] = {
8292
url = {
8393
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
@@ -227,6 +237,13 @@ package = {
227237
},
228238
},
229239
macosx = {
240+
["0.11.2"] = {
241+
url = {
242+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.2.tar.gz",
243+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.2/mtest-v0.11.2.tar.gz",
244+
},
245+
sha256 = "1236da4c4529faaf1c4524611e653f89c7fa43868d279357ade85cf7e3fcbc4c",
246+
},
230247
["0.11.1"] = {
231248
url = {
232249
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",
@@ -376,6 +393,13 @@ package = {
376393
},
377394
},
378395
windows = {
396+
["0.11.2"] = {
397+
url = {
398+
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.2.tar.gz",
399+
CN = "https://gitcode.com/mcpp-res/mtest/releases/download/v0.11.2/mtest-v0.11.2.tar.gz",
400+
},
401+
sha256 = "1236da4c4529faaf1c4524611e653f89c7fa43868d279357ade85cf7e3fcbc4c",
402+
},
379403
["0.11.1"] = {
380404
url = {
381405
GLOBAL = "https://github.com/mcpp-community/mtest/archive/refs/tags/v0.11.1.tar.gz",

‎tests/examples/mtest-doctest/mcpp.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ version = "0.1.0"
99
# Use the complete candidate built-in index prepared by tests/run_members.sh.
1010

1111
[dev-dependencies]
12-
mcpplibs.mtest.doctest = "0.11.1"
12+
mcpplibs.mtest.doctest = "0.11.2"

0 commit comments

Comments
 (0)