From 4c1b3e4b03a0c3a892ff71e09cdb3e1de0731d87 Mon Sep 17 00:00:00 2001 From: speak-agent <248744407+speak-agent@users.noreply.github.com> Date: Thu, 20 Aug 2026 16:20:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20std-freestanding=200.3.1=20=E2=80=94?= =?UTF-8?q?=E2=80=94=200.3.0=20=E7=9A=84=20alloc=20feature=20=E5=AE=9E?= =?UTF-8?q?=E9=99=85=E4=B8=8D=E5=8F=AF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ⚠️ 0.3.0 的 [feature-deps] 写的是 `0.1.x`,而安装器没有这种选择器,字面量原样送过去 即 E_NOT_FOUND ⇒ **实现取不回来的 feature 等于不存在的 feature**。 对照组(cmdline,索引里确定存在):0.0.1 通过 · 0.0 通过 · **0.0.x 失败**。 0.3.1 改用两段前缀。 0.3.0 保留:发布过的版本就是可能有人 pin 过的版本,且它不会分配的那半边不受影响。 --- pkgs/s/std-freestanding.lua | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/pkgs/s/std-freestanding.lua b/pkgs/s/std-freestanding.lua index 5c7adc6..13de872 100644 --- a/pkgs/s/std-freestanding.lua +++ b/pkgs/s/std-freestanding.lua @@ -12,6 +12,12 @@ -- pinned it to one standard-library implementation, one C library, one -- architecture and one version of each — none of which it has any business -- knowing about. +-- ⚠️ 0.3.0's `alloc-kal` / `alloc-libc` features DO NOT WORK. Their +-- `[feature-deps]` entries name `0.1.x`, a selector the installer does not +-- have, so the implementation cannot be fetched and the feature is inert. +-- 0.3.1 uses a two-segment prefix instead. 0.3.0 stays listed because a +-- published version is one somebody may have pinned, and its non-allocating +-- half is unaffected. package = { spec = "1", namespace = "mcpplibs", @@ -37,6 +43,13 @@ package = { }, sha256 = "04c02fc42d1fb608a831ff6a1c780a4c12901d8d1d680bd602cb4ff439eedf9a", }, + ["0.3.1"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/std-freestanding/archive/refs/tags/0.3.1.tar.gz", + CN = "https://gitcode.com/mcpp-res/std-freestanding/releases/download/0.3.1/std-freestanding-0.3.1.tar.gz", + }, + sha256 = "7e9433c037d05940a6680f0a82ea979345535f902d5ee6a4c7b4b352319527e5", + }, }, macosx = { ["0.2.0"] = { @@ -53,6 +66,13 @@ package = { }, sha256 = "04c02fc42d1fb608a831ff6a1c780a4c12901d8d1d680bd602cb4ff439eedf9a", }, + ["0.3.1"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/std-freestanding/archive/refs/tags/0.3.1.tar.gz", + CN = "https://gitcode.com/mcpp-res/std-freestanding/releases/download/0.3.1/std-freestanding-0.3.1.tar.gz", + }, + sha256 = "7e9433c037d05940a6680f0a82ea979345535f902d5ee6a4c7b4b352319527e5", + }, }, windows = { ["0.2.0"] = { @@ -69,6 +89,13 @@ package = { }, sha256 = "04c02fc42d1fb608a831ff6a1c780a4c12901d8d1d680bd602cb4ff439eedf9a", }, + ["0.3.1"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/std-freestanding/archive/refs/tags/0.3.1.tar.gz", + CN = "https://gitcode.com/mcpp-res/std-freestanding/releases/download/0.3.1/std-freestanding-0.3.1.tar.gz", + }, + sha256 = "7e9433c037d05940a6680f0a82ea979345535f902d5ee6a4c7b4b352319527e5", + }, }, },