Skip to content

Commit 1fe84e9

Browse files
authored
mcpp.platforms 0.2.0: GNU/Hurd and Haiku (#834)
1 parent 0f1ae23 commit 1fe84e9

3 files changed

Lines changed: 40 additions & 9 deletions

File tree

‎CHANGELOG.md‎

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

1010
### Added
1111

12+
- **mcpp.platforms 0.2.0。** 新增 GNU/Hurd(`x86_64-hurd`,Debian 基础库,版本与其运行的映像一致)与 Haiku(`x86_64-haiku`,hrev60431)两行,
13+
均可 `import std`(GCC 15 的 std 模块),并在系统映像中经 dirun 运行;两行在 Linux 主机上构建,Hurd 亦可在 macOS 上构建;
14+
Windows 主机不可(mcpp-community/mcpp#965),Haiku 在不区分大小写的文件系统上不可(mcpp-community/mcpp-platforms#5)。
1215
- **mcpp.plugins 0.26.0。** `tools-steps` 的 glob 支持排除模式(`*` 可跨越 `/`);`dist-apk` 在 javac 和 kotlinc 编译前清空
1316
class 目录,已移出包的源码不再把旧 class 带进下一次打包;`latest` 指向 0.26.0(mcpp-community/mcpp-plugins#60)。
1417
- **openkal-platform 0.30.1。** 行 `i686-svr4-musl` 的链接声明程序头(`link/svr4.ld`):与此前相同的三个段,不写 `PT_PHDR`。

‎pkgs/m/mcpp.platforms.lua‎

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,25 @@
1616
-- the rows it serves could not be built there from the index (measured in
1717
-- mcpp's e2e 1116, mcpp-community/mcpp#951). The rows build on Linux, macOS and
1818
-- Windows hosts with mcpp 2026.11.18.1 (mcpp-community/mcpp-platforms#4).
19+
--
20+
-- 0.2.0 (floor unchanged): GNU/Hurd (x86_64-hurd, Debian's base at the versions of
21+
-- the image it runs in) and Haiku (x86_64-haiku, hrev60431), each compiling
22+
-- `import std` over GCC 15's std module and run in the system's image through dirun
23+
-- (mcpp-community/mcpp-platforms#5). Both build on Linux hosts, Hurd also on macOS;
24+
-- not on Windows (mcpp-community/mcpp#965), and Haiku not on a case-insensitive
25+
-- file system (its string.h and String.h).
1926
package = {
2027
spec = "1",
2128
namespace = "mcpp",
2229
name = "platforms",
23-
description = "Rows for systems the engine does not carry (FreeBSD, NetBSD, OpenBSD): their definitions, bases and runners, as one versioned statement mcpp reads",
30+
description = "Rows for systems the engine does not carry (FreeBSD, NetBSD, OpenBSD, GNU/Hurd, Haiku): their definitions, bases and runners, as one versioned statement mcpp reads",
2431
licenses = {"Apache-2.0"},
2532
repo = "https://github.com/mcpp-community/mcpp-platforms",
2633
type = "package",
2734

2835
-- The rows this platform serves, for mcpp's platform column (SPEC-013 §14): derived
2936
-- from the newest version's manifest by tools/platform_rows.py, never written by hand.
30-
platform_rows = { "aarch64-freebsd", "aarch64-netbsd", "aarch64-openbsd", "x86_64-freebsd", "x86_64-netbsd", "x86_64-openbsd" },
37+
platform_rows = { "aarch64-freebsd", "aarch64-netbsd", "aarch64-openbsd", "x86_64-freebsd", "x86_64-haiku", "x86_64-hurd", "x86_64-netbsd", "x86_64-openbsd" },
3138
extensions = {
3239
autoupdate = {
3340
tag = "${version}",
@@ -40,34 +47,55 @@ package = {
4047
-- One archive for every host: the package is a statement, not a program.
4148
xpm = {
4249
linux = {
50+
["0.2.0"] = {
51+
url = {
52+
GLOBAL = "https://github.com/mcpp-community/mcpp-platforms/archive/refs/tags/0.2.0.tar.gz",
53+
CN = "https://gitcode.com/mcpp-res/mcpp-platforms/releases/download/0.2.0/mcpp-platforms-0.2.0.tar.gz",
54+
},
55+
sha256 = "27ab1a3d4d18f0075cbd8888e8894737eb524cfefcd2d3c673a357ea283a66b6",
56+
},
4357
["0.1.0"] = {
4458
url = {
4559
GLOBAL = "https://github.com/mcpp-community/mcpp-platforms/archive/refs/tags/0.1.0.tar.gz",
4660
CN = "https://gitcode.com/mcpp-res/mcpp-platforms/releases/download/0.1.0/mcpp-platforms-0.1.0.tar.gz",
4761
},
4862
sha256 = "bd09836f9952af28ede3f9c4568aafd999ace803f2cad21fed0aa4ca495893f3",
4963
},
50-
["latest"] = { ref = "0.1.0" },
64+
["latest"] = { ref = "0.2.0" },
5165
},
5266
macosx = {
67+
["0.2.0"] = {
68+
url = {
69+
GLOBAL = "https://github.com/mcpp-community/mcpp-platforms/archive/refs/tags/0.2.0.tar.gz",
70+
CN = "https://gitcode.com/mcpp-res/mcpp-platforms/releases/download/0.2.0/mcpp-platforms-0.2.0.tar.gz",
71+
},
72+
sha256 = "27ab1a3d4d18f0075cbd8888e8894737eb524cfefcd2d3c673a357ea283a66b6",
73+
},
5374
["0.1.0"] = {
5475
url = {
5576
GLOBAL = "https://github.com/mcpp-community/mcpp-platforms/archive/refs/tags/0.1.0.tar.gz",
5677
CN = "https://gitcode.com/mcpp-res/mcpp-platforms/releases/download/0.1.0/mcpp-platforms-0.1.0.tar.gz",
5778
},
5879
sha256 = "bd09836f9952af28ede3f9c4568aafd999ace803f2cad21fed0aa4ca495893f3",
5980
},
60-
["latest"] = { ref = "0.1.0" },
81+
["latest"] = { ref = "0.2.0" },
6182
},
6283
windows = {
84+
["0.2.0"] = {
85+
url = {
86+
GLOBAL = "https://github.com/mcpp-community/mcpp-platforms/archive/refs/tags/0.2.0.tar.gz",
87+
CN = "https://gitcode.com/mcpp-res/mcpp-platforms/releases/download/0.2.0/mcpp-platforms-0.2.0.tar.gz",
88+
},
89+
sha256 = "27ab1a3d4d18f0075cbd8888e8894737eb524cfefcd2d3c673a357ea283a66b6",
90+
},
6391
["0.1.0"] = {
6492
url = {
6593
GLOBAL = "https://github.com/mcpp-community/mcpp-platforms/archive/refs/tags/0.1.0.tar.gz",
6694
CN = "https://gitcode.com/mcpp-res/mcpp-platforms/releases/download/0.1.0/mcpp-platforms-0.1.0.tar.gz",
6795
},
6896
sha256 = "bd09836f9952af28ede3f9c4568aafd999ace803f2cad21fed0aa4ca495893f3",
6997
},
70-
["latest"] = { ref = "0.1.0" },
98+
["latest"] = { ref = "0.2.0" },
7199
},
72100
},
73101

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# mcpp:platforms test project. The package serves the rows of FreeBSD, NetBSD
2-
# and OpenBSD, which no member of this repository builds: the member names the
1+
# mcpp:platforms test project. The package serves the rows of FreeBSD, NetBSD,
2+
# OpenBSD, GNU/Hurd and Haiku, which no member of this repository builds: the member names the
33
# release for those rows, and the rows are built on Linux, macOS and Windows
44
# hosts (and run where an image exists) by the package's own CI
55
# (mcpp-community/mcpp-platforms) and by mcpp's e2e 1116. On a runner the
@@ -9,8 +9,8 @@
99
name = "mcpp-platforms-tests"
1010
version = "0.1.0"
1111

12-
[target.'cfg(any(os = "freebsd", os = "netbsd", os = "openbsd"))']
13-
platform = "mcpp.platforms@0.1.0"
12+
[target.'cfg(any(os = "freebsd", os = "netbsd", os = "openbsd", os = "hurd", os = "haiku"))']
13+
platform = "mcpp.platforms@0.2.0"
1414

1515
[indices]
1616
mcpplibs = { path = "../../.." }

0 commit comments

Comments
 (0)