From 8c107cfe3096456d3ebcb5b10504d9e3010d5a2a Mon Sep 17 00:00:00 2001 From: speak-agent <248744407+speak-agent@users.noreply.github.com> Date: Thu, 20 Aug 2026 16:32:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20std-freestanding=200.3.2=20=E2=80=94?= =?UTF-8?q?=E2=80=94=200.3.1=20=E7=9A=84=E4=B8=A4=E6=AE=B5=E5=89=8D?= =?UTF-8?q?=E7=BC=80=E5=90=8C=E6=A0=B7=E5=8F=96=E4=B8=8D=E5=9B=9E=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 0.3.0 写 0.1.x ⇒ E_NOT_FOUND;0.3.1 写 0.1 ⇒ 解析通过但 install path missing。 0.3.2 写 ^0.1.0,实测可取回。 ⭐ 判据的教训:「没有 E_NOT_FOUND」不等于「装得上」,「装得上」不等于「构建得过」。 前两次各被一个太弱的判据击败。两个旧版本保留 —— 它们不会分配的那半边不受影响。 --- pkgs/s/std-freestanding.lua | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/pkgs/s/std-freestanding.lua b/pkgs/s/std-freestanding.lua index 13de872..446c9c2 100644 --- a/pkgs/s/std-freestanding.lua +++ b/pkgs/s/std-freestanding.lua @@ -12,6 +12,13 @@ -- 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 AND 0.3.1's `alloc-kal` / `alloc-libc` features DO NOT WORK; 0.3.2 +-- is the first that does. 0.3.0 named `0.1.x`, which the installer reports as a +-- missing package; 0.3.1 named `0.1`, which resolves and then fails with +-- `install path missing after fetch`. 0.3.2 names `^0.1.0`, measured to fetch. +-- The lesson recorded in the package: "no E_NOT_FOUND" is not "installs", and +-- "installs" is not "builds". +-- -- ⚠️ 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. @@ -50,6 +57,13 @@ package = { }, sha256 = "7e9433c037d05940a6680f0a82ea979345535f902d5ee6a4c7b4b352319527e5", }, + ["0.3.2"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/std-freestanding/archive/refs/tags/0.3.2.tar.gz", + CN = "https://gitcode.com/mcpp-res/std-freestanding/releases/download/0.3.2/std-freestanding-0.3.2.tar.gz", + }, + sha256 = "8cd1687b2a02a53729fe8d97319b862f92a9c00ae2fb51985332fdbe0c1332c2", + }, }, macosx = { ["0.2.0"] = { @@ -73,6 +87,13 @@ package = { }, sha256 = "7e9433c037d05940a6680f0a82ea979345535f902d5ee6a4c7b4b352319527e5", }, + ["0.3.2"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/std-freestanding/archive/refs/tags/0.3.2.tar.gz", + CN = "https://gitcode.com/mcpp-res/std-freestanding/releases/download/0.3.2/std-freestanding-0.3.2.tar.gz", + }, + sha256 = "8cd1687b2a02a53729fe8d97319b862f92a9c00ae2fb51985332fdbe0c1332c2", + }, }, windows = { ["0.2.0"] = { @@ -96,6 +117,13 @@ package = { }, sha256 = "7e9433c037d05940a6680f0a82ea979345535f902d5ee6a4c7b4b352319527e5", }, + ["0.3.2"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/std-freestanding/archive/refs/tags/0.3.2.tar.gz", + CN = "https://gitcode.com/mcpp-res/std-freestanding/releases/download/0.3.2/std-freestanding-0.3.2.tar.gz", + }, + sha256 = "8cd1687b2a02a53729fe8d97319b862f92a9c00ae2fb51985332fdbe0c1332c2", + }, }, },