From d180b5da2e569b377a783390d604f4156fd06b70 Mon Sep 17 00:00:00 2001 From: Sunrisepeak Date: Sun, 8 Nov 2026 06:55:13 +0900 Subject: [PATCH] mcpplibs.os 0.4.0: one platform question for a native build and an image; is_openkal Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com> --- CHANGELOG.md | 4 ++++ pkgs/o/os.lua | 21 +++++++++++++++++++++ tests/examples/os/mcpp.toml | 2 +- 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e2f24d6..827f420f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,10 @@ ### Added +- **mcpplibs.os 0.4.0.** `is_openkal` names a build for the openkal target, as each `is_` names its own + (`is_image` remains as a deprecated alias); `can_run_on(p)` and `on

(f)` ask one platform question of a native + build and an image alike; the platform modules are defined in an image where it can answer them; the effective user + and the creation mask are the kernel's answers. The test member `os` consumes 0.4.0. - **mcpplibs.os 0.3.1.** A name in the long spelling (`\\?\C:\...`, `\\?\UNC\...`) is the name it spells: `locate` and every `os::fs` operation through it accept what `fs::extended` produces, which 0.3.0 refused with `errc::invalid`; the kernel layer is a compatible range. The test member `os` consumes 0.3.1 (it stayed on 0.2.9 when 0.3.0 was registered). diff --git a/pkgs/o/os.lua b/pkgs/o/os.lua index 7f9a2d15..aec9b094 100644 --- a/pkgs/o/os.lua +++ b/pkgs/o/os.lua @@ -31,6 +31,13 @@ package = { xpm = { linux = { + ["0.4.0"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/os/archive/refs/tags/0.4.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/os/releases/download/0.4.0/os-0.4.0.tar.gz", + }, + sha256 = "ad0b61b962469166ec2053ad5c1f5a7114278e98edd94cc3c5235d6148a8111a", + }, ["0.3.1"] = { url = { GLOBAL = "https://github.com/mcpplibs/os/archive/refs/tags/0.3.1.tar.gz", @@ -129,6 +136,13 @@ package = { }, }, macosx = { + ["0.4.0"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/os/archive/refs/tags/0.4.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/os/releases/download/0.4.0/os-0.4.0.tar.gz", + }, + sha256 = "ad0b61b962469166ec2053ad5c1f5a7114278e98edd94cc3c5235d6148a8111a", + }, ["0.3.1"] = { url = { GLOBAL = "https://github.com/mcpplibs/os/archive/refs/tags/0.3.1.tar.gz", @@ -227,6 +241,13 @@ package = { }, }, windows = { + ["0.4.0"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/os/archive/refs/tags/0.4.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/os/releases/download/0.4.0/os-0.4.0.tar.gz", + }, + sha256 = "ad0b61b962469166ec2053ad5c1f5a7114278e98edd94cc3c5235d6148a8111a", + }, ["0.3.1"] = { url = { GLOBAL = "https://github.com/mcpplibs/os/archive/refs/tags/0.3.1.tar.gz", diff --git a/tests/examples/os/mcpp.toml b/tests/examples/os/mcpp.toml index 2a872130..e345550c 100644 --- a/tests/examples/os/mcpp.toml +++ b/tests/examples/os/mcpp.toml @@ -7,7 +7,7 @@ name = "os-tests" version = "0.1.0" [dependencies.mcpplibs] -os = "0.3.1" +os = "0.4.0" [indices] mcpplibs = { path = "../../.." }